/* ============================================================
 * Termine — application styles (layered on top of Bootstrap 5).
 * ============================================================ */
:root {
    --tm-primary: #0d6efd;
    --tm-radius: .75rem;
}

body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* ---------------- Public: hero ---------------- */
.hero {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
}
.hero .opacity-90 { opacity: .9; }

.feature-icon {
    width: 64px; height: 64px; line-height: 64px;
    border-radius: 50%;
    background: rgba(13, 110, 253, .1);
    color: var(--tm-primary);
    font-size: 1.6rem;
    margin: 0 auto;
}

/* ---------------- Cards ---------------- */
.service-card { transition: transform .15s ease, box-shadow .15s ease; border-radius: var(--tm-radius); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.1) !important; }

.service-dot {
    display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle;
}

.avatar-circle {
    width: 84px; height: 84px; border-radius: 50%;
    color: #fff; font-size: 2rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

/* ---------------- Booking wizard ---------------- */
.wizard-steps { gap: .5rem; }
.wizard-step {
    display: flex; align-items: center; gap: .5rem;
    padding: .4rem .9rem; border-radius: 2rem;
    background: #e9ecef; color: #6c757d; font-size: .9rem; font-weight: 500;
}
.wizard-step .step-num {
    width: 24px; height: 24px; border-radius: 50%;
    background: #adb5bd; color: #fff; font-size: .8rem;
    display: inline-flex; align-items: center; justify-content: center;
}
.wizard-step.active { background: var(--tm-primary); color: #fff; }
.wizard-step.active .step-num { background: #fff; color: var(--tm-primary); }
.wizard-step.done { background: #d1e7dd; color: #0f5132; }
.wizard-step.done .step-num { background: #198754; }

.select-card {
    border: 2px solid #dee2e6; border-radius: var(--tm-radius);
    background: #fff; padding: 1rem; transition: all .15s ease; cursor: pointer;
}
.select-card:hover { border-color: var(--tm-primary); background: #f8f9ff; }
.select-card.selected { border-color: var(--tm-primary); background: #eaf1ff; box-shadow: 0 0 0 .15rem rgba(13,110,253,.15); }

.slot-btn { min-width: 72px; }
.slot-btn.active { background: var(--tm-primary); color: #fff; }

/* ---------------- Admin layout ---------------- */
.admin-wrap { min-height: 100vh; }
.admin-sidebar {
    width: 250px; min-width: 250px;
    background: #1e293b; color: #cbd5e1;
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 1040;
    transition: transform .2s ease; overflow-y: auto;
}
.admin-sidebar .brand {
    color: #fff; font-weight: 700; padding: 1.1rem 1.25rem; font-size: 1.15rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-sidebar .nav-link {
    color: #cbd5e1; padding: .65rem 1.25rem; border-radius: 0; display: flex; align-items: center; gap: .65rem;
}
.admin-sidebar .nav-link i { width: 20px; text-align: center; }
.admin-sidebar .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-sidebar .nav-link.active { background: var(--tm-primary); color: #fff; }

.admin-main { margin-left: 250px; }
.admin-topbar { background: #fff; border-bottom: 1px solid #e9ecef; }

@media (max-width: 991.98px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
}

/* KPI cards */
.kpi-card { border: none; border-radius: var(--tm-radius); }
.kpi-card .kpi-icon {
    width: 52px; height: 52px; border-radius: var(--tm-radius);
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff;
}
.kpi-value { font-size: 1.8rem; font-weight: 700; line-height: 1; }

/* Calendar (custom, vanilla) */
.cal-grid { display: grid; grid-template-columns: 64px repeat(var(--cal-days, 7), 1fr); border: 1px solid #e9ecef; border-radius: var(--tm-radius); overflow: hidden; background:#fff; }
.cal-head { background: #f8f9fa; font-weight: 600; text-align: center; padding: .5rem .25rem; border-bottom: 1px solid #e9ecef; font-size: .85rem; }
.cal-time { font-size: .75rem; color: #6c757d; text-align: right; padding: .25rem .4rem; border-top: 1px dashed #f1f3f5; }
.cal-cell { border-top: 1px dashed #f1f3f5; border-left: 1px solid #f1f3f5; position: relative; min-height: 40px; }
.cal-event {
    position: absolute; left: 2px; right: 2px; border-radius: 6px; color: #fff;
    padding: 2px 6px; font-size: .72rem; overflow: hidden; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.15);
}

/* Color swatch input */
input[type="color"].form-control-color { width: 3rem; }

/* Make DataTables play nicely inside cards */
table.dataTable { width: 100% !important; }
.dt-buttons .btn { margin-right: .25rem; }
