:root{
    --verde:#1a4d3d;
    --azul:#1a2332;
    --verde-claro:#2d7a5f;
    --azul-claro:#2d3a4d;
    --verde-hover:#153d2f;
    --azul-hover:#0f1620;
    --primary:#1a4d3d;
    --primary-dark:#153d2f;
    --secondary:#1a2332;
    --danger:#ef4444;
    --warning:#f59e0b;
    --success:#10b981;
    --dark:#1f2937;
    --light:#f3f4f6;
    --white:#fff;
    --border:#e5e7eb;
    --text:#374151;
    --text-light:#6b7280;
}

*{margin:0;padding:0;box-sizing:border-box}

body{
    font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
    background:var(--light);
    color:var(--text);
    line-height:1.6;
}

.header{
    background:linear-gradient(135deg,var(--verde) 0%,var(--azul) 100%)!important;
    color:white;
    padding:1rem;
    box-shadow:0 2px 10px rgba(0,0,0,.1);
    position:sticky;
    top:0;
    z-index:1000;
}

.header-content{
    max-width:1200px;
    margin:0 auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    font-size:1.5rem;
    font-weight:700;
    display:flex;
    align-items:center;
    gap:.5rem;
    color:#fff!important;
}

.nav-menu{
    display:flex;
    gap:1rem;
    list-style:none;
}

.nav-menu a{
    color:white!important;
    text-decoration:none;
    padding:.5rem 1rem;
    border-radius:8px;
    transition:all .3s;
}

.nav-menu a:hover{
    background:rgba(255,255,255,.2)!important;
}

.menu-toggle{
    display:none;
    background:0 0;
    border:none;
    color:white;
    font-size:1.5rem;
    cursor:pointer;
}

.container{
    max-width:1200px;
    margin:2rem auto;
    padding:0 1rem;
}

.card{
    background:white;
    border-radius:8px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
    padding:1.5rem;
    margin-bottom:1.5rem;
    border:1px solid #e0e0e0;
}

.card-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:1.5rem;
    padding:1rem 1.5rem;
    margin:-1.5rem -1.5rem 1.5rem;
    background:linear-gradient(135deg,var(--verde),var(--azul))!important;
    color:#fff!important;
    border-radius:8px 8px 0 0;
}

.card-title{
    font-size:1.5rem;
    font-weight:700;
    color:#fff!important;
    margin:0;
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:1.5rem;
    margin-bottom:2rem;
}

.stat-card{
    background:linear-gradient(135deg,var(--verde-claro),var(--azul-claro))!important;
    border-radius:12px;
    padding:1.5rem;
    box-shadow:0 4px 12px rgba(26,77,61,0.3)!important;
    border:none!important;
    color:#fff!important;
}

.stat-value{
    font-size:2.5rem;
    font-weight:700;
    color:#fff!important;
    margin-bottom:0.5rem;
}

.stat-label{
    color:#e0e0e0!important;
    font-size:.9rem;
}

.form-group{
    margin-bottom:1.5rem;
}

.form-label{
    display:block;
    font-weight:600;
    margin-bottom:.5rem;
    color:var(--azul);
}

.form-control{
    width:100%;
    padding:.75rem 1rem;
    font-size:1rem;
    border:2px solid var(--border);
    border-radius:8px;
    transition:all .3s;
}

.form-control:focus{
    outline:0;
    border-color:var(--verde);
    box-shadow:0 0 0 3px rgba(26,77,61,.1);
}

.btn{
    display:inline-block;
    padding:.75rem 1.5rem;
    font-size:1rem;
    font-weight:600;
    text-align:center;
    text-decoration:none;
    border:none;
    border-radius:8px;
    cursor:pointer;
    transition:all .3s;
}

.btn-primary{
    background:var(--verde)!important;
    color:white!important;
    border:none!important;
}

.btn-primary:hover{
    background:var(--verde-hover)!important;
    transform:translateY(-2px);
    box-shadow:0 4px 12px rgba(26,77,61,0.4);
}

.btn-secondary{
    background:var(--azul)!important;
    color:white!important;
}

.btn-secondary:hover{
    background:var(--azul-hover)!important;
}

.btn-success{
    background:var(--success)!important;
    color:white!important;
}

.btn-danger{
    background:var(--danger)!important;
    color:white!important;
}

.btn-lg{
    width:100%;
    padding:1rem 2rem;
    font-size:1.1rem;
}

.btn-sm{
    padding:0.5rem 1rem;
    font-size:0.9rem;
}

