:root {
    --primary-color: #1a1a1a;
    --secondary-color: #0f0;
    --accent-color: #f0f0f0;
    --card-bg: #242424;
    --text-color: #ffffff;
    --premium-color: #ffd700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tilt Neon', sans-serif;
}

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
    height: auto;
}

/* Sidebar Styles */
.sidebar {
    background-color: #151515;
    padding: 20px;
    width: 250px;
    height: 100vh;
    overflow-y: auto;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.logo h2 {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

a {
    text-decoration: none;
}

.nav-links {
    list-style: none;
    margin-bottom: 30px;
}

.nav-links li {
    margin-bottom: 10px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: #333;
    color: var(--secondary-color);
}

.nav-links i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.premium-section {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.premium-section h3 {
    color: var(--premium-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.premium-section p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #ccc;
}

.btn-premium {
    background: linear-gradient(145deg, #ffd700, #ffaa00);
    color: #000;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-premium:hover {
    background: linear-gradient(145deg, #ffaa00, #ffd700);
    transform: translateY(-2px);
}

.user-profile {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-auto-rows: min-content;
    grid-column-gap: 10px;
    align-items: start;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    grid-column: 1;
    grid-row: 1;
}

.user-info {
    grid-column: 2;
    grid-row: 1;
}

/* Logout button styling (match premium style but default theme) */
#logout-btn.logout-btn {
    grid-column: 1 / span 2;
    grid-row: 3;
    margin-top: 10px;
    padding: 8px 12px;
    width: 100%;
    border-radius: 6px;
    background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    border: 1px solid rgba(0, 255, 0, 0.5);
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#logout-btn.logout-btn:hover {
    background: var(--secondary-color);
    color: #111;
    box-shadow: 0 6px 16px rgba(0, 255, 0, 0.25);
    transform: translateY(-1px);
}

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

.user-info h4 {
    font-size: 0.9rem;
}

.user-info p {
    font-size: 0.8rem;
    color: #ccc;
}

/* Main Content Styles */
.main-content {
    grid-column: 2;
    padding: 20px 30px;
    width: 100%;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.header h1 {
    font-size: 1.8rem;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.btn {
    background-color: #333;
    color: var(--text-color);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: #000;
}

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

.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

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

.stat-item {
    text-align: center;
    padding: 15px;
    background-color: #1e1e1e;
    border-radius: 8px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #ccc;
}

.workout-list {
    list-style: none;
}

.workout-item {
    padding: 10px 0;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
}

.workout-item:last-child {
    border-bottom: none;
}

.progress-bar {
    height: 8px;
    background-color: #333;
    border-radius: 4px;
    margin: 10px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 4px;
}

/* Premium Features */
.premium-feature {
    position: relative;
    overflow: hidden;
}

.premium-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--premium-color);
    color: #000;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: bold;
}

.premium-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.premium-overlay h3 {
    color: var(--premium-color);
    margin-bottom: 10px;
}

/* Mobile menu button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 15px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 220px 1fr;
    }

    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        grid-column: 1;
        width: 100%;
        padding: 20px;
    }

    .menu-toggle {
        display: block;
    }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 99;
    }

    .overlay.active {
        display: block;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 15px;
    }

    .card {
        padding: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-item {
        padding: 10px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .user-profile {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .user-info {
        text-align: center;
    }
}

@media (max-width: 400px) {
    .sidebar {
        width: 100%;
    }

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

    .header-actions {
        flex-wrap: wrap;
    }
}