/* Basic Reset & Font Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font-family: 'Inter', 'Sarabun', sans-serif;
  
  /* Dark Theme (Default) */
  --bg-app: #0b0f19;
  --bg-sidebar: #111827;
  --bg-card: #1f2937;
  --bg-input: #111827;
  --border-color: #374151;
  --border-focus: #6366f1;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-on-accent: #ffffff;
  
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.2);
  
  --secondary: #374151;
  --secondary-hover: #4b5563;
  
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.15);
  
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --danger-glow: rgba(239, 68, 68, 0.15);
  
  --warning: #f59e0b;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 15px rgba(99, 102, 241, 0.3);
  
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  
  --transition-speed: 0.2s;
  --transition-bezier: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
body.light-theme {
  --bg-app: #f3f4f6;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #f3f4f6;
  --border-color: #e5e7eb;
  --border-focus: #4f46e5;
  --text-main: #111827;
  --text-muted: #6b7280;
  
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-glow: rgba(79, 70, 229, 0.15);
  
  --secondary: #e5e7eb;
  --secondary-hover: #d1d5db;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 15px rgba(79, 70, 229, 0.2);
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-main);
  overflow-x: hidden;
  transition: background-color var(--transition-speed) var(--transition-bezier), color var(--transition-speed) var(--transition-bezier);
}

/* Main Layout Grid */
.app-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  transition: background-color var(--transition-speed) var(--transition-bezier), border-color var(--transition-speed) var(--transition-bezier);
}

.sidebar-header {
  margin-bottom: 32px;
  padding: 0 8px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
  filter: drop-shadow(0 0 4px var(--primary-glow));
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-speed) var(--transition-bezier);
}

.nav-item:hover {
  background-color: var(--secondary);
  color: var(--text-main);
}

.nav-item.active {
  background-color: var(--primary);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-glow);
}

.nav-icon {
  width: 20px;
  height: 20px;
}

.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.theme-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background-color: transparent;
  color: var(--text-main);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-speed) var(--transition-bezier);
}

.theme-btn:hover {
  background-color: var(--secondary);
}

body.light-theme .theme-btn .light-icon { display: none; }
body:not(.light-theme) .theme-btn .dark-icon { display: none; }

/* Main Content Styling */
.main-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100vh;
  overflow-y: auto;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.content-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.content-header .subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

/* Common Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--border-radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed) var(--transition-bezier);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-on-accent);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
}

.btn-secondary.active {
  background-color: var(--primary);
  color: var(--text-on-accent);
  border-color: var(--primary);
}

.btn-danger {
  background-color: var(--danger);
  color: var(--text-on-accent);
}

.btn-danger:hover {
  background-color: var(--danger-hover);
  box-shadow: var(--danger-glow);
}

.btn-icon-only {
  padding: 8px;
  border-radius: var(--border-radius-sm);
  background-color: var(--secondary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-icon-only:hover {
  background-color: var(--secondary-hover);
}

.btn-icon-only svg {
  width: 20px;
  height: 20px;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.btn-group {
  display: inline-flex;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.btn-group .btn {
  border-radius: 0;
  border: none;
}

.btn-group .btn:not(:last-child) {
  border-right: 1px solid var(--border-color);
}

/* App Views Container */
.view-container {
  flex-grow: 1;
  position: relative;
}

.app-view {
  display: none;
  animation: fadeIn 0.3s var(--transition-bezier);
  height: 100%;
}

.app-view.active {
  display: flex;
  flex-direction: column;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Toolbar & Filters */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  background-color: var(--bg-card);
  padding: 16px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.current-period {
  font-size: 18px;
  font-weight: 600;
  margin-left: 8px;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group label {
  font-size: 14px;
  color: var(--text-muted);
}

.select-input {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  outline: none;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-speed) var(--transition-bezier);
}

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

.rooms-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* MONTHLY CALENDAR GRID */
.calendar-grid-container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background-color: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  padding: 12px 0;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(6, 120px);
  flex-grow: 1;
}

