/*--------------------------------------------------------------
  Hermes Redesign — Mockup Stylesheet
  Aesthetic: Refined Luxury Dark / Classical Law + Modern SaaS
--------------------------------------------------------------*/

/* ---- CSS Variables ---- */
:root {
  --bg-body: #050a10;
  --bg-surface: #0a1628;
  --bg-card: #0d1f35;
  --bg-card-hover: #112a45;
  --bg-input: #0a1628;

  --primary: #2a7ab5;
  --primary-dim: rgba(42,122,181,0.15);

  --gold: #c8952e;
  --gold-light: #daa84a;
  --gold-dim: rgba(200,149,46,0.10);
  --gold-glow: rgba(200,149,46,0.20);

  --text: #dfe6ed;
  --text-secondary: #7a8ea3;
  --text-dim: #4a5e73;

  --border: #162d47;
  --border-light: #1e3b5a;

  --success: #22c980;
  --warning: #f5a623;
  --danger: #e5534b;
  --info: #4dabf7;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.3);
  --shadow-md: 0 4px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.5);
  --shadow-gold: 0 0 30px rgba(200,149,46,.08);

  --radius: 10px;
  --radius-lg: 14px;
  --sidebar-w: 200px;
  --header-h: 56px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-body);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.25;
}

a { color: var(--gold-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

/* ---- Staggered Load Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim { animation: fadeUp .5s ease both; }
.anim-d1 { animation-delay: .05s; }
.anim-d2 { animation-delay: .10s; }
.anim-d3 { animation-delay: .15s; }
.anim-d4 { animation-delay: .20s; }
.anim-d5 { animation-delay: .25s; }
.anim-d6 { animation-delay: .30s; }
.anim-d7 { animation-delay: .35s; }

/* ================================================================
   HEADER
   ================================================================ */
.h-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 24px;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.h-header::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.h-logo { display: flex; align-items: center; width: var(--sidebar-w); flex-shrink: 0; }
.h-logo img { height: 36px; }
img.h-logo { width: calc(var(--sidebar-w) * 0.9); height: auto; position: relative; top: 50px; left: -15px; }
.h-logo-text {
  display: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 600;
  color: var(--gold); letter-spacing: 1px;
}
@media (max-width: 1199px) {
  img.h-logo { display: none; }
  .h-logo-text { display: inline; }
  .h-logo { width: auto; }
}

.h-header-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 20px;
}

.h-user-btn {
  display: flex; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--border); border-radius: 24px;
  padding: 6px 16px 6px 8px; color: var(--text); cursor: pointer;
  transition: border-color var(--transition);
  font-family: 'DM Sans', sans-serif; font-size: 14px;
}
.h-user-btn:hover { border-color: var(--gold); }
.h-user-btn i { font-size: 22px; color: var(--gold-light); }


/* ================================================================
   SIDEBAR
   ================================================================ */
.h-sidebar {
  position: fixed; top: var(--header-h); left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  overflow-y: auto;
  z-index: 999;
  transition: width var(--transition), padding var(--transition);
  display: flex; flex-direction: column;
}

@media (max-width: 1199px) {
  .h-sidebar { width: 60px; padding: 16px 6px; }
  .h-sidebar .h-nav-section { display: none; }
  .h-sidebar .h-nav-link span { display: none; }
  .h-sidebar .h-nav-link { justify-content: center; padding: 10px; gap: 0; }
  .h-sidebar .h-nav-link i { font-size: 18px; }
}

.h-sidebar .nav-section {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-dim); font-weight: 700; padding: 20px 12px 8px;
  font-family: 'DM Sans', sans-serif;
}
.h-sidebar .nav-section:first-child { padding-top: 0; }

.h-nav-section:first-child { margin-top: 55px; }

