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

:root {
  /* ── MIS Theme Hue (ปรับสีได้ผ่าน mis_theme.js) ── */
  --theme-hue: 292;

  /* ── MIS Font Size (ปรับขนาดได้ผ่าน mis_theme.js) ── */
  --mis-font-base:  16px;
  --mis-font-sm:    14px;
  --mis-font-xs:    13px;
  --mis-font-th:    15px;
  --mis-font-td:    14px;
  --mis-font-title: 15px;
  --mis-font-modal: 15px;

  /* Colors - Pastel Blue & Teal Theme */
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --secondary: #06b6d4;
  --accent: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --success: #22c55e;
  
  /* Backgrounds */
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-sidebar: #1e3a5f;
  --bg-navbar: rgba(255, 255, 255, 0.95);
  
  /* Text */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  
  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --gradient-teal: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
  --gradient-hero: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #06b6d4 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-card: 0 4px 20px rgba(37, 99, 235, 0.1);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

[data-theme='dark'] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --bg-sidebar: #090d16;
  --bg-navbar: rgba(15, 23, 42, 0.95);
  --glass-bg: rgba(30, 41, 59, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ── Bootstrap component dark mode overrides ─────────────────────── */
[data-theme='dark'] .card {
  background-color: var(--bg-card) !important;
  border-color: rgba(255,255,255,.08) !important;
  color: var(--text-primary);
}
[data-theme='dark'] .card-header {
  background-color: rgba(255,255,255,.05) !important;
  border-color: rgba(255,255,255,.08) !important;
  color: var(--text-primary);
}
[data-theme='dark'] .card-footer {
  background-color: rgba(255,255,255,.04) !important;
  border-color: rgba(255,255,255,.08) !important;
}
[data-theme='dark'] .bg-white  { background-color: var(--bg-card) !important; }
[data-theme='dark'] .bg-light  { background-color: var(--bg-secondary) !important; color: var(--text-primary) !important; }
[data-theme='dark'] .text-dark { color: var(--text-primary) !important; }
[data-theme='dark'] .text-muted { color: var(--text-muted) !important; }
[data-theme='dark'] .border        { border-color: rgba(255,255,255,.08) !important; }
[data-theme='dark'] .border-bottom { border-color: rgba(255,255,255,.08) !important; }
[data-theme='dark'] .border-top    { border-color: rgba(255,255,255,.08) !important; }
[data-theme='dark'] .border-secondary { border-color: rgba(255,255,255,.15) !important; }
/* Tables */
[data-theme='dark'] .table { color: var(--text-primary) !important; }
[data-theme='dark'] .table > :not(caption) > * > * { border-color: rgba(255,255,255,.06) !important; background-color: transparent; }
[data-theme='dark'] .table-light > * { background-color: rgba(255,255,255,.05) !important; color: var(--text-secondary) !important; border-color: rgba(255,255,255,.08) !important; }
[data-theme='dark'] .table-hover > tbody > tr:hover > * { background-color: rgba(255,255,255,.05) !important; color: var(--text-primary) !important; }
/* Modals */
[data-theme='dark'] .modal-content { background-color: var(--bg-card) !important; color: var(--text-primary) !important; border-color: rgba(255,255,255,.1) !important; }
[data-theme='dark'] .modal-header  { border-color: rgba(255,255,255,.08) !important; }
[data-theme='dark'] .modal-footer  { background-color: rgba(255,255,255,.04) !important; border-color: rgba(255,255,255,.08) !important; }
/* Form inputs */
[data-theme='dark'] .form-control,
[data-theme='dark'] .form-select {
  background-color: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border-color: rgba(255,255,255,.15) !important;
}
[data-theme='dark'] .form-control::placeholder { color: var(--text-muted) !important; }
[data-theme='dark'] .form-control:focus,
[data-theme='dark'] .form-select:focus {
  background-color: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border-color: rgba(99,130,255,.5) !important;
  box-shadow: 0 0 0 .2rem rgba(99,130,255,.12) !important;
}
[data-theme='dark'] .input-group-text {
  background-color: rgba(255,255,255,.07) !important;
  border-color: rgba(255,255,255,.15) !important;
  color: var(--text-secondary) !important;
}
/* Alerts */
[data-theme='dark'] .alert-warning { background-color: rgba(245,158,11,.15) !important; border-color: rgba(245,158,11,.3) !important; color: #fbbf24 !important; }
[data-theme='dark'] .alert-danger  { background-color: rgba(239,68,68,.15) !important;  border-color: rgba(239,68,68,.3) !important;  color: #f87171 !important; }
[data-theme='dark'] .alert-info    { background-color: rgba(14,165,233,.15) !important;  border-color: rgba(14,165,233,.3) !important;  color: #38bdf8 !important; }
[data-theme='dark'] .alert-success { background-color: rgba(34,197,94,.15) !important;   border-color: rgba(34,197,94,.3) !important;   color: #4ade80 !important; }
[data-theme='dark'] .alert strong  { color: inherit !important; }
/* Dropdowns */
[data-theme='dark'] .dropdown-menu { background-color: var(--bg-card) !important; border-color: rgba(255,255,255,.1) !important; }
[data-theme='dark'] .dropdown-item { color: var(--text-primary) !important; }
[data-theme='dark'] .dropdown-item:hover { background-color: rgba(255,255,255,.07) !important; }
[data-theme='dark'] .dropdown-divider { border-color: rgba(255,255,255,.08) !important; }
/* Nav tabs */
[data-theme='dark'] .nav-tabs { border-color: rgba(255,255,255,.1) !important; }
[data-theme='dark'] .nav-tabs .nav-link { color: var(--text-secondary) !important; border-color: transparent !important; }
[data-theme='dark'] .nav-tabs .nav-link.active { background-color: var(--bg-card) !important; border-color: rgba(255,255,255,.1) rgba(255,255,255,.1) var(--bg-card) !important; color: var(--text-primary) !important; }
/* Badges */
[data-theme='dark'] .badge.bg-light { background-color: rgba(255,255,255,.12) !important; color: var(--text-primary) !important; }
[data-theme='dark'] .badge.border   { border-color: rgba(255,255,255,.15) !important; }
/* List group */
[data-theme='dark'] .list-group-item { background-color: var(--bg-card) !important; border-color: rgba(255,255,255,.08) !important; color: var(--text-primary) !important; }
/* Pagination */
[data-theme='dark'] .page-link { background-color: var(--bg-card) !important; border-color: rgba(255,255,255,.1) !important; color: var(--text-secondary) !important; }
[data-theme='dark'] .page-item.active .page-link  { background-color: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; }
[data-theme='dark'] .page-item.disabled .page-link { background-color: var(--bg-secondary) !important; color: var(--text-muted) !important; }

body {
  font-family: 'Sarabun', sans-serif;
  font-size: var(--mis-font-base);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: var(--transition);
  overflow-x: hidden;
}

.table th { font-size: var(--mis-font-th); }
.table td { font-size: var(--mis-font-td); }
.modal-body, .modal-footer { font-size: var(--mis-font-modal); }
.small, small { font-size: var(--mis-font-xs) !important; }

/* Glassmorphism Styles */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.2);
}

/* Navbar (legacy class) */
.navbar-custom {
  background: var(--bg-navbar);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
}

/* ── Admin Top Bar (dark gradient) ── */
.sup-topbar {
  height: 60px;
  padding: 0 1.25rem;
  background: linear-gradient(90deg, #0f1f3d 0%, #1a3f7a 55%, #1a5fb4 100%);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .28);
  margin: -25px -25px 1.5rem -25px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  flex-shrink: 0;
}

.sup-toggle {
  padding: .35rem .5rem;
  opacity: .82;
  border-radius: 7px;
  transition: opacity .15s, background .15s;
  line-height: 1;
}
.sup-toggle:hover {
  opacity: 1;
  background: rgba(255, 255, 255, .13) !important;
  text-decoration: none;
}

.sup-brand { align-items: center; gap: 8px; }
.sup-brand-name {
  font-size: .92rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .2px;
  white-space: nowrap;
}

.sup-year-badge {
  font-size: .75rem;
  color: rgba(255, 255, 255, .65);
  font-weight: 400;
  white-space: nowrap;
}

.sup-icon-btn {
  color: rgba(255, 255, 255, .72) !important;
  transition: color .15s, opacity .15s;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.sup-icon-btn:hover { color: #fff !important; }

.sup-logout { padding: .3rem .4rem; }
.sup-divider { border-left: 1px solid rgba(255, 255, 255, .18); }

/* ── Sidebar ─────────────────────────────── */
.sidebar-wrapper {
  background: linear-gradient(175deg, #0b1829 0%, #0f2340 50%, #0d2444 100%);
  color: white;
  min-height: 100vh;
  box-shadow: 4px 0 24px rgba(0,0,0,.35);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.05);
  position: relative;
}

/* Profile section */
.sidebar-profile {
  padding: 22px 18px 18px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.14);
}
.sidebar-avatar-wrap { display: inline-block; margin-bottom: 10px; }
.sidebar-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2.5px solid oklch(0.65 0.18 var(--theme-hue));
  box-shadow: 0 0 0 4px oklch(0.65 0.18 var(--theme-hue) / .18),
              0 4px 16px rgba(0,0,0,.4);
}
.sidebar-username {
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}
.sidebar-role-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  background: oklch(0.52 0.22 var(--theme-hue) / .22);
  border: 1px solid oklch(0.65 0.18 var(--theme-hue) / .35);
  color: oklch(0.88 0.12 var(--theme-hue));
}

/* Nav scroll area */
.sidebar-nav {
  flex: 1;
  padding: 8px 0 6px;
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.15);
  border-radius: 2px;
}

/* Section labels */
.sidebar-section-lbl {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px 5px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: oklch(0.72 0.16 var(--theme-hue));
}
.sidebar-section-lbl::before,
.sidebar-section-lbl::after {
  content: '';
  flex: 1;
  height: 1px;
  background: oklch(0.65 0.18 var(--theme-hue) / .22);
}
.sidebar-section-lbl::before { max-width: 14px; }

/* Link entrance animation */
@keyframes sup-slide-in {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Sidebar links */
.sidebar-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 14px 8px 11px;
  margin: 2px 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.58);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color .18s, background .18s, border-color .18s, transform .18s;
  animation: sup-slide-in .32s ease both;
}
.sidebar-link:hover {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.95);
  border-left-color: oklch(0.65 0.18 var(--theme-hue) / .55);
  transform: translateX(3px);
  text-decoration: none;
}
.sidebar-link.active {
  background: oklch(0.52 0.22 var(--theme-hue) / .20);
  color: #fff;
  border-left-color: oklch(0.72 0.18 var(--theme-hue));
  font-weight: 600;
}
.sidebar-link.active .si-icon {
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  transform: scale(1.06);
}

/* Icon badge */
.si-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .94rem;
  flex-shrink: 0;
  color: #fff;
  transition: transform .18s, box-shadow .18s;
  text-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.sidebar-link:hover .si-icon { transform: scale(1.10) rotate(-4deg); }
.si-label { font-size: 14px; line-height: 1.3; }

/* Icon colors */
.si-indigo  { background: linear-gradient(135deg, #818CF8, #4338CA); }
.si-green   { background: linear-gradient(135deg, #4ADE80, #16A34A); }
.si-cyan    { background: linear-gradient(135deg, #22D3EE, #0891B2); }
.si-violet  { background: linear-gradient(135deg, #C084FC, #7C3AED); }
.si-orange  { background: linear-gradient(135deg, #FB923C, #C2410C); }
.si-emerald { background: linear-gradient(135deg, #34D399, #059669); }
.si-blue    { background: linear-gradient(135deg, #60A5FA, #1D4ED8); }
.si-amber   { background: linear-gradient(135deg, #FBBF24, #B45309); }
.si-teal    { background: linear-gradient(135deg, #2DD4BF, #0D9488); }
.si-pink    { background: linear-gradient(135deg, #F472B6, #BE185D); }
.si-rose    { background: linear-gradient(135deg, #FB7185, #BE123C); }
.si-slate   { background: linear-gradient(135deg, #94A3B8, #334155); }
.si-red     { background: linear-gradient(135deg, #F87171, #DC2626); }

/* Sidebar footer buttons */
.sidebar-footer {
  padding: 10px 12px 14px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(0,0,0,.1);
}
.sidebar-footer-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.58);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
  transition: all .18s;
}
.sidebar-footer-btn:hover {
  background: rgba(255,255,255,.10);
  color: #fff;
  border-color: rgba(255,255,255,.18);
  text-decoration: none;
  transform: translateY(-1px);
}
.sidebar-footer-btn-danger { border-color: rgba(239,68,68,.22); color: rgba(252,165,165,.72); }
.sidebar-footer-btn-danger:hover {
  background: rgba(239,68,68,.18);
  border-color: rgba(239,68,68,.45);
  color: #FCA5A5;
}

/* Stat Cards */
.stat-card {
  border-left: 5px solid var(--primary);
}
.stat-card.teal { border-left-color: var(--secondary); }
.stat-card.green { border-left-color: var(--accent); }
.stat-card.warning { border-left-color: var(--warning); }

/* Badges for status */
.status-pending { background: #fef3c7; color: #92400e; }
.status-waiting_schedule { background: #dbeafe; color: #1e40af; }
.status-waiting_supervision { background: #e0e7ff; color: #3730a3; }
.status-supervised { background: #e0f2fe; color: #0369a1; }
.status-submitted { background: #f3e8ff; color: #6b21a8; }
.status-approved { background: #d1fae5; color: #065f46; }
.status-revision { background: #fee2e2; color: #991b1b; }

/* Calendar customization */
.fc {
  --fc-button-bg-color: var(--primary) !important;
  --fc-button-border-color: var(--primary) !important;
  --fc-button-hover-bg-color: var(--primary-dark) !important;
  --fc-event-bg-color: var(--primary-light) !important;
  --fc-event-border-color: var(--primary-light) !important;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Hero Section */
.hero-gradient {
  background: var(--gradient-hero);
  color: white;
  padding: 80px 0 60px 0;
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-gradient::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 10%, transparent 10.01%);
  background-size: 20px 20px;
  opacity: 0.3;
}

/* Dynamic Banners */
.hero-banners-wrapper {
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  background: #000;
  box-shadow: var(--shadow-md);
}

.banner-slide-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 500px;
  width: 100%;
  position: relative;
}

@media (max-width: 991.98px) {
  .banner-slide-bg {
    height: 400px;
  }
}

@media (max-width: 575.98px) {
  .banner-slide-bg {
    height: 320px;
  }
}

.banner-content-box {
  background: rgba(0, 0, 0, 0.3) !important; /* Lighter black background */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  width: 100%;
}

@media (max-width: 575.98px) {
  .banner-content-box {
    padding: 1.5rem !important;
  }
  .banner-content-box h1 {
    font-size: 1.75rem !important;
  }
  .banner-content-box p {
    font-size: 0.95rem !important;
    margin-bottom: 1rem !important;
  }
}

.hover-scale {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

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


/* Drag and drop grid slot layout */
.timetable-grid {
  display: grid;
  grid-template-columns: 200px repeat(5, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.timetable-header-cell {
  background: var(--primary);
  color: white;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.timetable-teacher-cell {
  background: var(--bg-secondary);
  padding: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
}

.timetable-slot-cell {
  background: var(--bg-card);
  border: 2px dashed var(--glass-border);
  min-height: 80px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.timetable-slot-cell.drag-over {
  background: var(--bg-secondary);
  border-color: var(--primary);
}

.timetable-card {
  background: var(--gradient-primary);
  color: white;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  width: 100%;
  cursor: grab;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.timetable-card .btn-remove-slot {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
  padding: 0;
  cursor: pointer;
}

/* Chatbot styles */
.chatbot-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
}

.chatbot-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-teal);
  color: white;
  border: none;
  font-size: 24px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.chatbot-btn:hover {
  transform: rotate(15deg) scale(1.1);
}

.chatbot-window {
  width: 360px;
  height: 480px;
  position: absolute;
  bottom: 80px;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.chatbot-header {
  background: var(--gradient-primary);
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.chatbot-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

.chat-bubble.bot {
  background: var(--bg-secondary);
  align-self: flex-start;
  border-bottom-left-radius: 0;
}

.chat-bubble.user {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 0;
}

.chatbot-input-area {
  padding: 10px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  gap: 8px;
}

.chatbot-input {
  flex: 1;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 8px 16px;
  outline: none;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.chatbot-send-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Custom Multi-column Footer Styles */
.footer-custom {
  background-color: #0f172a; /* Dark navy */
  color: #94a3b8;
  font-size: 0.9rem;
  border-top: 4px solid var(--secondary, #06b6d4);
  transition: background-color 0.3s ease;
}
[data-theme='dark'] .footer-custom {
  background-color: #090d16;
  border-top-color: var(--primary);
}
.footer-custom h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #f8fafc;
}
.footer-custom a {
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
}
.footer-custom a:hover {
  color: #f1f5f9;
  padding-left: 5px;
}
.footer-custom .social-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  transition: all 0.3s ease;
  margin-right: 8px;
}
.footer-custom .social-icon:hover {
  background: var(--primary, #2563eb);
  color: #fff;
  transform: translateY(-3px);
}
.footer-custom .news-item {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.footer-custom .news-item:last-child {
  border-bottom: none;
}
.footer-custom .contact-info-list p {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
}
.footer-custom .contact-info-list i {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-right: 10px;
  margin-top: 2px;
}
.footer-bottom {
  background-color: #0b0f19;
  font-size: 0.8rem;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
[data-theme='dark'] .footer-bottom {
  background-color: #05070a;
}
.footer-bottom a {
  color: #64748b;
  text-decoration: none;
}
.footer-bottom a:hover {
  color: #cbd5e1;
}
.scroll-to-top-btn {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}
.scroll-to-top-btn:hover {
  transform: translateY(-3px);
  background-color: var(--primary-dark);
}
