/* ===============================================
   TEMA LIMPO E PROFISSIONAL - ESTILO CORPORATIVO
   =============================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #0ea5e9;
    --light: #f8fafc;
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border: #e2e8f0;
}

/* ===============================================
   ELEMENTOS HTML PADRÃO
   =============================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
}

p, span {
    color: var(--text-primary);
}

/* ===============================================
   COMPONENTES BOOTSTRAP CUSTOMIZADOS
   =============================================== */

/* Cards */
.card {
    border: 1px solid var(--border);
    background-color: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: rgba(37, 99, 235, 0.2);
}

.card-header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 16px;
}

.card-body {
    padding: 16px;
}

/* Tabelas */
.table {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.table thead {
    background-color: var(--bg-primary);
    border-bottom: 2px solid var(--border);
}

.table thead th {
    color: var(--text-primary);
    font-weight: 600;
    border: none;
    padding: 12px;
}

.table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: var(--bg-primary);
}

.table tbody td {
    padding: 12px;
    color: var(--text-primary);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.01);
}

/* Botões */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:active,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: #475569;
    border-color: #475569;
}

.btn-success {
    background-color: var(--success);
    border-color: var(--success);
}

.btn-success:hover {
    background-color: #059669;
    border-color: #059669;
}

.btn-danger {
    background-color: var(--danger);
    border-color: var(--danger);
}

.btn-danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
}

.btn-warning {
    background-color: var(--warning);
    border-color: var(--warning);
    color: #000;
}

.btn-warning:hover {
    background-color: #d97706;
    border-color: #d97706;
    color: #000;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Badges */
.badge {
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
}

.badge-primary {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.badge-info {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--info);
}

/* Alertas */
.alert {
    border: 1px solid;
    border-radius: 6px;
    padding: 12px 16px;
}

.alert-primary {
    background-color: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
    color: var(--primary);
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.alert-info {
    background-color: rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.2);
    color: var(--info);
}

/* Formulários */
.form-control,
.form-select {
    border: 1px solid var(--border);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 6px;
    padding: 10px 12px;
    transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

.form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 6px;
}

/* Dropdowns */
.dropdown-menu {
    border: 1px solid var(--border);
    background-color: var(--bg-secondary);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.dropdown-item {
    color: var(--text-primary);
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: var(--bg-primary);
    color: var(--primary);
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--primary);
    color: #fff;
}

/* Paginação */
.pagination .page-link {
    border: 1px solid var(--border);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.pagination .page-link:hover {
    background-color: var(--bg-primary);
    border-color: var(--border);
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Nav */
.nav-tabs {
    border-bottom: 2px solid var(--border);
}

.nav-tabs .nav-link {
    color: var(--text-secondary);
    border: none;
    transition: all 0.3s;
}

.nav-tabs .nav-link:hover {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    background-color: transparent;
    border-bottom: 2px solid var(--primary);
}

/* Modais */
.modal-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.modal-header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 16px;
}

.modal-header .btn-close {
    filter: invert(0);
}

.modal-body {
    padding: 16px;
    color: var(--text-primary);
}

.modal-footer {
    border-top: 1px solid var(--border);
    background-color: var(--bg-primary);
}

/* Tooltips */
.tooltip-inner {
    background-color: var(--text-primary);
    border-radius: 4px;
}

/* Cores de Texto Específicas */
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }

.bg-success { background-color: var(--success) !important; }
.bg-danger { background-color: var(--danger) !important; }
.bg-warning { background-color: var(--warning) !important; }
.bg-info { background-color: var(--info) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-light { background-color: var(--light) !important; }

/* Bordas */
.border { border-color: var(--border) !important; }

/* ===============================================
   RESPONSIVIDADE
   =============================================== */

@media (max-width: 768px) {
    .table-responsive {
        border: 1px solid var(--border);
        border-radius: 6px;
    }
}
