/* === Layout Global === */
body {
    margin: 0;
    padding: 0;
}

.ag-theme-alpine .ag-header {
    background-color: #6f878f !important; /* Azul escuro */
    color: white !important;
    font-weight: bold;
    font-size: 14px;
    border-bottom: 2px solid #1f77b4;
}

.ag-theme-alpine .ag-header-cell-label {
    justify-content: center;
}

.content-wrapper {
    margin-left: 250px;  /* deve bater com .sidebar width */
    padding: 20px;
    min-height: 100vh;
    background-color: #f8fafc;
}

/* === Sidebar === */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    padding: 20px;
    background-color: #1e293b;  /* azul escuro */
    color: white;
    z-index: 1000;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
}

.sidebar-nav .nav-link {
    color: #cbd5e1;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.2s ease-in-out;
}

.sidebar-nav .nav-link.active,
.sidebar-nav .nav-link:hover {
    background-color: #334155;
    color: white;
}

/* === Cartões === */
.card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
}

.card h5 {
    font-weight: bold;
    color: #495057;
}

.card h3 {
    color: #007bff;
}

/* === Títulos e cabeçalhos === */
h1, h2, h3, h4, h5, h6 {
    color: #343a40;
}

/* === Gráficos === */
.graph-container {
    padding: 1rem;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

/* === Responsivo === */
@media (max-width: 768px) {
    .content {
        margin-left: 0;
    }
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }
    .card h3 {
        font-size: 1.5rem;
    }
    .card h5 {
        font-size: 1rem;
    }
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f2f5;
}

.login-box {
    width: 350px;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}
.modal-backdrop {
    opacity: 0.85 !important;
    background-color: #f8f9fa !important;
}
.red-bold {
    background-color: #ffe6e6 !important;
    color: red !important;
    font-weight: bold !important;
}