/* ── SEWACALL Demo Scheduler – App Styles ─────────────────────────────────── */

:root {
  --brand-blue:   #1a56db;
  --brand-dark:   #0d3a8e;
  --brand-light:  #ebf5ff;
  --sidebar-w:    240px;
}

/* ── Base ──────────────────────────────────────────────────────────────────── */
body { background: #f4f6f9; font-family: 'Segoe UI', system-ui, sans-serif; }
a   { color: var(--brand-blue); }

/* ── Stat Cards ────────────────────────────────────────────────────────────── */
.stat-card {
  border-radius: .75rem;
  padding: 1.1rem 1rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: transform .15s ease, box-shadow .15s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.stat-icon { font-size: 1.6rem; opacity: .35; position: absolute; right: .9rem; top: .8rem; }
.stat-value { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.stat-label { font-size: .78rem; opacity: .9; margin-top: .15rem; text-transform: uppercase; letter-spacing: .04em; }

.stat-blue   { background: linear-gradient(135deg,#1a56db,#1e429f); }
.stat-green  { background: linear-gradient(135deg,#0e9f6e,#057a55); }
.stat-red    { background: linear-gradient(135deg,#e02424,#9b1c1c); }
.stat-orange { background: linear-gradient(135deg,#ff5a1f,#c2410c); }
.stat-indigo { background: linear-gradient(135deg,#6366f1,#4338ca); }
.stat-purple { background: linear-gradient(135deg,#7c3aed,#5b21b6); }

/* ── Navbar ─────────────────────────────────────────────────────────────────── */
.navbar { background: linear-gradient(90deg,#1a56db,#0d3a8e) !important; }
.navbar-brand { font-size: 1.1rem; letter-spacing: -.01em; }

/* ── Cards ──────────────────────────────────────────────────────────────────── */
.card { border: none; border-radius: .75rem; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.card-header { border-radius: .75rem .75rem 0 0 !important; font-size: .9rem; }
.hover-card { transition: box-shadow .15s, transform .15s; display: block; }
.hover-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.14); transform: translateY(-2px); }

/* ── Tables ─────────────────────────────────────────────────────────────────── */
.table td, .table th { vertical-align: middle; font-size: .875rem; }
.table thead th { background: #f8f9fa; border-bottom-width: 2px; font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: #4b5563; }

/* ── Badges ─────────────────────────────────────────────────────────────────── */
.badge { font-size: .72rem; padding: .32em .6em; border-radius: .4em; }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn-xs { padding: .18rem .45rem; font-size: .75rem; }
.btn-primary { background: var(--brand-blue); border-color: var(--brand-blue); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

/* ── Timeline (demo history) ─────────────────────────────────────────────────── */
.timeline-list { padding-left: 1.5rem; }
.timeline-item  { position: relative; padding-bottom: 1rem; }
.timeline-item:not(:last-child)::before {
  content: ''; position: absolute; left: -1.1rem; top: .8rem;
  bottom: 0; width: 2px; background: #e5e7eb;
}
.timeline-dot {
  width: .75rem; height: .75rem; border-radius: 50%;
  background: var(--brand-blue); border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--brand-blue);
  position: absolute; left: -1.5rem; top: .3rem;
}
.timeline-content { font-size: .82rem; }

/* ── Comments ────────────────────────────────────────────────────────────────── */
.avatar-sm { width: 2rem; height: 2rem; font-size: .8rem; }
.comment-text { font-size: .85rem; line-height: 1.5; margin-top: .15rem; }

/* ── Form ────────────────────────────────────────────────────────────────────── */
.form-label.fw-semibold { color: #374151; }
.form-control:focus, .form-select:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 .2rem rgba(26,86,219,.2); }

/* ── Alerts ──────────────────────────────────────────────────────────────────── */
.alert { border-radius: .6rem; font-size: .875rem; }

/* ── Login page ──────────────────────────────────────────────────────────────── */
.login-card { animation: slideUp .35s ease; }
@keyframes slideUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* ── PWA install button ──────────────────────────────────────────────────────── */
#pwa-install-btn .btn { animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow:0 0 0 0 rgba(255,255,255,.4); } 50% { box-shadow:0 0 0 6px rgba(255,255,255,0); } }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 576px) {
  .stat-card  { padding: .85rem .75rem; }
  .stat-value { font-size: 1.6rem; }
  .navbar-brand { font-size: .95rem; }
  .table-responsive table { font-size: .78rem; }
}

/* ── Dark overlay for modals ─────────────────────────────────────────────────── */
.modal-header.bg-primary .btn-close { filter: invert(1); }
.modal-header.bg-success .btn-close { filter: invert(1); }
