:root {
    --primary-color: #ff6b2b;
    --primary-dark: #e65a1f;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI',  sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #fff;
    min-height: 100vh;
    padding-bottom: 60px;
    overflow-x: hidden;
}
a{
    text-decoration: none;
    color: inherit;
}
input{
    background: #f4eeee0d;
    color: #fff;
}
.container {
    width: 100%;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.container > section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.container > footer {
    max-width: 100%;
    margin: 0;
    padding: 20px;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

.header {
    background: #1a1a1a;
    color: var(--primary-dark);
    padding: 15px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content h1 {
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    font-family: cursive;
}

.nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(12px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-12px);
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.nav-btn:hover,
.nav-btn.active {
    background: white;
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stats-card {
    background: #FFFFFF0D;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.stats-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.body-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item label {
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.stat-item input,
.stat-item select {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.stat-item input:focus,
.stat-item select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.bmi-result {
    padding: 15px;
    background: #333;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #fff;
    min-height: 30px;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    border-radius: 10px;
    text-align: center;
}

.summary-item .label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.summary-item .value {
    font-size: 2rem;
    font-weight: bold;
}

.summary-item .unit {
    font-size: 0.8rem;
    opacity: 0.8;
}

.heart-monitor {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.heart-display {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.heart-display input {
    padding: 12px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 1rem;
}

.heart-zones {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zone {
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.zone-warm {
    background: #a8e6cf;
    color: #2d6a4f;
}

.zone-light {
    background: #ffd3b6;
    color: #a24936;
}

.zone-moderate {
    background: #ffaaa5;
    color: #8b3a3a;
}

.zone-intense {
    background: #ff8c8c;
    color: #600000;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 43, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.chart-container {
    background: #FFFFFF0D;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.chart-container h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.chart-container canvas {
    max-height: 300px;
}

.stats-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.stat-detail-card {
    background: #FFFFFF0D;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stat-detail-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.stats-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 12px;
    background: #FFFFFF0D;
    border-radius: 8px;
}

.stat-row strong {
    color: var(--primary-color);
}

.weekly-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.weekly-item {
    display: grid;
    grid-template-columns: 40px 1fr 50px;
    gap: 10px;
    align-items: center;
}

.weekly-item .day {
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
}

.progress-bar {
    background: #e0e0e0;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.weekly-item .duration {
    font-size: 0.9rem;
    color: #555;
    text-align: right;
}

.goals-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.goal-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.goal-label {
    font-weight: 600;
    color: #555;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-container .progress-bar {
    flex: 1;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
}


@media (max-width: 768px) {
    .header-content h1 {
        font-size: 1.5rem;
    }

    .hamburger {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 60px;
        right: 0;
        left: 0;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    }

    .nav.active {
        max-height: 300px;
    }

    .nav-btn {
        width: 100%;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 15px 20px;
        font-size: 1rem;
        justify-content: flex-start;
    }

    .nav-btn:hover,
    .nav-btn.active {
        background: rgba(255, 107, 43, 0.8);
        color: white;
        border: none;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .summary-stats {
        grid-template-columns: 1fr;
    }

    .activity-section,
    .workout-section {
        grid-template-columns: 1fr;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .stats-detailed-grid {
        grid-template-columns: 1fr;
    }

    .chart-container canvas {
        max-height: 250px;
    }

    .container > section {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 12px 15px;
    }

    .header-content {
        padding: 0 10px;
    }

    .header-content h1 {
        font-size: 1.3rem;
    }

    .hamburger {
        display: flex;
    }

    .hamburger span {
        width: 22px;
        height: 2.5px;
    }

    .nav {
        position: absolute;
        top: 50px;
        right: 0;
        left: 0;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav.active {
        max-height: 250px;
    }

    .nav-btn {
        width: 100%;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .stats-card,
    .form-card,
    .chart-container {
        padding: 15px;
    }

    .summary-item {
        padding: 10px;
    }

    .summary-item .value {
        font-size: 1.5rem;
    }

    .stats-card h3 {
        font-size: 1.2rem;
    }

    .stat-row {
        grid-template-columns: 1fr;
    }

    .weekly-item {
        grid-template-columns: 30px 1fr 40px;
        gap: 8px;
    }
}