.calendar-day-cell {
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  position: relative;
  transition: background-color var(--transition-speed) var(--transition-bezier);
}

.calendar-day-cell:nth-child(7n) {
  border-right: none;
}

.calendar-day-cell.other-month {
  background-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .calendar-day-cell.other-month {
  background-color: rgba(0, 0, 0, 0.02);
}

.calendar-day-cell.other-month .day-num {
  color: rgba(156, 163, 175, 0.4);
}

.day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.day-num {
  font-size: 14px;
  font-weight: 600;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.calendar-day-cell.today .day-num {
  background-color: var(--primary);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-glow);
}

.calendar-day-cell:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

body.light-theme .calendar-day-cell:hover {
  background-color: rgba(0, 0, 0, 0.01);
}

/* Booking tags inside calendar cells */
.calendar-booking-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 6px;
  border-radius: var(--border-radius-sm);
  color: var(--text-on-accent);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: filter var(--transition-speed);
  border-left: 3px solid rgba(0,0,0,0.3);
}

.calendar-booking-tag:hover {
  filter: brightness(1.15);
}

/* TIMELINE VIEW GRID */
.timeline-container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  padding: 16px;
}

.timeline-date-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.timeline-date-selector label {
  font-weight: 600;
}

.date-input {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  outline: none;
  font-family: inherit;
}

.timeline-grid-wrapper {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
}

.timeline-rooms-header {
  display: flex;
  background-color: var(--bg-sidebar);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
}

.room-col-header {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  padding: 12px;
  border-right: 1px solid var(--border-color);
}

.room-col-header:last-child {
  border-right: none;
}

.time-label-col {
  flex: 0 0 100px;
  text-align: center;
  background-color: var(--bg-sidebar);
}

.rooms-header-row {
  display: flex;
  flex-grow: 1;
}

.timeline-body-scroll {
  flex-grow: 1;
  overflow-y: auto;
  position: relative;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
}

.timeline-grid-body {
  position: relative;
  width: 100%;
}

.timeline-row {
  display: flex;
  height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

body.light-theme .timeline-row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.timeline-row:last-child {
  border-bottom: none;
}

.time-cell-label {
  flex: 0 0 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
}

.timeline-cells-container {
  display: flex;
  flex-grow: 1;
}

.timeline-cell {
  flex: 1;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-theme .timeline-cell {
  border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.timeline-cell:last-child {
  border-right: none;
}

/* Absolute Positioned Bookings inside Timeline */
.timeline-booking-pill {
  position: absolute;
  left: 4px;
  right: 4px;
  border-radius: var(--border-radius-md);
  padding: 8px 12px;
  color: var(--text-on-accent);
  font-size: 12px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  z-index: 10;
  transition: filter var(--transition-speed) ease;
  border-left: 4px solid rgba(0,0,0,0.3);
}

.timeline-booking-pill:hover {
  filter: brightness(1.15);
}

.timeline-pill-title {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-pill-user {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-pill-time {
  font-size: 10px;
  align-self: flex-end;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1px 6px;
  border-radius: 20px;
}

/* TABLE CARDS (Bookings & Stats) */
.table-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.table-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.table-header h2 {
  font-size: 18px;
  font-weight: 700;
}

.search-box {
  display: flex;
  align-items: center;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 0 16px;
  width: 350px;
}

.search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  margin-right: 8px;
}

.search-box input {
  background: none;
  border: none;
  color: var(--text-main);
  padding: 10px 0;
  width: 100%;
  outline: none;
  font-size: 14px;
}

.table-wrapper {
  overflow-x: auto;
  position: relative;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

th, td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--bg-sidebar);
  font-weight: 600;
  color: var(--text-muted);
}

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

tbody tr {
  transition: background-color var(--transition-speed);
}

tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.01);
}

body.light-theme tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.01);
}

/* Zoom Link Pill */
.zoom-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-glow);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid transparent;
  transition: all var(--transition-speed);
}

.zoom-btn-pill:hover {
  background-color: var(--primary);
  color: var(--text-on-accent);
  border-color: var(--primary-hover);
}

