@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ==========================================
   DESIGN SYSTEM - MODERN SAAS (TEAL/GREEN & WHITE)
   ========================================== */
:root {
  /* Modern Teal Green & Pure White Palette */
  --primary: #51040e;
  --primary-light: #7a1c2b;
  --primary-dark: #320208;
  --primary-rgb: 81, 4, 14;

  --secondary: #d4af37;
  --secondary-light: #f8efd0;
  --secondary-dark: #b38b22;

  --bg-main: #F8F5EF;

  /* Slate 50 background (extremely clean) */
  --bg-card: #ffffff;
  /* Pure White Surfaces */
  --bg-input: #ffffff;
  --border-color: #f1f5f9;
  /* Thin slate dividers */
  --border-light: #f8fafc;

  /* Text Colors (Slate Charcoal & Slate Grey) */
  --text-main: #1e293b;
  /* Slate 800 */
  --text-muted: #475569;
  /* Slate 600 */
  --text-light: #94a3b8;
  /* Slate 400 */
  --text-white: #ffffff;

  /* Status Colors */
  --success: #0d9488;
  --success-bg: #f0fdfa;
  --warning: #0f766e;
  --warning-bg: #f2fbf9;
  --danger: #ef4444;
  /* Security alert red */
  --danger-bg: #fef2f2;
  --info: #0ea5e9;
  --info-bg: #f0f9ff;

  /* Typography (Poppins for Everything) */
  --font-main: 'Poppins', system-ui, -apple-system, sans-serif;

  /* Soft Premium SaaS Elevations - Large Smooth Shadows */
  --shadow-sm: 0 4px 20px -2px rgba(15, 23, 42, 0.03), 0 2px 8px -1px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 10px 30px -4px rgba(15, 23, 42, 0.05), 0 6px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 40px -6px rgba(15, 23, 42, 0.06), 0 10px 20px -4px rgba(15, 23, 42, 0.04);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-round: 50%;

  --transition-speed: 0.2s;
  --transition-cubic: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   GLOBAL RESET & UTILITIES
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-main);
  color: var(--text-main);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.35rem;
}

h4 {
  font-size: 1.15rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-speed) var(--transition-cubic);
}

button,
input,
select,
textarea {
  font-family: var(--font-main);
  font-size: 13px;
  outline: none;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Typography Utilities */
.text-serif {
  font-family: var(--font-main);
}

.text-sans {
  font-family: var(--font-main);
}

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.text-muted {
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

/* Display Utilities */
.d-flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.grid {
  display: grid;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.gap-3 {
  gap: 1.5rem;
}

.gap-4 {
  gap: 2rem;
}

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

/* Margin & Padding Utilities */
.m-0 {
  margin: 0;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mr-1 {
  margin-right: 0.5rem;
}

.mr-2 {
  margin-right: 1rem;
}

.p-1 {
  padding: 0.5rem;
}

.p-2 {
  padding: 1rem;
}

.p-3 {
  padding: 1.5rem;
}

.p-4 {
  padding: 2rem;
}

/* Responsive Grid Layouts */
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   PRELOADER SCREEN
   ========================================== */
.preloader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.preloader-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preloader-logo {
  width: 130px;
  height: 130px;
  margin-bottom: 1.25rem;
  animation: pulseLogo 1.6s ease-in-out infinite;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--primary);
  background-color: #ffffff;
  padding: 4px;
  box-shadow: var(--shadow-md);
}

.preloader-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseLogo {
  0% {
    transform: scale(0.96);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.04);
    opacity: 1;
  }

  100% {
    transform: scale(0.96);
    opacity: 0.9;
  }
}

/* ==========================================
   BUTTONS (Sleek Rounded SaaS Shapes)
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-speed) var(--transition-cubic);
  font-size: 13px;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background-color: var(--bg-card);
  border-color: #cbd5e1;
  color: var(--text-muted);
}

.btn-secondary:hover {
  background-color: var(--border-light);
  color: var(--text-main);
  transform: translateY(-1px);
}

.btn-accent {
  background-color: var(--secondary-light);
  color: var(--primary-dark);
}

.btn-accent:hover {
  background-color: var(--secondary);
  color: var(--text-white);
  transform: translateY(-1px);
}

.btn-danger {
  background-color: var(--danger);
  color: var(--text-white);
}

.btn-danger:hover {
  background-color: #dc2626;
  transform: translateY(-1px);
}

.btn-link {
  background: transparent;
  color: var(--primary);
  padding: 0;
  font-size: 13px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn-link:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 12px;
  border-radius: 4px;
}

/* ==========================================
   CARDS & CONTAINERS (Premium Minimalist SaaS)
   ========================================== */
.card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) var(--transition-cubic);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #f1f5f9;
  background-color: #fafbfc;
}

