* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2d5a3d;
    --secondary-color: #f39c12;
    --accent-color: #3498db;
    --light-bg: #f8f9fa;
    --dark-text: #2c3e50;
    --border-color: #e0e0e0;
    --success-color: #27ae60;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--dark-text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e4620 100%);
    color: white;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.header-content {
    flex: 1;
    min-width: 300px;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.logo {
    width: 120px;
    height: auto;
    margin-left: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Navigation */
.navbar {
    display: flex;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.nav-btn {
    padding: 12px 24px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--dark-text);
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.2);
}

.nav-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Stats */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--secondary-color);
}

.stat-box h3 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-box p {
    color: #7f8c8d;
    font-size: 1em;
}

/* Files Grid */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.file-card {
    background: white;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.file-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pdf-preview {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #e8eef7 0%, #f0f0f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    animation: shimmer 2s infinite;
}

.pdf-preview.loaded {
    animation: none;
    background: white;
}

@keyframes shimmer {
    0%, 100% { 
        background: linear-gradient(135deg, #e8eef7 0%, #f0f0f0 100%);
    }
    50% { 
        background: linear-gradient(135deg, #f0f0f0 0%, #e8eef7 100%);
    }
}

.pdf-canvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pdf-loading {
    text-align: center;
    color: #95a5a6;
}

.pdf-info {
    padding: 20px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.file-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.file-card h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: var(--dark-text);
    word-break: break-word;
    line-height: 1.4;
}

.file-district {
    display: inline-block;
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    margin-bottom: 15px;
    font-weight: 500;
}

.file-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.file-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9em;
}

.btn-view {
    background: var(--accent-color);
    color: white;
}

.btn-view:hover {
    background: #2980b9;
}

.btn-download {
    background: var(--success-color);
    color: white;
}

.btn-download:hover {
    background: #229954;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #95a5a6;
}

.empty-state-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5em;
    color: var(--dark-text);
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .header p {
        font-size: 1em;
    }

    .logo {
        margin-left: 0;
        margin-top: 20px;
    }

    .navbar {
        justify-content: center;
    }

    .nav-btn {
        padding: 10px 16px;
        font-size: 0.9em;
    }

    .files-grid {
        grid-template-columns: 1fr;
    }

    .file-card {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .navbar,
    .file-actions,
    .footer {
        display: none;
    }

    .file-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}
