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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

/* Side Navigation Menu */
.side-nav {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 260px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.nav-header {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-close-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 1;
    transition: opacity 0.3s;
}

.nav-close-btn:hover {
    opacity: 0.7;
}

.nav-links {
    list-style: none;
    padding: 1rem 0;
    flex: 1;
    overflow-y: auto;
}

.nav-links li {
    margin: 0.25rem 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    text-decoration: none;
    padding: 0.875rem 1.25rem;
    transition: all 0.3s;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: rgba(255, 255, 255, 0.5);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    border-left-color: white;
    font-weight: 600;
}

.nav-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.nav-text {
    flex: 1;
}

/* Mobile Top Header Bar */
.mobile-top-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    align-items: center;
    padding: 0 1rem;
}

.mobile-menu-toggle {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: background 0.2s;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle:active {
    background: rgba(255, 255, 255, 0.2);
}

.hamburger-icon {
    display: block;
    line-height: 1;
}

.mobile-header-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-left: 0.5rem;
    flex: 1;
}

/* Navigation Overlay for Mobile */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Main Container */
.container {
    max-width: 1400px;
    padding: 2rem;
    transition: margin-left 0.3s ease;
    overflow-x: hidden;
    box-sizing: border-box;
    margin-left: 260px;
    margin-right: auto;
}

/* On wide screens (wider than sidebar + content), center content in viewport */
@media (min-width: 1660px) {
    .container {
        max-width: 1600px;
        margin-left: calc((100vw - 1400px) / 2);
        margin-right: auto;
    }
}

/* On medium screens, use full width minus sidebar */
@media (min-width: 768px) and (max-width: 1659px) {
    .container {
        width: calc(100vw - 260px);
        margin-left: 260px;
        margin-right: auto;
    }
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #666;
}

.last-updated {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #999;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-top-header {
        display: flex;
    }

    .side-nav {
        transform: translateX(-100%);
        top: 56px;
        height: calc(100vh - 56px);
    }

    .side-nav.open {
        transform: translateX(0);
    }

    .nav-close-btn {
        display: block;
    }

    .container {
        margin-left: 0;
        padding: 1rem;
        padding-top: 5.5rem;
        width: 100%;
        max-width: 100%;
    }

    body {
        overflow-x: hidden;
    }

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

@media (max-width: 480px) {
    .mobile-top-header {
        height: 52px;
        padding: 0 0.75rem;
    }

    .mobile-header-brand {
        font-size: 1.1rem;
    }

    .side-nav {
        width: 240px;
        top: 52px;
        height: calc(100vh - 52px);
    }

    .container {
        padding: 0.75rem;
        padding-top: 5rem;
        width: 100%;
        max-width: 100%;
    }

    .page-header h1 {
        font-size: 1.25rem;
    }

    .nav-link {
        padding: 0.75rem 1rem;
    }
}