.h-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 8px;
  color: var(--text-secondary); font-size: 14px; font-weight: 500;
  transition: all var(--transition); margin-bottom: 2px;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  position: relative;
}
.h-nav-link i { font-size: 18px; width: 22px; text-align: center; }
.h-nav-link:hover {
  background: var(--gold-dim); color: var(--text);
}
.h-nav-link:hover i { color: var(--gold-light); }
.h-nav-link.active {
  background: linear-gradient(135deg, var(--gold-dim), rgba(200,149,46,.05));
  color: var(--gold-light); font-weight: 600;
  border-left: 3px solid var(--gold);
  padding-left: 11px;
}
.h-nav-link.active i { color: var(--gold); }
#nav-agent-script, #nav-agent-test { opacity: 0.35; pointer-events: none; }

/* ================================================================
   MAIN CONTENT
   ================================================================ */
.h-main {
  margin-top: var(--header-h);
  margin-left: var(--sidebar-w);
  padding: 28px 32px;
  min-height: calc(100vh - var(--header-h));
  transition: margin var(--transition);
}

@media (max-width: 1199px) {
  .h-main { margin-left: 60px; padding: 20px 16px; }
}

/* ---- Page Title ---- */
.h-page-title {
  margin-bottom: 24px;
}
.h-page-title h1 {
  font-size: 28px; margin: 0 0 4px;
  background: linear-gradient(135deg, var(--text), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.h-breadcrumb {
  display: flex; gap: 6px; align-items: center;
  font-size: 13px; color: var(--text-dim);
  font-family: 'DM Sans', sans-serif;
}
.h-breadcrumb a { color: var(--text-secondary); }
.h-breadcrumb a:hover { color: var(--gold-light); }
.h-breadcrumb .sep { color: var(--text-dim); }

/* ================================================================
   CARDS
   ================================================================ */
.h-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.h-card:hover {
  border-color: var(--border-light);
}
.h-card-header {
  padding: 20px 24px 0;
  display: flex; justify-content: space-between; align-items: center;
}
.h-card-title {
  font-size: 18px; margin: 0;
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}
.h-card-body { padding: 16px 24px 24px; }

/* Glass variant */
.h-card-glass {
  background: rgba(13,31,53,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Gold-accent card */
.h-card-accent {
  border-color: rgba(200,149,46,0.2);
  box-shadow: var(--shadow-gold);
}

/* Medallion watermark on cards */
.h-card-medallion::after {
  content: '';
  position: absolute; bottom: -30px; right: -30px;
  width: 200px; height: 200px;
  background-image: url('../img/hermes-medallion.png');
  background-size: contain; background-repeat: no-repeat;
  opacity: 0.03; pointer-events: none;
}

/* ================================================================
   STAT CARDS
   ================================================================ */
.h-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  position: relative; overflow: hidden;
  transition: all var(--transition);
}
.h-stat-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.h-stat-card .stat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}

.h-stat-card .stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 700; line-height: 1;
  margin-bottom: 4px;
}
.h-stat-card .stat-value.loading {
  animation: stat-pulse 1.5s ease-in-out infinite;
  color: var(--text-dim);
}
@keyframes stat-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.h-stat-card .stat-label {
  font-size: 13px; color: var(--text-secondary);
  font-weight: 500;
}

.h-stat-card .stat-trend {
  font-size: 12px; font-weight: 600; margin-top: 8px;
}
.h-stat-card .stat-trend.up { color: var(--success); }
.h-stat-card .stat-trend.down { color: var(--danger); }

/* Stat card color variants */
.h-stat-gold .stat-icon { background: var(--gold-dim); color: var(--gold); }
.h-stat-blue .stat-icon { background: var(--primary-dim); color: var(--primary); }
.h-stat-green .stat-icon { background: rgba(34,201,128,.12); color: var(--success); }
.h-stat-orange .stat-icon { background: rgba(245,166,35,.12); color: var(--warning); }

/* Subtle gradient glow behind stat cards */
.h-stat-gold::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, var(--gold-dim) 0%, transparent 70%);
  pointer-events: none;
}
.h-stat-blue::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, var(--primary-dim) 0%, transparent 70%);
  pointer-events: none;
}
.h-stat-green::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(34,201,128,.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ================================================================
   TABLES
   ================================================================ */
.h-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 14px; --bs-table-bg: transparent; --bs-table-color: var(--text);
}
.h-table thead th {
  padding: 12px 16px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-dim); font-weight: 700;
  border-bottom: 1px solid var(--border);
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}
.h-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(22,45,71,.4);
  vertical-align: middle;
}
.h-table tbody tr {
  transition: background var(--transition);
}
.h-table tbody tr:hover {
  background: var(--gold-dim);
}
.h-table tbody tr:last-child td { border-bottom: none; }

