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

:root {
    --verde-escuro: #3d5a3d;
    --verde-medio: #4a6b4a;
    --verde-claro: #5a7d5a;
    --laranja: #f39c12;
    --laranja-hover: #e67e22;
    --bege-claro: #f5f5dc;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #2d4a2d 0%, #3d5a3d 50%, #2d4a2d 100%);
    min-height: 100vh;
    color: #f5f5dc;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* Header */
header {
    border-bottom: 1px solid rgba(243, 156, 18, 0.3);
    backdrop-filter: blur(10px);
    background: rgba(45, 74, 45, 0.9);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 50px;
    width: auto;
}

header h1 {
    font-size: 1.25rem;
    color: var(--bege-claro);
    font-weight: 700;
}

.btn-admin {
    background: var(--laranja);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    border: none;
    transition: all 0.2s;
    font-weight: 600;
}

.btn-admin:hover {
    background: var(--laranja-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
}

/* Main */
main {
    flex: 1;
    padding: 3rem 0;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h2 {
    font-size: 3rem;
    color: var(--bege-claro);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(245, 245, 220, 0.9);
    max-width: 42rem;
    margin: 0 auto;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--bege-claro);
    font-size: 1.5rem;
    font-weight: 600;
}

.section-title svg {
    color: var(--laranja);
}

/* Subjects Grid */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.subject-card {
    background: rgba(90, 125, 90, 0.2);
    border: 2px solid rgba(243, 156, 18, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.subject-card:hover {
    background: rgba(90, 125, 90, 0.4);
    border-color: var(--laranja);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.2);
}

.subject-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.subject-card h3 {
    color: var(--bege-claro);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.subject-card:hover h3 {
    color: var(--laranja);
}

.subject-card p {
    color: rgba(245, 245, 220, 0.8);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.subject-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--laranja);
    flex-shrink: 0;
}

.file-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(245, 245, 220, 0.9);
    font-size: 0.875rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(243, 156, 18, 0.3);
}

.file-count svg {
    width: 1rem;
    height: 1rem;
    color: var(--laranja);
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--bege-claro);
    font-size: 1.125rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(90, 125, 90, 0.2);
    border: 2px solid rgba(243, 156, 18, 0.3);
    border-radius: 0.75rem;
}

.empty-state svg {
    width: 3rem;
    height: 3rem;
    color: var(--laranja);
    margin: 0 auto 1rem;
}

.empty-state h4 {
    color: var(--bege-claro);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: rgba(245, 245, 220, 0.7);
    font-size: 0.875rem;
}

/* Footer */
footer {
    border-top: 1px solid rgba(243, 156, 18, 0.3);
    backdrop-filter: blur(10px);
    background: rgba(45, 74, 45, 0.9);
    padding: 1.5rem 0;
    margin-top: auto;
}

footer p {
    text-align: center;
    color: rgba(245, 245, 220, 0.8);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        height: 40px;
    }

    header h1 {
        font-size: 1rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

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