/* =========================================
   IMPORTAÇÃO DE FONTE E RESET
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* FUNDO OFF-WHITE MODERNO */
body {
    background-color: #f4f7f9 !important; 
    color: #333;
}

/* =========================================
   MENU LATERAL (SIDEBAR)
========================================= */
.sidebar {
    background: linear-gradient(180deg, #0b1e28 0%, #113a4b 100%) !important;
    width: 260px !important;
    min-width: 260px !important;
    margin: 16px;
    border-radius: 20px;
    height: calc(100vh - 32px) !important; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-right: none;
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar { width: 0px; }

.sidebar h5 {
    color: #ffffff !important;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sidebar .nav-link {
    border-radius: 12px;
    transition: all 0.3s ease;
    padding: 14px 18px;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid transparent;
}

.sidebar .nav-link i {
    font-size: 1.2rem;
    margin-right: 10px;
    transition: 0.3s;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    transform: translateX(5px); 
}

.sidebar .nav-link:hover i { color: #17a2b8; }

.sidebar .active-link {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sidebar .active-link i { color: #17a2b8; }

.sidebar .btn-sair {
    color: #ff8a8a !important;
    transition: all 0.3s ease;
    padding: 12px 15px;
    border-radius: 12px;
}

.sidebar .btn-sair:hover {
    background-color: rgba(220, 53, 69, 0.15) !important;
    color: #ffb3b3 !important;
    transform: translateX(5px);
}

/* =========================================
   CLASSES UTILITÁRIAS E CORES
========================================= */
.text-dark-teal { color: #093a4c !important; }
.text-teal { color: #17a2b8 !important; } 
.text-petroleo { color: #093a4c !important; } 
.text-ciano { color: #06b6d4 !important; }
.text-amarelo { color: #f59e0b !important; }
.bg-teal { background-color: #093a4c !important; } 

/* =========================================
   CARDS DO DASHBOARD (REAL TECH / SÓBRIO)
========================================= */
.community-card {
    background-color: #ffffff !important; 
    border-radius: 12px; 
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease-in-out;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    position: relative;
}

a:hover .community-card {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

/* Linha colorida discreta no topo do card (identificador de categoria) */
.community-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 12px 12px 0 0;
}

.card-azul::before { background-color: #3b82f6; }
.card-ciano::before { background-color: #06b6d4; }
.card-amarelo::before { background-color: #f59e0b; }
.card-coral::before { background-color: #f43f5e; }

/* Agora o ícone não tem fundo, é apenas o vetor colorido */
.icon-box {
    font-size: 1.5rem;
    display: inline-block;
    margin-bottom: 16px;
}

.card-azul .icon-box i { color: #3b82f6; }
.card-ciano .icon-box i { color: #06b6d4; }
.card-amarelo .icon-box i { color: #f59e0b; }
.card-coral .icon-box i { color: #f43f5e; }

/* Tipografia limpa */
.c-titulo {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
}

.c-desc {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.3;
}

.c-numero {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -1px;
    margin-top: auto; /* Empurra o número para o final do card */
}

/* =========================================
   CARDS PADRÃO (Gráfico, Ações)
========================================= */
.card-custom {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #eaedf1;
}

/* =========================================
   TABELAS E FORMULÁRIOS
========================================= */
.table-container, .form-container {
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
    border: 1px solid #eaedf1;
}

.table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.table th {
    background-color: #f8fafc; color: #093a4c; font-weight: 600;
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px;
    padding: 14px 15px; border-bottom: 2px solid #edf2f7;
}
.table td {
    padding: 14px 15px; vertical-align: middle;
    border-bottom: 1px solid #edf2f7; font-size: 0.95rem; color: #4a5568;
}
.table tbody tr:hover { background-color: #f1f5f9; }

.form-label { font-weight: 500; color: #4a5568; font-size: 0.95rem; }
.form-control, .form-select {
    padding: 12px 15px; border: 1px solid #cbd5e1; border-radius: 12px;
    font-size: 1rem; color: #333; background-color: #f8fafc;
    transition: all 0.3s ease;
}
.form-control:focus, .form-select:focus {
    outline: none; border-color: #093a4c; background-color: #fff;
    box-shadow: 0 0 0 3px rgba(9, 58, 76, 0.15);
}

/* =========================================
   BOTÕES
========================================= */
.btn-teal {
    background-color: #093a4c; color: #ffffff; border: none;
    padding: 12px 24px; border-radius: 12px; font-size: 1rem;
    font-weight: 600; cursor: pointer; transition: all 0.3s ease;
}
.btn-teal:hover {
    background-color: #062733; transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(9, 58, 76, 0.3); color: #ffffff;
}

.btn-outline-secondary {
    border-radius: 12px; font-weight: 500; background-color: #ffffff;
    color: #4a5568; border: 1px solid #cbd5e1; padding: 12px 20px;
    font-size: 1rem; transition: all 0.3s ease;
}
.btn-outline-secondary:hover {
    background-color: #f8fafc; color: #093a4c; border-color: #093a4c;
}

/* =========================================
   RESPONSIVIDADE
========================================= */
@media (max-width: 768px) {
    .sidebar { width: 70px !important; min-width: 70px !important; overflow: hidden; }
    .sidebar h5, .sidebar .nav-link span { display: none; }
    .sidebar .nav-link { text-align: center; padding: 15px 0; }
    .main-content { padding: 20px; }
    .header h1 { font-size: 1.4rem; }
    .d-flex.gap-2 { flex-direction: column; width: 100%; }
}