/* Clickable rows */
.h-table tbody tr.clickable { cursor: pointer; }

/* ================================================================
   BADGES
   ================================================================ */
.h-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
}
.h-badge-success { background: rgba(34,201,128,.15); color: var(--success); }
.h-badge-primary { background: var(--primary-dim); color: var(--info); }
.h-badge-warning { background: rgba(245,166,35,.15); color: var(--warning); }
.h-badge-danger  { background: rgba(229,83,75,.15); color: var(--danger); }
.h-badge-muted   { background: rgba(122,142,163,.12); color: var(--text-secondary); }
.h-badge-gold    { background: var(--gold-dim); color: var(--gold-light); }

/* ================================================================
   FORMS
   ================================================================ */
.h-input, .h-select {
  width: 100%; padding: 10px 14px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text);
  font-size: 14px; font-family: 'DM Sans', sans-serif;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.h-input::placeholder { color: var(--text-dim); }
.h-input:focus, .h-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.h-select { appearance: none; cursor: pointer; }

/* Bootstrap form overrides */
.form-control, .form-select {
  background-color: var(--bg-input);
  border-color: var(--border);
  color: var(--text);
}
.form-control:focus, .form-select:focus {
  background-color: var(--bg-input);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
  color: var(--text);
}
.form-control::placeholder { color: var(--text-dim); }
.form-label { color: var(--text-secondary); }

.h-label {
  display: block; margin-bottom: 6px;
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: .5px;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.h-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 600; border: none;
  cursor: pointer; transition: all var(--transition);
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
}
.h-btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0a0a0a;
}
.h-btn-gold:hover {
  box-shadow: 0 4px 16px var(--gold-glow);
  transform: translateY(-1px);
}
.h-btn-outline {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-secondary);
}
.h-btn-outline:hover {
  border-color: var(--gold); color: var(--gold-light);
}
.h-btn-sm { padding: 6px 14px; font-size: 13px; }
.h-btn-primary {
  background: var(--primary); color: white;
}
.h-btn-primary:hover { background: #3388c4; }

/* ================================================================
   MESSAGE ROWS (Dashboard recent messages)
   ================================================================ */
.h-msg-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 10px;
  background: rgba(10,22,40,0.5);
  border: 1px solid rgba(22,45,71,.3);
  margin-bottom: 8px;
  transition: all var(--transition);
  text-decoration: none; color: inherit;
}
.h-msg-row:hover {
  background: var(--gold-dim);
  border-color: rgba(200,149,46,.2);
  color: inherit;
}
.h-msg-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #0a0a0a;
}
.h-msg-info { flex: 1; min-width: 0; }
.h-msg-name { font-weight: 600; font-size: 14px; display: block; }
.h-msg-phone { font-size: 12px; color: var(--text-secondary); }
.h-msg-summary {
  font-size: 13px; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}
.h-msg-meta {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 4px; flex-shrink: 0;
}
.h-msg-time { font-size: 12px; color: var(--text-dim); }
.h-msg-duration {
  font-size: 11px; color: var(--gold-light);
  background: var(--gold-dim); padding: 2px 8px; border-radius: 10px;
}
.h-msg-chevron { color: var(--text-dim); font-size: 16px; }

