:root {
    --brand: #4361ee;
    --brand-dark: #3a0ca3;
    --brand-light: #7209b7;
    --accent: #f72585;
    --surface: #ffffff;
    --muted: #6c757d;
    --bg: #f0f2f5;
    --radius: .75rem;
    --shadow: 0 4px 24px rgba(67, 97, 238, .08);
    --shadow-hover: 0 8px 32px rgba(67, 97, 238, .14);
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
}

.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-hover); }
.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,.06);
    font-weight: 600;
    padding: 1rem 1.25rem;
}

/* Stat cards */
.stat-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    transition: transform .2s;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-card .stat-icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 1.4rem;
}

/* Tables */
.table > :not(caption) > * > * { padding: .85rem 1rem; vertical-align: middle; }
.table thead { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); }
.table-hover tbody tr:hover { background-color: rgba(67, 97, 238, .04); }

/* Buttons */
.btn { border-radius: .5rem; font-weight: 500; }
.btn-primary { background: var(--brand); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

/* Forms */
.form-control, .form-select {
    border-radius: .5rem;
    border-color: #dee2e6;
    transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 .2rem rgba(67, 97, 238, .15);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
    border-radius: var(--radius);
}

/* Breadcrumb */
.breadcrumb { background: transparent; padding: 0; margin-bottom: 1rem; }

/* Status badges */
.badge { font-weight: 500; letter-spacing: .02em; }

/* Page transitions */
main { animation: fadeUp .3s ease; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.quill-editor-container .ql-tooltip {
  z-index: 1060; /* above Bootstrap modal's z-index (1055) */
}

.ql-container {
  min-height: 120px;
  font-size: .95rem;
  height: auto;
}