.btn-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:.5rem;
}

.table-responsive{
    overflow-x:auto;
}

.table{
    width:100%;
    border-collapse:collapse;
}

.table td,.table th{
    padding:1rem;
    text-align:left;
    border-bottom:1px solid var(--border);
}

.table th{
    background:linear-gradient(135deg,var(--verde),var(--azul))!important;
    color:#fff!important;
    font-weight:700;
    border:none!important;
}

.table tbody tr:hover{
    background:#f5f5f5;
}

.badge{
    display:inline-block;
    padding:.25rem .75rem;
    font-size:.85rem;
    font-weight:600;
    border-radius:9999px;
}

.badge-success{
    background:#4caf50!important;
    color:#fff!important;
}

.badge-danger{
    background:#f44336!important;
    color:#fff!important;
}

.badge-warning{
    background:#ff9800!important;
    color:#fff!important;
}

.badge-info{
    background:#2196f3!important;
    color:#fff!important;
}

.badge-secondary{
    background:#757575!important;
    color:#fff!important;
}

.alert{
    padding:1rem 1.5rem;
    border-radius:8px;
    margin-bottom:1.5rem;
    display:flex;
    align-items:flex-start;
    gap:1rem;
}

.alert-success{
    background:#d4edda;
    color:#155724;
    border-left:4px solid #28a745;
}

.alert-danger{
    background:#f8d7da;
    color:#721c24;
    border-left:4px solid #dc3545;
}

.alert-warning{
    background:#fff3cd;
    color:#856404;
    border-left:4px solid #ffc107;
}

.alert-info{
    background:#d1ecf1;
    color:#0c5460;
    border-left:4px solid #17a2b8;
}

.modal{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.7);
    z-index:9999;
    align-items:center;
    justify-content:center;
}

.modal.active{
    display:flex;
}

.modal-content{
    background:white;
    border-radius:12px;
    max-width:600px;
    width:90%;
    max-height:90vh;
    overflow-y:auto;
    box-shadow:0 8px 24px rgba(0,0,0,0.3);
}

.modal-header{
    padding:1.5rem;
    border-bottom:1px solid var(--border);
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:linear-gradient(135deg,var(--verde),var(--azul));
    color:#fff;
    border-radius:12px 12px 0 0;
}

.modal-close{
    background:none;
    border:none;
    color:#fff;
    font-size:1.5rem;
    cursor:pointer;
    padding:0;
    width:30px;
    height:30px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.modal-body{
    padding:1.5rem;
}

.modal-footer{
    padding:1.5rem;
    border-top:1px solid var(--border);
    display:flex;
    gap:1rem;
    justify-content:flex-end;
}

.info-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:1.5rem;
}

.info-box{
    background:#f8f9fa;
    padding:1rem;
    border-radius:8px;
    border-left:4px solid var(--verde);
}

.info-label{
    font-size:0.85rem;
    color:#666;
    margin-bottom:0.3rem;
}

.info-value{
    font-size:1.3rem;
    font-weight:700;
    color:var(--azul);
}

.d-flex{
    display:flex;
}

.gap-1{
    gap:.5rem;
}

.gap-2{
    gap:1rem;
}

.text-center{
    text-align:center;
}

.justify-between{
    justify-content:space-between;
}

.align-center{
    align-items:center;
}

@media (max-width:768px){
    .header-content{
        flex-wrap:wrap;
    }
    
    .menu-toggle{
        display:block;
    }
    
    .nav-menu{
        display:none;
        width:100%;
        flex-direction:column;
        margin-top:1rem;
    }
    
    .nav-menu.active{
        display:flex;
    }
    
    .stats-grid{
        grid-template-columns:repeat(2,1fr);
    }
    
    .info-grid{
        grid-template-columns:1fr;
    }
    
    .table{
        font-size:.85rem;
    }
    
    .table td,.table th{
        padding:.5rem;
    }
    
    .stat-value{
        font-size:2rem;
    }
    
    h1{
        font-size:1.5rem;
    }
    
    .card-header{
        flex-direction:column;
        gap:1rem;
        align-items:flex-start;
    }
}

@media (max-width:480px){
    .stats-grid{
        grid-template-columns:1fr;
    }
    
    .stat-value{
        font-size:1.8rem;
    }
    
    .btn-lg{
        padding:0.8rem 1.5rem;
        font-size:1rem;
    }
}

.fade-in{
    animation:slideIn .3s ease;
}

@keyframes slideIn{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}