/* ================================================================
   TRANSCRIPT (Message Detail)
   ================================================================ */
.h-transcript { max-height: 500px; overflow-y: auto; }

.h-transcript-entry {
  margin-bottom: 10px; padding: 12px 16px; border-radius: 12px;
}
.h-transcript-agent {
  background: linear-gradient(135deg, rgba(200,149,46,.08), rgba(200,149,46,.03));
  border: 1px solid rgba(200,149,46,.15);
  border-left: 3px solid var(--gold);
  margin-right: 12%;
}
.h-transcript-user {
  background: rgba(42,122,181,.06);
  border: 1px solid rgba(42,122,181,.12);
  border-right: 3px solid var(--primary);
  margin-left: 12%;
}
.h-transcript-speaker {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: 4px;
  display: flex; align-items: center; gap: 6px;
}
.h-transcript-agent .h-transcript-speaker { color: var(--gold-light); }
.h-transcript-user .h-transcript-speaker { color: var(--text-secondary); }
.h-transcript-text { font-size: 14px; line-height: 1.6; }
.h-transcript-speaker .hermes-icon {
  width: 16px; height: 16px; border-radius: 50%; object-fit: contain;
}

/* ================================================================
   AUDIO PLAYER (Message Detail)
   ================================================================ */
.h-audio-player {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px;
}
.h-audio-waveform {
  display: flex; align-items: center; gap: 2px; height: 36px; margin-bottom: 14px;
}
.h-audio-waveform .bar {
  flex: 1; background: var(--border-light); border-radius: 2px; min-width: 3px;
  transition: background .2s;
}
.h-audio-waveform .bar.played { background: var(--gold); }
.h-audio-controls { display: flex; align-items: center; gap: 14px; }
.h-play-btn {
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0a0a0a; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.h-play-btn:hover {
  box-shadow: 0 0 20px var(--gold-glow); transform: scale(1.05);
}
.h-audio-time { font-size: 13px; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }
.h-audio-bar {
  flex: 1; height: 4px; background: var(--border); border-radius: 2px;
  position: relative;
}
.h-audio-bar-fill {
  height: 100%; width: 35%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px; position: relative;
}
.h-audio-bar-fill::after {
  content: ''; position: absolute; right: -5px; top: -4px;
  width: 12px; height: 12px; background: var(--gold-light);
  border-radius: 50%; border: 2px solid var(--bg-surface);
}

/* ================================================================
   CALLER AVATAR (Message Detail)
   ================================================================ */
.h-caller-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: #0a0a0a;
}

/* ================================================================
   CHAT INTERFACE (Agent Test)
   ================================================================ */
