/* CARDS */
  .glass-card {
    background: var(--glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-b);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all .35s cubic-bezier(.165, .84, .44, 1);
  }

  .card {
    background: #fff;
    padding: 22px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
    border: 1px solid rgba(0, 0, 0, 0.025);
  }

  .appt-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
  }


  /* FORMS */
  .glass-input {
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 10px;
    font-family: 'Cairo';
    padding: 11px 13px;
    width: 100%;
    font-size: 14px;
    transition: all .3s;
  }

  .glass-input:focus {
    border-color: var(--teal);
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 0 0 3px rgba(0, 168, 132, .1);
    outline: none;
  }

  select.glass-input,
  textarea.glass-input {
    font-family: 'Cairo';
  }

  textarea.glass-input {
    resize: none;
  }

  /* SELECT2 */
  .select2-container .select2-selection--single {
    height: 46px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .85);
    background: rgba(255, 255, 255, .55);
  }

  .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px;
    padding-right: 14px;
    color: var(--text);
  }

  .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
    left: 8px;
  }

/* Premium Support Page Styles */
.support-header-premium {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  background: white;
  padding: 20px 24px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.02);
}

.support-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-bottom: 24px;
}

.support-stat-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.03);
  transition: transform 0.2s;
}
.support-stat-card:hover {
  transform: translateY(-2px);
}
.support-stat-card .stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.support-stat-card .stat-info {
  display: flex;
  flex-direction: column;
}
.support-stat-card .stat-value {
  font-size: 18px;
  font-weight: 900;
  color: var(--blue);
  line-height: 1.2;
}
.support-stat-card .stat-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
  margin-top: 2px;
}

