@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;500;600;700;900&display=swap');

:root {
  --primary: #8e44ad;
  --primary-light: #9b59b6;
  --primary-dark: #6c3483;
  --secondary: #f39c12;
  --accent: #e67e22;
  --success: #27ae60;
  --danger: #e74c3c;
  --warning: #f39c12;
  --info: #3498db;
  --text: #343a40;
  --text-light: #6c757d;
  --text-muted: #95a5a6;
  --bg: #f5f7fb;
  --bg-secondary: #e9ecef;
  --card-bg: #ffffff;
  --border: #dee2e6;
  --border-light: #e9ecef;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 12px 30px rgba(0, 0, 0, 0.12);
  --gradient: linear-gradient(135deg, #8e44ad 0%, #6c3483 100%);
  --gradient-light: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Merriweather', 'Hind Siliguri', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient);
  border-radius: 10px;
  border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #6c3483 0%, #8e44ad 100%);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  padding: 12px 18px;
  border-radius: 8px;
  transition: all .3s ease;
  font-size: 1rem;
  box-shadow: none;
  text-align: center;
}

.button.primary {
  background: var(--primary);
  color: #fff;
}

.button.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.button.ghost {
  background: var(--border-light);
  color: var(--text);
  border: 1px solid var(--border);
}

.button.ghost:hover {
  background: var(--border);
  transform: translateY(-1px);
}

.button.sm {
  padding: 8px 12px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.button.xs {
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 6px;
}

.button.secondary {
  background: var(--secondary);
  color: #fff;
}

.button.secondary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.button.success {
  background: var(--success);
  color: #fff;
}

.button.success:hover {
  background: #229954;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.button.danger {
  background: var(--danger);
  color: #fff;
}

.button.danger:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.button.outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.button.outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.button.subtle {
  background: rgba(142, 68, 173, 0.1);
  color: var(--primary);
  border: none;
}

.button.subtle:hover {
  background: rgba(142, 68, 173, 0.2);
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.button i {
  font-size: 0.95em;
}

/* Cards & table */
.card {
  background: #fff;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: all .3s ease;
}

.card.pad {
  padding: 25px;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card.bordered {
  border: 1px solid var(--border-light);
  box-shadow: none;
}

.card.flat {
  box-shadow: none;
  border: 1px solid var(--border-light);
}

.card.elevated {
  box-shadow: var(--shadow-xl);
}

.card-header {
  padding: 20px 25px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg);
  border-radius: var(--radius) var(--radius) 0 0;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-body {
  padding: 25px;
}

.card-footer {
  padding: 15px 25px;
  border-top: 1px solid var(--border-light);
  background: var(--bg);
  border-radius: 0 0 var(--radius) var(--radius);
}

.stat-card {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(142, 68, 173, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  position: relative;
}

.stat-icon.lg {
  width: 64px;
  height: 64px;
  font-size: 28px;
}

.stat-icon.sm {
  width: 48px;
  height: 48px;
  font-size: 20px;
}

.stat-icon.purple {
  background: var(--gradient);
}

.stat-icon.orange {
  background: var(--gradient-light);
}

.stat-icon.green {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.stat-icon.blue {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.stat-icon.red {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid.cols-1 {
  grid-template-columns: 1fr;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.gap-sm {
  gap: 12px;
}

.grid.gap-md {
  gap: 20px;
}

.grid.gap-lg {
  gap: 32px;
}

@media (max-width: 1100px) {

  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: 1fr;
  }
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.table th {
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.table tbody tr {
  transition: all .2s ease;
}

.table tbody tr:hover {
  background: rgba(142, 68, 173, 0.02);
  transform: scale(1.001);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.badge {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  display: inline-block;
  vertical-align: middle;
}

.badge.ghost {
  background: var(--bg-secondary);
  color: var(--text-light);
  border: 1px solid var(--border);
}

.badge.success {
  background: var(--success);
}

.badge.info {
  background: var(--info);
}

.badge.sm {
  padding: 2px 6px;
  font-size: 0.7rem;
}

.badge.warn {
  background: var(--warning);
}

.badge.error {
  background: var(--danger);
}

/* Layout */
.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  gap: 0;
}

.sidebar {
  background: #fff;
  border-right: 1px solid var(--border-light);
  padding: 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
  color: var(--primary);
}

.brand .logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  font-size: 20px;
}

.nav {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  border: none;
  font-weight: 500;
  transition: all .3s ease;
  font-size: 1rem;
  margin-bottom: 8px;
}

.nav a i {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.nav a.active {
  background: var(--primary);
  color: #fff;
}

.nav a:hover:not(.active) {
  background: var(--bg-secondary);
  color: var(--text);
}

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg);
}

.topbar {
  background: var(--gradient);
  color: #fff;
  padding: 15px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar #menu-btn {
  display: none;
}

.user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
}

.user i {
  font-size: 16px;
}

.content {
  padding: 32px;
  max-width: 1600px;
  width: 100%;
}

/* Login */
.center {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.login {
  width: 100%;
  max-width: 420px;
}

.login .head {
  text-align: center;
  padding: 16px 0 8px;
}

.login .head .logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  color: #fff;
  margin: 0 auto 10px;
  box-shadow: var(--shadow);
}

.input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: all .3s;
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
}

.input:hover {
  border-color: var(--text-muted);
}

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.2);
  background: #fff;
}

.input:disabled {
  background: var(--bg-secondary);
  cursor: not-allowed;
  opacity: 0.6;
}

.input.error {
  border-color: var(--danger);
}

.input.error:focus {
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

.input.success {
  border-color: var(--success);
}

.input.success:focus {
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

textarea.input {
  resize: vertical;
  min-height: 100px;
  font-family: 'Merriweather', 'Hind Siliguri', serif;
}

select.input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-row {
  display: grid;
  gap: 10px;
}

/* Input group */
.input-group {
  display: flex;
  gap: 0;
}

.input-group .input {
  border-radius: 0;
  border-right: none;
}

.input-group .input:first-child {
  border-radius: 8px 0 0 8px;
}

.input-group .button {
  border-radius: 0 8px 8px 0;
}

.input-group .button:not(:last-child) {
  border-radius: 0;
}

/* Utilities */
.mt-4 {
  margin-top: 8px;
}

.mt-8 {
  margin-top: 12px;
}

.mt-12 {
  margin-top: 18px;
}

.mt-16 {
  margin-top: 20px;
}

.mt-24 {
  margin-top: 24px;
}

.mb-4 {
  margin-bottom: 8px;
}

.mb-8 {
  margin-bottom: 12px;
}

.py-4 {
  padding-top: 20px;
  padding-bottom: 20px;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: 4px;
}

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.gap-20 {
  gap: 20px;
}

/* Padding utilities */
.p-8 {
  padding: 8px;
}

.p-12 {
  padding: 12px;
}

.p-16 {
  padding: 16px;
}

.p-20 {
  padding: 20px;
}

.px-12 {
  padding-left: 12px;
  padding-right: 12px;
}

.px-16 {
  padding-left: 16px;
  padding-right: 16px;
}

.px-20 {
  padding-left: 20px;
  padding-right: 20px;
}

/* Text utilities */
.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: var(--text-light);
}

.text-success {
  color: var(--success);
}

.text-danger {
  color: var(--danger);
}

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.text-info {
  color: var(--info);
}

.text-warning {
  color: var(--warning);
}

.text-sm {
  font-size: 0.85rem;
}

.text-lg {
  font-size: 1.15rem;
}

.text-xl {
  font-size: 1.4rem;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* Display utilities */
.d-none {
  display: none;
}

.d-block {
  display: block;
}

.d-inline {
  display: inline;
}

.d-inline-block {
  display: inline-block;
}

.d-flex {
  display: flex;
}

.d-grid {
  display: grid;
}

.hidden {
  display: none !important;
}

/* Flex utilities */
.flex-row {
  flex-direction: row;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-1 {
  flex: 1;
}

.justify-start {
  justify-content: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.align-start {
  align-items: flex-start;
}

.align-center {
  align-items: center;
}

.align-end {
  align-items: flex-end;
}

/* Width utilities */
.w-full {
  width: 100%;
}

.w-auto {
  width: auto;
}

.w-50 {
  width: 50%;
}

/* Border utilities */
.rounded {
  border-radius: 8px;
}

.rounded-lg {
  border-radius: 12px;
}

.rounded-full {
  border-radius: 9999px;
}

/* Shadow utilities */
.shadow-sm {
  box-shadow: var(--shadow);
}

.shadow {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.shadow-none {
  box-shadow: none;
}

/* Search container styling */
.search-container {
  position: relative;
  margin-bottom: 20px;
}

.search-container input {
  padding-left: 40px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal:not(:empty) {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
  max-width: 650px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}

.modal-header h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.modal-header h3 i {
  color: var(--primary);
  font-size: 1.4rem;
}

.modal-close {
  background: var(--bg-secondary);
  border: none;
  font-size: 18px;
  color: var(--text-light);
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  transition: all .2s;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
  transform: rotate(90deg);
}

.modal-content form {
  padding: 25px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  display: block;
  margin-bottom: 7px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 20px;
  border-top: none;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  backdrop-filter: blur(2px);
  display: none;
  z-index: 15;
}

.overlay.show {
  display: block;
}

/* Animations */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.fa-spin {
  animation: spin 1s linear infinite;
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    z-index: 20;
    inset: 0 auto 0 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform .25s ease;
    height: 100vh;
    box-shadow: 4px 0 12px rgba(0, 0, 0, .1);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .topbar #menu-btn {
    display: inline-flex !important;
  }

  .content {
    padding: 16px;
  }

  .card.pad {
    padding: 20px;
  }

  .grid.cols-3 {
    gap: 16px;
  }
}

/* Compact desktop layout */
@media (min-width: 1200px) {
  .content {
    max-width: 1400px;
  }

  .card.pad {
    padding: 22px;
  }

  .form-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .form-group {
    gap: 6px;
  }

  .form-group label {
    font-size: 12px;
  }

  .input {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
  }

  .button {
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 13px;
  }

  .table th,
  .table td {
    padding: 12px 14px;
  }
}

/* Sticky sub-header utility (for editor pages) */
.sticky-subheader {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

/* Section title styling */
h2,
h3 {
  color: var(--primary);
  margin: 0;
}

/* Quill Editor Custom Styles */
.ql-toolbar {
  border: 1px solid var(--border) !important;
  border-radius: 8px 8px 0 0 !important;
  background: var(--bg) !important;
}

.ql-container {
  border: 1px solid var(--border) !important;
  border-top: none !important;
  border-radius: 0 0 8px 8px !important;
  font-size: 14px;
}

.ql-editor {
  min-height: 200px;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Message area */
.message-area {
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}

.message-area.success {
  background: rgba(39, 174, 96, 0.1);
  color: var(--success);
  border: 1px solid var(--success);
}

.message-area.error {
  background: rgba(231, 76, 60, 0.1);
  color: var(--danger);
  border: 1px solid var(--danger);
}

.message-area.info {
  background: rgba(52, 152, 219, 0.1);
  color: var(--info);
  border: 1px solid var(--info);
}

/* Alert boxes */
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.alert i {
  font-size: 1.2rem;
  margin-top: 2px;
}

.alert.primary {
  background: rgba(142, 68, 173, 0.1);
  color: var(--primary);
  border: 1px solid rgba(142, 68, 173, 0.3);
}

.alert.success {
  background: rgba(39, 174, 96, 0.1);
  color: var(--success);
  border: 1px solid rgba(39, 174, 96, 0.3);
}

.alert.danger {
  background: rgba(231, 76, 60, 0.1);
  color: var(--danger);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.alert.warning {
  background: rgba(243, 156, 18, 0.1);
  color: var(--warning);
  border: 1px solid rgba(243, 156, 18, 0.3);
}

.alert.info {
  background: rgba(52, 152, 219, 0.1);
  color: var(--info);
  border: 1px solid rgba(52, 152, 219, 0.3);
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 20px;
  gap: 4px;
}

.tab {
  padding: 12px 20px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.3s ease;
}

.tab:hover {
  color: var(--text);
  background: rgba(142, 68, 173, 0.05);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Progress bars */
.progress {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress.sm {
  height: 4px;
}

.progress.lg {
  height: 12px;
}

.progress-bar {
  height: 100%;
  background: var(--gradient);
  border-radius: 10px;
  transition: width 0.4s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.progress-bar.success {
  background: var(--success);
}

.progress-bar.danger {
  background: var(--danger);
}

.progress-bar.warning {
  background: var(--warning);
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border-light);
  margin: 20px 0;
  border: none;
}

.divider.vertical {
  width: 1px;
  height: auto;
  margin: 0 20px;
}

.divider.thick {
  height: 2px;
}

/* Avatar */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  background: var(--gradient);
  color: #fff;
  font-size: 1rem;
}

.avatar.sm {
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
}

.avatar.lg {
  width: 56px;
  height: 56px;
  font-size: 1.3rem;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Tooltip */
.tooltip-wrapper {
  position: relative;
  display: inline-block;
}

.tooltip-wrapper:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-8px);
}

.tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--text);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
  pointer-events: none;
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 4rem;
  color: var(--border);
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Dropdown menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  margin-top: 8px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 0.9rem;
}

.dropdown-item:hover {
  background: var(--bg);
  color: var(--primary);
}

.dropdown-item i {
  width: 18px;
  text-align: center;
  font-size: 0.95rem;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 6px 0;
}

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 0%, var(--border-light) 50%, var(--bg-secondary) 100%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton.text {
  height: 14px;
  margin-bottom: 8px;
}

.skeleton.title {
  height: 24px;
  width: 60%;
  margin-bottom: 12px;
}

.skeleton.circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

/* Premium hover effects & micro-interactions */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hover-grow {
  transition: transform 0.3s ease;
}

.hover-grow:hover {
  transform: scale(1.05);
}

.hover-brighten {
  transition: filter 0.3s ease;
}

.hover-brighten:hover {
  filter: brightness(1.1);
}

/* Smooth transitions */
.transition-all {
  transition: all 0.3s ease;
}

.transition-fast {
  transition: all 0.15s ease;
}

.transition-slow {
  transition: all 0.5s ease;
}

/* Cursor utilities */
.cursor-pointer {
  cursor: pointer;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

.cursor-grab {
  cursor: grab;
}

.cursor-grabbing {
  cursor: grabbing;
}

/* Overflow utilities */
.overflow-hidden {
  overflow: hidden;
}

.overflow-auto {
  overflow: auto;
}

.overflow-x-auto {
  overflow-x: auto;
}

.overflow-y-auto {
  overflow-y: auto;
}

/* Position utilities */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.sticky {
  position: sticky;
}

/* Z-index utilities */
.z-0 {
  z-index: 0;
}

.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

.z-30 {
  z-index: 30;
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

/* Background utilities */
.bg-white {
  background: #fff;
}

.bg-primary {
  background: var(--primary);
}

.bg-secondary {
  background: var(--secondary);
}

.bg-success {
  background: var(--success);
}

.bg-danger {
  background: var(--danger);
}

.bg-light {
  background: var(--bg);
}

.bg-gradient {
  background: var(--gradient);
}

/* Status dot indicator */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  position: relative;
}

.status-dot.success {
  background: var(--success);
  box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.2);
}

.status-dot.danger {
  background: var(--danger);
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.status-dot.warning {
  background: var(--warning);
  box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.2);
}

.status-dot.info {
  background: var(--info);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.status-dot.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* List styling */
.list-none {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s ease;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:hover {
  background: var(--bg);
  padding-left: 8px;
  padding-right: 8px;
  margin-left: -8px;
  margin-right: -8px;
  border-radius: 6px;
  border-bottom-color: transparent;
}

/* Code block styling */
code {
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--primary);
}

pre {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  border: 1px solid var(--border-light);
}

pre code {
  background: none;
  padding: 0;
  color: var(--text);
}