.h-chat-card {
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; height: 560px;
  background: var(--bg-card); border: 1px solid var(--border);
}
.h-chat-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.h-chat-header .status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success);
}
.h-chat-messages {
  flex: 1; overflow-y: auto; padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.h-chat-msg {
  display: flex; gap: 10px; max-width: 78%;
  animation: fadeUp .3s ease both;
}
.h-chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.h-chat-msg.agent { align-self: flex-start; }
.h-chat-msg-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.h-chat-msg.user .h-chat-msg-avatar { background: var(--gold); color: #0a0a0a; }
.h-chat-msg.agent .h-chat-msg-avatar { background: var(--primary); color: white; }
.h-chat-msg-bubble {
  padding: 10px 16px; border-radius: 14px;
  font-size: 14px; line-height: 1.5;
}
.h-chat-msg.user .h-chat-msg-bubble {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0a0a0a;
  border-bottom-right-radius: 4px;
}
.h-chat-msg.agent .h-chat-msg-bubble {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.h-chat-input-bar {
  padding: 16px 20px; border-top: 1px solid var(--border);
  display: flex; gap: 10px; align-items: center;
}
.h-chat-input {
  flex: 1; padding: 10px 18px; border-radius: 24px;
  background: var(--bg-surface); border: 1px solid var(--border);
  color: var(--text); font-size: 14px; outline: none;
  font-family: 'DM Sans', sans-serif;
  transition: border-color var(--transition);
}
.h-chat-input:focus { border-color: var(--gold); }
.h-chat-send-btn {
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0a0a0a; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ================================================================
   WORKFLOW NODES (Agent Script)
   ================================================================ */
.h-workflow-node {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 20px; margin-bottom: 10px;
  transition: border-color var(--transition);
}
.h-workflow-node:hover { border-color: var(--gold-dim); }
.h-workflow-node h6 {
  color: var(--gold-light); margin: 0 0 6px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.h-workflow-node p {
  margin: 0; font-size: 13px; color: var(--text-secondary); line-height: 1.5;
}

/* Script display */
.h-script-content {
  white-space: pre-wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; line-height: 1.7;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px;
  max-height: 460px; overflow-y: auto;
  color: var(--text-secondary);
}

/* ================================================================
   PAGINATION
   ================================================================ */
.h-pagination {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.h-pagination li a, .h-pagination li span {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  border: 1px solid var(--border); color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
}
.h-pagination li a:hover {
  border-color: var(--gold); color: var(--gold-light);
}
.h-pagination li.active span {
  background: var(--gold); border-color: var(--gold);
  color: #0a0a0a;
}
.h-pagination li.disabled a {
  opacity: .3; pointer-events: none;
}

/* Bootstrap pagination overrides */
.page-link {
  background-color: var(--bg-input);
  border-color: var(--border);
  color: var(--text-secondary);
}
.page-link:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--gold);
  color: var(--gold-light);
}
.page-item.active .page-link {
  background-color: var(--gold);
  border-color: var(--gold);
  color: #0a0a0a;
}
.page-item.disabled .page-link {
  background-color: var(--bg-input);
  border-color: var(--border);
  color: var(--text-dim);
  opacity: .4;
}

/* ================================================================
   APPOINTMENT ITEM (Reminders)
   ================================================================ */
.h-appointment-item {
  padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--border); margin-bottom: 8px;
  cursor: pointer; transition: all var(--transition);
}
.h-appointment-item:hover { border-color: var(--gold-dim); background: var(--gold-dim); }
.h-appointment-item.selected {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold-dim), transparent);
}

/* ================================================================
   COMPOSER (Reminders)
   ================================================================ */
.h-composer-empty {
  text-align: center; padding: 40px 20px; color: var(--text-dim);
}
.h-composer-empty i { font-size: 48px; margin-bottom: 12px; display: block; }

/* ================================================================
   FOOTER
   ================================================================ */
.h-footer {
  margin-left: var(--sidebar-w);
  padding: 16px 32px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-dim);
  text-align: center;
}
@media (max-width: 1199px) {
  .h-footer { margin-left: 60px; padding: 16px; }
}

/* ================================================================
   UTILITY
   ================================================================ */
.text-gold { color: var(--gold-light) !important; }
.text-muted { color: var(--text-secondary) !important; }
.text-dim { color: var(--text-dim) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.fw-600 { font-weight: 600; }
.fs-sm { font-size: 13px; }
.fs-xs { font-size: 11px; }
.gap-16 { gap: 16px; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* Detail rows */
.h-detail-row {
  display: flex; justify-content: space-between; padding: 10px 0;
  border-bottom: 1px solid rgba(22,45,71,.3);
  font-size: 14px;
}
.h-detail-row:last-child { border-bottom: none; }
.h-detail-label { color: var(--text-secondary); }
.h-detail-value { color: var(--text); font-weight: 500; }

/* Contact info card (light bg variant) */
.h-contact-info-card {
  background: linear-gradient(135deg, rgba(42,122,181,.08), rgba(200,149,46,.05));
  border: 1px solid rgba(42,122,181,.15);
  border-radius: var(--radius-lg);
  padding: 24px;
}
