:root {
    --primary-color: #0f172a;
    --primary-light: #1e293b;
    --accent-color: #3b82f6;
    --accent-light: #eff6ff;
    --success-color: #10b981;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --border-color: rgba(226, 232, 240, 0.8);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-gradient);
    display: flex;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Sidebar Navigation */
.sidebar {
    width: 240px;
    background: var(--primary-color);
    padding: 2.5rem 1.25rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    background: linear-gradient(to right, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2.5rem;
    line-height: 1.2;
    padding: 0 0.5rem;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 0.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #94a3b8;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transform: translateX(5px);
}

.nav-links li a.active {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1100;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    backdrop-filter: blur(8px);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 240px;
    padding: 3rem 4rem;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

header {
    margin-bottom: 2.5rem;
    animation: slideDown 0.6s ease-out;
}

h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    letter-spacing: -0.02em;
}

h2::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 1.5rem;
    background: var(--accent-color);
    margin-right: 0.75rem;
    border-radius: 3px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.highlight-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
    border-left: 5px solid var(--accent-color);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    font-weight: 700;
    color: #92400e;
}

.important-box {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border-left: 5px solid var(--accent-color);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    color: #1e40af;
    font-weight: 600;
}

/* Table Design */
.table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th, td {
    padding: 1rem 1.5rem;
    text-align: left;
}

th {
    background-color: #f8fafc;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--border-color);
}

td {
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #fbfcfd;
}

/* Buttons & Links */
.pdf-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.pdf-btn {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--primary-light);
    padding: 1.25rem;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.75rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.pdf-btn:hover {
    background: var(--accent-light);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* Upload & Interactive Elements */
.upload-section {
    border: 2px dashed #cbd5e1;
    padding: 3rem 1.5rem;
    text-align: center;
    border-radius: 1.25rem;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-section:hover {
    border-color: var(--accent-color);
    background: white;
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: linear-gradient(to bottom right, #3b82f6, #2563eb);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    border: none;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
}

/* Footer Customization */
footer {
    margin-top: 4rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
}

.version-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* Mobile & Tablet Overrides */
@media (max-width: 1024px) {
    .main-content {
        padding: 3rem 2.5rem;
    }
    h1 { font-size: 2.25rem; }
}

@media (max-width: 768px) {
    body { flex-direction: column; }
    
    .sidebar {
        width: 280px;
        height: 100vh;
        position: fixed;
        transform: translateX(-100%);
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    }

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

    .main-content {
        margin-left: 0;
        padding: 4.5rem 1.25rem 2.5rem;
    }

    .mobile-toggle { display: block; }

    h1 { font-size: 1.8rem; }
    .card { padding: 1.5rem; }

    footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Keyframes */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