.zoom-btn-pill svg {
  width: 14px;
  height: 14px;
}

/* User Profile Badge */
.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--text-on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.user-meta {
  display: flex;
  flex-direction: column;
}

.user-dept {
  font-size: 11px;
  color: var(--text-muted);
}

/* Room Tag Table Badge */
.room-badge-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  color: var(--text-on-accent);
  font-size: 12px;
  font-weight: 600;
}

/* KPI CARDS (Stats) */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.kpi-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-speed);
}

.kpi-card:hover {
  transform: translateY(-2px);
}

.kpi-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kpi-title {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.kpi-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
}

.kpi-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-accent);
}

.kpi-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.bg-indigo { background-color: #4f46e5; }
.bg-emerald { background-color: #10b981; }
.bg-purple { background-color: #a855f7; }
.bg-rose { background-color: #f43f5e; }

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

/* MODALS */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeInBackdrop 0.2s var(--transition-bezier);
}

@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  width: 600px;
  max-width: 90%;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: scaleInModal 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.detail-modal-card {
  width: 500px;
}

@keyframes scaleInModal {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 700;
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close-modal:hover {
  background-color: var(--secondary);
  color: var(--text-main);
}

.btn-close-modal svg {
  width: 24px;
  height: 24px;
}

.modal-body {
  padding: 24px;
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

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

.col-12 { flex: 0 0 100%; }
.col-6 { flex: 0 0 calc(50% - 8px); }
.col-4 { flex: 0 0 calc(33.33% - 10.66px); }

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group label.required::after {
  content: " *";
  color: var(--danger);
}

.form-group input,
.form-group select,
.form-group textarea {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: var(--border-radius-md);
  outline: none;
  font-family: inherit;
  font-size: 14px;
  transition: all var(--transition-speed);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.modal-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Alert Box */
.alert-box {
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  font-size: 13px;
  font-weight: 500;
  margin-top: 16px;
  border: 1px solid transparent;
}

.alert-danger {
  background-color: var(--danger-glow);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* Detail Modal Custom Styles */
.detail-badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background-color: var(--primary);
  color: var(--text-on-accent);
}

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

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.detail-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.detail-val {
  font-size: 15px;
  font-weight: 600;
}

.notes-box {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  font-weight: 400;
  font-size: 14px;
  min-height: 60px;
  color: var(--text-main);
  white-space: pre-wrap;
}

.detail-section {
  margin-bottom: 24px;
}

.zoom-link-section {
  background-color: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--border-radius-lg);
  padding: 16px;
}

body.light-theme .zoom-link-section {
  background-color: rgba(79, 70, 229, 0.03);
  border: 1px solid rgba(79, 70, 229, 0.15);
}

.zoom-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.zoom-link-icon {
  width: 44px;
  height: 44px;
  background-color: var(--primary);
  color: var(--text-on-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.zoom-link-icon svg {
  width: 20px;
  height: 20px;
}

.zoom-link-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.zoom-link-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.zoom-link-url {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

.zoom-link-arrow {
  color: var(--primary);
  display: flex;
  align-items: center;
  transition: transform var(--transition-speed);
}

.zoom-link-card:hover .zoom-link-arrow {
  transform: translateX(4px);
}

.zoom-link-arrow svg {
  width: 20px;
  height: 20px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}

.toast {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 16px 20px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 400px;
  font-size: 14px;
  font-weight: 500;
  border-left: 5px solid var(--primary);
  animation: slideInToast 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

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

.toast.toast-danger {
  border-left-color: var(--danger);
}

.toast.toast-warning {
  border-left-color: var(--warning);
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast.toast-success .toast-icon { color: var(--success); }
.toast.toast-danger .toast-icon { color: var(--danger); }
.toast.toast-warning .toast-icon { color: var(--warning); }

/* Empty States */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: var(--text-muted);
  gap: 12px;
}

.empty-icon {
  width: 48px;
  height: 48px;
  stroke-width: 1.5;
}

.hidden {
  display: none !important;
}

/* Custom Webkit Scrollbars for Premium Feel */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-app);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-hover);
}