/* ==========================================
   FORMS & INPUTS
   ========================================== */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background-color: var(--bg-input);
  color: var(--text-main);
  font-weight: 400;
  transition: all var(--transition-speed) var(--transition-cubic);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.form-control::placeholder {
  color: #94a3b8;
}

select.form-control {
  width: 100%;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--text-muted);
  user-select: none;
  font-weight: 400;
}

.checkbox-label input {
  margin-right: 0.5rem;
  accent-color: var(--primary);
  width: 1rem;
  height: 1rem;
}

/* ==========================================
   DATATABLES SAAS THEME OVERRIDES
   ========================================== */
.dataTables_wrapper {
  padding: 1rem 0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 1.5rem !important;
  font-size: 13.5px !important;
  color: var(--text-muted) !important;
  display: inline-flex !important;
  align-items: center !important;
}

.dataTables_wrapper .dataTables_length {
  float: left !important;
  gap: 6px !important;
}

.dataTables_wrapper .dataTables_length select {
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 4px 24px 4px 10px !important;
  background-color: var(--bg-card) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--text-main) !important;
  outline: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.5rem center !important;
  background-size: 0.85rem !important;
  cursor: pointer !important;
  height: 32px !important;
  width: auto !important;
}

.dataTables_wrapper .dataTables_filter {
  float: right !important;
  gap: 6px !important;
}

.dataTables_wrapper .dataTables_filter label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.dataTables_wrapper .dataTables_filter input {
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  background-color: var(--bg-card) !important;
  outline: none !important;
  font-size: 13px !important;
  color: var(--text-main) !important;
  width: 200px !important;
  height: 32px !important;
  transition: all 0.2s !important;
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.08) !important;
}

.dataTables_wrapper::after {
  content: "" !important;
  display: block !important;
  clear: both !important;
}

.dataTables_filter input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.08);
}

table.dataTable {
  width: 100% !important;
  border-collapse: collapse !important;
  border: none !important;
  margin: 0.5rem 0 !important;
}

table.dataTable thead th {
  border-bottom: 1.5px solid #e2e8f0 !important;
  background-color: #f8fafc !important;
  color: var(--text-muted) !important;
  font-family: var(--font-main) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 14px 18px !important;
}

table.dataTable tbody td {
  padding: 14px 18px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: var(--text-main) !important;
  font-size: 13.5px !important;
  background-color: transparent !important;
  font-weight: 400;
}

table.dataTable.display tbody tr.odd,
table.dataTable.display tbody tr.even {
  background-color: transparent !important;
}

/* Zebra Striping */
table.dataTable.display tbody tr:nth-child(even) td {
  background-color: #fafbfc !important;
}

/* Elegant Row Hover */
table.dataTable.display tbody tr:hover td {
  background-color: #f1f5f9 !important;
}

/* Pagination Info / Controls */
.dataTables_info {
  float: left;
  font-size: 12.5px;
  color: var(--text-light);
  padding: 1.25rem 0;
  font-weight: 500;
}

.dataTables_paginate {
  float: right;
  display: flex;
  gap: 4px;
  padding: 1.25rem 0;
}

html body .dataTables_wrapper .dataTables_paginate .paginate_button {
  border: 1px solid var(--border-color) !important;
  background: var(--bg-card) !important;
  color: #C5A880 !important;
  /* Golden numbers */
  border-radius: var(--radius-sm) !important;
  padding: 0.4rem 0.85rem !important;
  font-size: 12px !important;
  font-weight: 200 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

html body .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #3B1319 !important;
  /* Coco Red */
  background-color: #3B1319 !important;
  border-color: #C5A880 !important;
  color: #C5A880 !important;
  /* Golden text */
}

html body .dataTables_wrapper .dataTables_paginate .paginate_button.current,
html body .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: #3B1319 !important;
  /* Coco Red background */
  background-color: #3B1319 !important;
  color: #C5A880 !important;
  /* Golden text */
  border-color: #C5A880 !important;
  font-weight: 200 !important;
}

html body .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
html body .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
  color: var(--text-light) !important;
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  background: var(--border-light) !important;
  border-color: var(--border-color) !important;
}

.dataTables_length label,
.dataTables_filter label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-weight: 500;
}



