:root {
    /* Premium Color Palette */
    --primary-color: #197A6F;
    --primary-hover: #0D4C44;
    --primary-light: #66BCA5;
    --primary-glow: rgba(25, 122, 111, 0.15);

    /* Sophisticated Backgrounds */
    --sidebar-bg: linear-gradient(180deg, #FFFFFF 0%, #FAFBFA 100%);
    --sidebar-hover: rgba(25, 122, 111, 0.04);
    --sidebar-active: linear-gradient(135deg, rgba(25, 122, 111, 0.12) 0%, rgba(25, 122, 111, 0.06) 100%);

    /* Text Colors */
    --text-primary: #1A1D2E;
    --text-secondary: #64748B;
    --text-tertiary: #94A3B8;

    /* Premium Borders */
    --border-primary: rgba(226, 232, 240, 0.8);
    --border-secondary: rgba(203, 213, 225, 0.6);
    --border-accent: rgba(25, 122, 111, 0.2);
    --border-glow: rgba(25, 122, 111, 0.3);

    /* Backgrounds */
    --header-bg: rgba(255, 255, 255, 0.95);
    --background-light: #F8FAFB;
    --content-bg: #FFFFFF;

    /* Premium Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px var(--primary-glow), 0 4px 12px rgba(25, 122, 111, 0.2);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
}

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

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background-light);
    color: var(--text-primary);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    gap: 1px;
    background: var(--border-primary);
}

/* Premium Sidebar Styles */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-primary);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    position: relative;
}

.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: -1px;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg,
            transparent 0%,
            var(--border-secondary) 10%,
            var(--border-secondary) 90%,
            transparent 100%);
    pointer-events: none;
}

.sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-primary);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    height: 80px;
    display: flex;
    align-items: center;
    position: relative;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1.5px solid var(--border-primary);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.logo-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.logo-icon:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-accent);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.app-title-main {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.app-title-sub {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.nav-section {
    margin-bottom: 28px;
}

.nav-section-title {
    padding: 10px 24px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-item {
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    margin: 4px 16px;
    border: 1px solid transparent;
}


.nav-item:hover {
    background: var(--sidebar-hover);
    border-color: var(--border-primary);
    transform: translateX(2px);
}

.nav-item.active {
    background: var(--sidebar-active);
    color: var(--primary-color);
    font-weight: 600;
    border: 1px solid var(--border-accent);
    border-left: 3px solid var(--primary-color);
    padding-left: 17px;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Premium Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--content-bg);
}

.header {
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    padding: 0 36px;
    border-bottom: 1px solid var(--border-primary);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 50;
    height: 80px;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 36px;
    right: 36px;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--border-accent) 50%,
            transparent 100%);
}

.header-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    position: relative;
    padding-left: 16px;
}

.header-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-glow);
}

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

.header-btn {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 1.5px solid var(--border-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.header-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(25, 122, 111, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.header-btn:hover::before {
    opacity: 1;
}

.btn-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    color: var(--primary-color);
}

.header-btn:hover .btn-icon {
    transform: scale(1.1);
}

.header-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.content-area {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: var(--background-light);
    padding: 20px;
}

.report-container {
    display: none;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1.5px solid var(--border-primary);
    box-shadow: var(--shadow-xl);
    background: white;
    position: relative;
}

.report-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1.5px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.8) 0%,
            transparent 50%,
            rgba(25, 122, 111, 0.1) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

.report-container.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.report-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-lg);
}

.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    flex-direction: column;
    gap: 20px;
}

.loading-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid var(--border-primary);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    box-shadow: 0 0 20px var(--primary-glow);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Premium Scrollbar Styles */
.sidebar-nav::-webkit-scrollbar {
    width: 8px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--border-secondary), var(--border-primary));
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: background 0.2s ease;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-light), var(--primary-color));
    background-clip: padding-box;
}

/* Premium Notification Toast */
.notification {
    position: fixed;
    top: 100px;
    right: 36px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.notification::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.notification-error {
    background: linear-gradient(135deg, #C74E5F, #A03E4E);
    box-shadow: 0 0 20px rgba(199, 78, 95, 0.3), 0 8px 16px rgba(199, 78, 95, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 240px;
    }

    .header {
        padding: 16px 20px;
    }

    .header-title {
        font-size: 18px;
    }

    .content-area {
        padding: 12px;
    }
}