/* ── CABUNGO — Estilos Globais ────────────────────────────────────────── */
:root {
    --sidebar-width: 240px;
    --primary: #0d6efd;
    --sidebar-bg: #fff;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    transition: width .25s ease;
    overflow-y: auto;
}

.sidebar-link {
    color: #444;
    border-radius: 8px;
    padding: .5rem .75rem;
    font-size: .9rem;
    transition: background .15s, color .15s;
    display: flex;
    align-items: center;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: #e8f0fe;
    color: var(--primary);
    font-weight: 600;
}

.sidebar-link i { font-size: 1rem; }

/* Cards de estatísticas */
.stat-card {
    border: none;
    border-radius: 14px;
    transition: transform .15s, box-shadow .15s;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1) !important;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

/* Timeline de movimentos */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
    content: '';
    position: absolute;
    left: .85rem;
    top: 0; bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item { position: relative; margin-bottom: 1.5rem; }
.timeline-dot {
    position: absolute;
    left: -2rem;
    top: .25rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #dee2e6;
}

/* Badges de estado */
.badge-estado { font-size: .78rem; padding: .35em .7em; border-radius: 6px; }

/* Tabelas */
.table-hover tbody tr:hover { background: #f0f4ff; cursor: pointer; }

/* Formulários */
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
}

/* Botão de acção flutuante */
.fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    z-index: 1000;
    transition: transform .15s;
}
.fab:hover { transform: scale(1.1); }

/* Responsivo */
@media (max-width: 768px) {
    .sidebar { width: 0; min-width: 0; overflow: hidden; }
    .sidebar.show { width: var(--sidebar-width); min-width: var(--sidebar-width); position: fixed; z-index: 999; height: 100%; top: 56px; }
}

/* Login page */
.login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 50%, #084298 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 420px;
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

/* Alerta flash */
.alert { border-radius: 10px; }

/* Número do expediente */
.exp-numero { font-family: monospace; font-weight: 700; font-size: 1rem; color: var(--primary); }

/* Progress steps */
.step-tracker { display: flex; align-items: center; gap: 0; }
.step { flex: 1; text-align: center; position: relative; }
.step::after {
    content: '';
    position: absolute;
    top: 14px; left: 50%; right: -50%;
    height: 2px;
    background: #dee2e6;
    z-index: 0;
}
.step:last-child::after { display: none; }
.step-dot {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #dee2e6;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    position: relative; z-index: 1;
    font-weight: 700;
}
.step.done .step-dot { background: #198754; }
.step.active .step-dot { background: #0d6efd; box-shadow: 0 0 0 4px rgba(13,110,253,.25); }
.step-label { font-size: .65rem; color: #888; margin-top: .3rem; }
