/* =====================================================
   aquarela.css — Complemento AdminLTE para Aquarela Senior
   ===================================================== */

/* ---------- Variáveis ---------- */
:root {
    --aq-primary:   #2c3e50;
    --aq-blue:      #3498db;
    --aq-green:     #27ae60;
    --aq-orange:    #f39c12;
    --aq-red:       #e74c3c;
    --aq-info:      #17a2b8;
    --aq-shadow:    0 0 15px rgba(0,0,0,.08);
    --aq-radius:    6px;
}

/* ---------- Body / fundo ---------- */
body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Sidebar logo ---------- */
.brand-link img.brand-image {
    max-height: 38px;
    width: auto;
}

/* ---------- Cards ---------- */
.card {
    border-radius: var(--aq-radius);
    box-shadow: var(--aq-shadow);
}

.card-header {
    border-radius: var(--aq-radius) var(--aq-radius) 0 0 !important;
}

/* Título dentro do card-header (h3, h4, h5, h6) */
.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6 {
    color: var(--aq-primary);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .2px;
}

/* Exceção: card-header colorido (bg-primary, bg-success etc.) mantém branco */
.card-header[class*="bg-"] h1,
.card-header[class*="bg-"] h2,
.card-header[class*="bg-"] h3,
.card-header[class*="bg-"] h4,
.card-header[class*="bg-"] h5,
.card-header[class*="bg-"] h6 {
    color: #fff;
}

/* Reduz espaço vazio deixado pela remoção do h1 do content-header */
.content-header {
    padding: .5rem 0;
}

/* ---------- Tabelas ---------- */
.table {
    font-size: .875rem;
}

.table th {
    font-size: .8rem;
    font-weight: 600;
    vertical-align: middle !important;
}

.table td {
    vertical-align: middle !important;
}

/* Substituição global do table-dark — azul petróleo */
.table-dark,
.table-dark > thead,
.table-dark > tbody,
.table-dark > tfoot,
.table > thead.table-dark {
    background-color: #1e4976 !important;
    color: #fff !important;
    border-color: #1e4976 !important;
}

.table-dark th,
.table-dark td,
.table-dark thead th,
.table > thead.table-dark th {
    background-color: #1e4976 !important;
    color: #fff !important;
    border-color: rgba(255,255,255,.12) !important;
}

/* ---------- Form labels ---------- */
.form-label,
label {
    font-weight: 600;
    color: #495057;
    font-size: .875rem;
}

/* ---------- Botões ---------- */
.btn {
    border-radius: var(--aq-radius);
    font-weight: 500;
}

/* ---------- Alertas / partials ---------- */
.alert {
    border-radius: var(--aq-radius);
}

.alert-modern {
    border: none;
    border-radius: var(--aq-radius);
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.alert-modern .fas {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alert-modern .btn-close {
    margin-left: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.alert-success-modern {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    color: #fff;
    border-left: 5px solid #145a32;
}

.alert-danger-modern {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    border-left: 5px solid #922b21;
}

.alert-warning-modern {
    background: linear-gradient(135deg, #f39c12 0%, #d68910 100%);
    color: #fff;
    border-left: 5px solid #9a6109;
}

.alert-warning-modern .btn-close,
.alert-info-modern .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.alert-info-modern {
    background: linear-gradient(135deg, #2980b9 0%, #1f618d 100%);
    color: #fff;
    border-left: 5px solid #154360;
}

/* ==========================================================
   STATS CARDS (usados em home.blade.php e dashboard-comercial)
   ========================================================== */
.stats-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}

.stats-card-primary::before { background: linear-gradient(90deg, var(--aq-blue), #2980b9); }
.stats-card-success::before { background: linear-gradient(90deg, var(--aq-green), #229954); }
.stats-card-warning::before { background: linear-gradient(90deg, var(--aq-orange), #e67e22); }
.stats-card-info::before    { background: linear-gradient(90deg, var(--aq-info), #138496); }
.stats-card-danger::before  { background: linear-gradient(90deg, var(--aq-red), #c0392b); }

.stats-card .card-body  { padding: 1.25rem 1.5rem; }
.stats-card .card-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: .6rem 1.5rem;
}

.stats-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.4rem;
    flex-shrink: 0;
    color: #fff;
}

.stats-card-primary .stats-icon { background: linear-gradient(135deg, var(--aq-blue), #2980b9); box-shadow: 0 4px 12px rgba(52,152,219,.3); }
.stats-card-success .stats-icon { background: linear-gradient(135deg, var(--aq-green), #229954); box-shadow: 0 4px 12px rgba(39,174,96,.3); }
.stats-card-warning .stats-icon { background: linear-gradient(135deg, var(--aq-orange), #e67e22); box-shadow: 0 4px 12px rgba(243,156,18,.3); }
.stats-card-info    .stats-icon { background: linear-gradient(135deg, var(--aq-info), #138496);   box-shadow: 0 4px 12px rgba(23,162,184,.3); }
.stats-card-danger  .stats-icon { background: linear-gradient(135deg, var(--aq-red), #c0392b);   box-shadow: 0 4px 12px rgba(231,76,60,.3); }

.stats-content { flex: 1; min-width: 0; }

.stats-title {
    color: #6c757d;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: .3rem;
}

.stats-number {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stats-footer {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: .82rem;
}

.stats-footer a {
    color: inherit;
    font-weight: 500;
    text-decoration: none;
}

.stats-footer a:hover { color: var(--aq-blue); }

/* ---------- Breadcrumb do AdminLTE ---------- */
.breadcrumb-item a { color: var(--aq-blue); }

/* ---------- Selects — seta customizada ---------- */
select.form-control,
.form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="%23666" d="M12.3 5.6L8 10 3.7 5.6z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px;
    padding-right: 36px;
}

/* ---------- Sidebar ---------- */
.nav-sidebar .nav-link {
    font-size: 15px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 576px) {
    .stats-number { font-size: 1.1rem; }
    .stats-icon   { width: 44px; height: 44px; font-size: 1.1rem; }
}