table.dataTable.no-footer {
  border-bottom: 1.5px solid #e2e8f0 !important;
}

/* Sorting Icons */
table.dataTable thead .sorting::after,
table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting_desc::after {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
}

/* ==========================================
   BADGES & STATUSES
   ========================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-success {
  background-color: var(--success-bg);
  color: var(--success);
}

.badge-warning {
  background-color: var(--warning-bg);
  color: var(--warning);
}

.badge-danger {
  background-color: var(--danger-bg);
  color: var(--danger);
}

.badge-info {
  background-color: var(--info-bg);
  color: var(--info);
}

.badge-primary {
  background-color: var(--border-light);
  color: var(--primary);
}

/* ==========================================
   MODALS (SaaS Design)
   ========================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-speed) var(--transition-cubic);
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #e2e8f0;
  transform: translateY(15px);
  transition: transform var(--transition-speed) var(--transition-cubic);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-backdrop.show .modal {
  transform: translateY(0);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
}

.modal-body {
  padding: 1.5rem;
  max-height: 500px;
  overflow-y: auto;
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #f1f5f9;
  background-color: #fafbfc;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text-main);
}

/* ==========================================
   AVATARS & STYLED BADGES
   ========================================== */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  background-color: #f1f5f9;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  object-fit: cover;
  font-size: 13.5px;
}

.avatar-lg {
  width: 72px;
  height: 72px;
  font-size: 1.5rem;
}

/* Progress Ring Visuals */
.progress-ring-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.progress-ring-text {
  position: absolute;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Sidebar Custom Styling Override (Teal/White SaaS Only) */
.sidebar {
  background-color: var(--primary) !important;
  /* Pure White Sidenav */
  border-right: 1px solid #e2e8f0 !important;
}

.sidebar-header {
  border-bottom: 1px solid #f1f5f9 !important;
}

.sidebar-brand-name {
  color: white !important;
}

.sidebar-brand-sub {
  color: white !important;
}

.sidebar-item-link {
  color: var(--text-muted) !important;
  font-weight: 500 !important;
}

.sidebar-item-link:hover {
  background-color: var(--border-light) !important;
  color: var(--primary-dark) !important;
}

.sidebar-item.active .sidebar-item-link {
  color: var(--primary-dark) !important;
  border-left: 4px solid white !important;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.sidebar-item.active .sidebar-item-link svg {
  color: var(--primary) !important;
}

.sidebar-footer {
  background-color: var(--primary) !important;
  border-top: 1px solid #f1f5f9 !important;
}

.sidebar-user-name {
  color: white !important;
}

.sidebar-user-role {
  color: white !important;
}

/* ==========================================
   DESKTOP COLLAPSE TOGGLE BUTTON
   ========================================== */
.desktop-sidebar-toggle-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  width: 28px;
  height: 28px;
}

.desktop-sidebar-toggle-btn:hover {
  background-color: var(--border-light);
  color: var(--text-main);
}

@media (max-width: 992px) {
  .desktop-sidebar-toggle-btn {
    display: none !important;
  }
}

/* ==========================================
   KEBAB MENU ACTIONS DROPDOWN SYSTEM
   ========================================== */
.actions-dropdown-container {
  position: relative;
  display: inline-block;
  text-align: left;
}

.actions-kebab-btn {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-light);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-round);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s;
}

.actions-kebab-btn:hover {
  background-color: var(--border-light);
  color: var(--text-main);
}

.actions-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: var(--bg-card);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 1050;
  min-width: 140px;
  padding: 0.25rem;
  margin-top: 0.25rem;
}

.actions-dropdown-menu.show {
  display: block;
  animation: slideUp 0.15s var(--transition-cubic);
}

.actions-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.45rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: 4px;
  text-align: left;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.actions-dropdown-item:hover {
  background-color: var(--border-light);
  color: var(--text-main);
}

.actions-dropdown-item.text-danger {
  color: var(--danger);
}

.actions-dropdown-item.text-danger:hover {
  background-color: var(--danger-bg);
}

/* ==========================================
   SIDEBAR PROMO CARD (Rocket Banner)
   ========================================== */
.sidebar-promo-card {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  border: 1px solid #99f6e4;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin: 1rem 0.75rem;
  text-align: center;
}

.sidebar-promo-icon {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
  display: inline-block;
}

.sidebar-promo-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-dark);
  margin-bottom: 0.2rem;
}

.sidebar-promo-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

/* ==========================================
   CSV BULK DRAG & DROP ZONE
   ========================================== */