@media (max-width: 480px) {
  .support-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .support-stat-card {
    flex-direction: column;
    text-align: center;
    padding: 12px;
    gap: 8px;
  }
  .support-stat-card .stat-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

.support-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.support-tabs-container {
  display: flex;
  background: #f8fafc;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid #f1f5f9;
}
.support-sub-tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.support-sub-tab.active {
  background: white;
  color: var(--blue);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.support-search-wrapper {
  position: relative;
}
.support-search-wrapper .glass-input {
  padding-right: 42px;
  border-radius: 14px;
  background: white;
  border: 1px solid #e2e8f0;
}
.support-search-wrapper .search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.ticket-card-premium {
  background: white;
  border-radius: 16px;
  padding: 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(0,0,0,0.03);
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.ticket-card-premium::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 0; width: 4px;
  background: var(--teal);
  transition: width 0.3s;
}
.ticket-card-premium.admin-ticket::before {
  background: var(--blue);
}
.ticket-card-premium:hover {
  transform: translateX(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}
.ticket-card-premium:hover::before {
  width: 6px;
}

/* ──────────────────────────────────────────────────────────────────────────
   MODERN TIMELINE & PREMIUM TO-DO LIST STYLES
   ────────────────────────────────────────────────────────────────────────── */

/* Week Date Scroller */
.timeline-days-scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 14px 14px 18px;
  scrollbar-width: none; /* hide scrollbar Firefox */
  -ms-overflow-style: none; /* hide scrollbar IE/Edge */
  border-bottom: 1px solid #f1f5f9;
}
.timeline-days-scroller::-webkit-scrollbar {
  display: none; /* hide scrollbar Chrome/Safari */
}
body.dark-mode .timeline-days-scroller {
  border-bottom-color: var(--border-subtle);
}

.timeline-day-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 68px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
}
body.dark-mode .timeline-day-btn {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.timeline-day-btn:hover {
  background: rgba(13, 148, 136, 0.03);
  border-color: rgba(13, 148, 136, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.08);
}
body.dark-mode .timeline-day-btn:hover {
  background: rgba(13, 148, 136, 0.05);
  border-color: rgba(13, 148, 136, 0.3);
}
.timeline-day-btn.active {
  background: linear-gradient(135deg, var(--remind-teal, #0d9488) 0%, var(--remind-blue, #0868a3) 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3) !important;
  transform: scale(1.05) translateY(-2px) !important;
}
body.dark-mode .timeline-day-btn.active {
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.45) !important;
}
.timeline-day-btn .day-name {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  transition: color 0.2s;
}
body.dark-mode .timeline-day-btn .day-name {
  color: var(--text-secondary);
}
.timeline-day-btn:hover .day-name {
  color: var(--remind-teal, #0d9488);
}
.timeline-day-btn.active .day-name {
  color: rgba(255, 255, 255, 0.85) !important;
}
.timeline-day-btn .day-num {
  font-size: 16px;
  font-weight: 900;
  color: #1e293b;
  margin-top: 2px;
  transition: color 0.2s;
}
body.dark-mode .timeline-day-btn .day-num {
  color: var(--text-primary);
}
.timeline-day-btn:hover .day-num {
  color: var(--remind-teal, #0d9488);
}
.timeline-day-btn.active .day-num {
  color: #fff !important;
}
/* active day dot indicators */
.timeline-day-btn.active::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  margin-top: 4px;
}

/* All Days Filter Button */
.timeline-day-btn.all-days {
  min-width: 62px;
}
.timeline-day-btn.all-days .day-num {
  font-size: 12px;
  font-weight: 800;
  margin-top: 1px;
}

/* Navigation Arrows */
.timeline-nav-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
  z-index: 10;
}
body.dark-mode .timeline-nav-arrow {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
  color: var(--text-secondary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.timeline-nav-arrow:hover {
  background: var(--remind-teal, #0d9488);
  border-color: var(--remind-teal, #0d9488);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3);
}
.timeline-nav-arrow:active {
  transform: scale(0.95);
}

/* Timeline vertical track */
.timeline-tasks-list {
  position: relative;
  padding-right: 32px; /* space for nodes/line in RTL */
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.timeline-tasks-list::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 12px;
  width: 2px;
  background: var(--remind-blue);
  opacity: 0.2;
}
body.dark-mode .timeline-tasks-list::before {
  background: var(--remind-blue);
  opacity: 0.35;
}

/* Timeline Node */
.timeline-node {
  position: absolute;
  right: -25px; /* center it on the timeline line */
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--remind-blue);
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(8, 104, 163, 0.15);
  transition: all 0.25s ease;
}
body.dark-mode .timeline-node {
  background: var(--bg-main);
  border-color: var(--remind-blue);
  box-shadow: 0 0 0 4px rgba(8, 104, 163, 0.25);
}
.timeline-task-item.completed .timeline-node {
  background: var(--remind-teal);
  border-color: var(--remind-teal);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.25);
}

/* Premium Task Card */
.task-card-premium {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.03);
}
.task-card-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.task-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.task-card-title {
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.5;
  flex: 1;
}
body.dark-mode .task-card-title {
  color: var(--text-primary);
}

.task-card-time {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.65);
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}
body.dark-mode .task-card-time {
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.05);
}

.task-card-body {
  font-size: 11px;
  color: #475569;
  line-height: 1.6;
}
body.dark-mode .task-card-body {
  color: var(--text-secondary);
}

.task-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  padding-top: 10px;
}
body.dark-mode .task-card-footer {
  border-top-color: var(--border-subtle);
}

/* Card Actions styling */
.task-card-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

/* Card color variations (Inspired by the mock and matching portal theme) */
.task-card-rose {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe3e3 100%);
  border-color: #fecaca;
}
.task-card-blue {
  background: linear-gradient(135deg, #f0f7ff 0%, #e0effe 100%);
  border-color: #bae6fd;
}
.task-card-yellow {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fde68a;
}
.task-card-green {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  border-color: #99f6e4;
}


.task-card-slate {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: #e2e8f0;
}

/* Dark mode card color variations */
body.dark-mode .task-card-rose {
  background: linear-gradient(135deg, #881337 0%, #4c0519 100%);
  border-color: rgba(159, 18, 57, 0.4);
}
body.dark-mode .task-card-blue {
  background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
  border-color: rgba(30, 64, 175, 0.4);
}
body.dark-mode .task-card-yellow {
  background: linear-gradient(135deg, #78350f 0%, #451a03 100%);
  border-color: rgba(133, 77, 14, 0.4);
}
body.dark-mode .task-card-green {
  background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
  border-color: rgba(6, 95, 70, 0.4);
}

.task-card-slate {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: #e2e8f0;
}

/* Dark mode card color variations */
body.dark-mode .task-card-rose {
  background: linear-gradient(135deg, #881337 0%, #4c0519 100%);
  border-color: rgba(159, 18, 57, 0.4);
}
body.dark-mode .task-card-blue {
  background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
  border-color: rgba(30, 64, 175, 0.4);
}
body.dark-mode .task-card-yellow {
  background: linear-gradient(135deg, #78350f 0%, #451a03 100%);
  border-color: rgba(133, 77, 14, 0.4);
}
body.dark-mode .task-card-green {
  background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
  border-color: rgba(6, 95, 70, 0.4);
}
body.dark-mode .task-card-slate {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-color: rgba(51, 65, 85, 0.4);
}

/* Custom Datepicker Button */
.timeline-day-btn.datepicker-btn {
  background: rgba(13, 148, 136, 0.03);
  border: 1.5px dashed rgba(13, 148, 136, 0.3);
}
.timeline-day-btn.datepicker-btn i {
  color: var(--remind-teal, #0d9488) !important;
}
body.dark-mode .timeline-day-btn.datepicker-btn {
  background: rgba(13, 148, 136, 0.06);
  border-color: rgba(13, 148, 136, 0.4);
}
.timeline-day-btn.datepicker-btn:hover {
  background: rgba(13, 148, 136, 0.08);
  border-style: solid;
  border-color: var(--remind-teal, #0d9488);
}