.drag-drop-zone {
  border: 1px dashed #cbd5e1;
  background-color: var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.drag-drop-zone:hover,
.drag-drop-zone.dragover {
  border-color: var(--primary);
  background-color: #f0fdfa;
}

.drag-drop-icon {
  font-size: 2.2rem;
}

.bulk-preview-container {
  max-height: 200px;
  overflow-y: auto;
  margin-top: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
}

/* ==========================================
   CALENDAR WIDGET STYLING
   ========================================== */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  margin-top: 0.5rem;
}

.calendar-day-header {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  padding: 4px 0;
}

.calendar-day-cell {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-main);
  padding: 6px 0;
  border-radius: var(--radius-round);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

.calendar-day-cell:hover {
  background-color: var(--border-light);
}

.calendar-day-cell.active-class {
  background-color: var(--primary) !important;
  color: var(--text-white) !important;
  font-weight: 600;
  border-radius: var(--radius-round) !important;
}

.calendar-day-cell.today {
  background-color: #ccfbf1;
  color: var(--primary-dark);
  font-weight: 600;
  border-radius: var(--radius-round);
}

.calendar-day-cell.has-class-dot::after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 50%;
  position: absolute;
  bottom: 2px;
}

.calendar-day-cell.has-class-dot {
  position: relative;
}

/* Welcome Banner (Teal Gradient curves) */
.welcome-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  border: none !important;
  box-shadow: var(--shadow-sm) !important;
  border-radius: var(--radius-md) !important;
  position: relative;
  overflow: hidden;
}

.welcome-banner::after {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.welcome-banner::before {
  border-color: rgba(255, 255, 255, 0.04) !important;
}

/* ==========================================
   ANIMATIONS & FOOTERS
   ========================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn var(--transition-speed) var(--transition-cubic) forwards;
}

.slide-up {
  animation: slideUp var(--transition-speed) var(--transition-cubic) forwards;
}

/* Branded Footer styling (Fixed at bottom) */
.main-content {
  padding-bottom: 5.5rem !important;
  /* Prevent scroll content cutoff by fixed footer */
}

.footer {
  position: fixed;
  bottom: 0;
  left: 260px;
  right: 0;
  height: 50px;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 98;
  color: var(--text-light);
  font-size: 12px;
  font-weight: 500;
  transition: left var(--transition-speed) var(--transition-cubic);
}

.sidebar-collapsed .footer {
  left: 75px;
}

@media (max-width: 992px) {
  .footer {
    left: 0 !important;
  }
}

.footer a {
  color: var(--primary);
  font-weight: 600;
}

.footer a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Circular Letter Avatars for Table list */
.table-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--primary-dark);
  background-color: var(--secondary-light);
  border: 1px solid rgba(13, 148, 136, 0.15);
  margin-right: 0.5rem;
}

/* Stat Card Icon Badges (replicates the light color badge design of Nexus CRM stats cards) */
.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.2s;
  box-shadow: none;
  border: none;
}

.stat-card:nth-child(1) .stat-icon {
  background-color: #f0fdfa;
  color: #0d9488;
}

/* Teal */
.stat-card:nth-child(2) .stat-icon {
  background-color: #eff6ff;
  color: #0ea5e9;
}

/* Sky Blue */
.stat-card:nth-child(3) .stat-icon {
  background-color: #f5f3ff;
  color: #8b5cf6;
}

/* Purple */
.stat-card:nth-child(4) .stat-icon {
  background-color: #fdf2f8;
  color: #db2777;
}

/* Pink */

/* ==========================================================================
   RESPONSIVE SAAS LAYOUT MEDIA QUERIES (MOBILE UPGRADES & AUDIT)
   ========================================================================== */

/* Prevent horizontal page scrolling globally */
html, body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* Horizontal scrolling of tab navigations (Profile and Dashboard Tabs) */
.profile-tabs-container,
.card-tabs {
  display: flex !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
  -webkit-overflow-scrolling: touch !important;
  padding-bottom: 0.35rem !important;
  margin-bottom: 1.25rem !important;
  gap: 0.5rem !important;
}
.profile-tabs-container::-webkit-scrollbar,
.card-tabs::-webkit-scrollbar {
  height: 3px !important;
}
.profile-tab,
.card-tab {
  flex-shrink: 0 !important;
}

/* Center Avatar Initials in all Modals */
.modal-body .avatar.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Unify stat-card-grid responsive columns across all page views */
.stat-card-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.25rem !important;
  margin-bottom: 1.5rem !important;
  width: 100% !important;
}

@media (max-width: 1024px) {
  .stat-card-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .stat-card-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 576px) {
  /* Scale down base body font size for readability */
  body {
    font-size: 13.5px !important;
  }
  
  /* Heading sizes optimization for mobile viewport */
  h1, .header-title { font-size: 1.25rem !important; }
  h2 { font-size: 1.15rem !important; }
  h3 { font-size: 1.05rem !important; }
  h4 { font-size: 0.95rem !important; }

  .main-content {
    padding: 1rem !important;
  }
  
  /* Card Header elements stack vertically to fit search inputs cleanly */
  .card-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    padding: 1rem 1.25rem !important;
  }
  
  .card-header input[type="text"],
  .card-header .form-control {
    width: 100% !important;
  }
  
  .card-body {
    padding: 1.25rem 1rem !important;
  }
  
  /* Responsive modals viewport adjustments */
  .modal {
    width: calc(100% - 1.5rem) !important;
    margin: 0.75rem auto !important;
    max-width: 100% !important;
  }
  
  .modal-body {
    padding: 1.25rem 1rem !important;
    max-height: calc(85vh - 130px) !important;
    overflow-y: auto !important;
  }
  
  .modal-header, .modal-footer {
    padding: 1rem !important;
  }
  
  .modal-footer {
    flex-direction: column-reverse !important;
    gap: 0.5rem !important;
  }
  
  .modal-footer .btn {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
  }
  
  /* Form layout actions stack */
  .form-actions {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  
  .form-actions .btn {
    width: 100% !important;
  }

  /* Form control & buttons tap target optimizations */
  .form-group {
    margin-bottom: 0.85rem !important;
  }
  label {
    font-size: 11.5px !important;
    margin-bottom: 0.35rem !important;
  }
  .form-control {
    padding: 0.55rem 0.75rem !important;
    font-size: 12.5px !important;
  }
  .btn {
    padding: 0.55rem 1rem !important;
    font-size: 12.5px !important;
    min-height: 38px !important;
  }

  /* DataTable wrapper responsive controls pagination centering */
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter {
    float: none !important;
    text-align: center !important;
    margin-bottom: 0.75rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.25rem !important;
  }
  .dataTables_wrapper .dataTables_length select,
  .dataTables_wrapper .dataTables_filter input {
    width: 100% !important;
    margin: 0 !important;
  }
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    float: none !important;
    text-align: center !important;
    margin-top: 0.75rem !important;
    display: flex !important;
    justify-content: center !important;
  }
  .dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.3rem 0.6rem !important;
    margin: 0 2px !important;
    font-size: 11px !important;
  }
}

/* Narrow mobile screens details lists & stack cards optimization (<= 480px) */
@media (max-width: 480px) {
  /* Prevent side-by-side details text from wrapping/squishing - stack instead */
  .info-list-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.25rem !important;
    padding: 0.5rem 0 !important;
  }
  .info-list-item span,
  .info-list-item div {
    text-align: left !important;
    width: 100% !important;
  }
  .info-list-item .text-right,
  .info-list-item span:last-child {
    text-align: left !important;
  }

  /* Booking page details card layout collapse */
  .student-info-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    padding: 0.85rem !important;
  }
  .student-info-item {
    width: 100% !important;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.35rem;
  }
  .student-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  /* Auth screen padding adjustments */
  .login-card {
    padding: 1.5rem !important;
  }
}

/* Very narrow mobile screen sizing (<= 360px) */
@media (max-width: 360px) {
  h1, .header-title { font-size: 1.15rem !important; }
  body { font-size: 12.5px !important; }

  /* Segmented control labels squish adjustment */
  .segmented-control-btn {
    font-size: 0.75rem !important;
    padding: 0.5rem 0.25rem !important;
  }
}

/* Laravel Bootstrap Pagination Override */
.pagination {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  justify-content: center;
}
.page-item .page-link {
  border: 1px solid var(--border-color) !important;
  background: var(--bg-card) !important;
  color: #C5A880 !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.4rem 0.85rem !important;
  font-size: 12px !important;
  font-weight: 200 !important;
  text-decoration: none;
  transition: all 0.2s !important;
  display: block;
}
.page-item .page-link:hover {
  background: #3B1319 !important;
  background-color: #3B1319 !important;
  border-color: #C5A880 !important;
  color: #C5A880 !important;
}
.page-item.active .page-link {
  background: #3B1319 !important;
  background-color: #3B1319 !important;
  border-color: #C5A880 !important;
  color: #C5A880 !important;
  font-weight: 600 !important;
}
.page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
