/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Prompt:wght@300;400;500;600;700&display=swap');

/* ===== CSS Variables ===== */
:root {
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --primary-light: #818CF8;
  --secondary: #7C3AED;
  --secondary-light: #A78BFA;
  --accent: #06B6D4;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --sidebar-width: 260px;
  --header-height: 70px;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.12), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Prompt', sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  font-size: 14px;
  min-height: 100vh;
  display: flex;
}

/* ===== Sidebar ===== */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: linear-gradient(180deg, #1E1B4B 0%, #312E81 40%, #4C1D95 100%);
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  box-shadow: 4px 0 24px rgba(79, 70, 229, 0.2);
}

.sidebar-logo {
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logo .logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(129,140,248,0.4);
}

.sidebar-logo h1 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}

.sidebar-logo p {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav .nav-section-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 10px 4px;
  margin-top: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--border-radius-sm);
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(79,70,229,0.6), rgba(124,58,237,0.6));
  color: #fff;
  box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--primary-light);
  border-radius: 0 3px 3px 0;
}

.nav-item .nav-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border-radius: 7px;
  flex-shrink: 0;
  transition: var(--transition);
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon {
  background: rgba(255,255,255,0.12);
}

.sidebar-footer {
  padding: 16px 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-footer .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--border-radius-sm);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  font-weight: 600;
  flex-shrink: 0;
}

.user-details span {
  display: block;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.user-role {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

/* ===== Main Content ===== */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Top Header ===== */
.top-header {
  height: var(--header-height);
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.header-title h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
}

.header-title p {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}

/* ===== Page Content ===== */
.page-content {
  flex: 1;
  padding: 28px 32px;
}

/* ===== Cards ===== */
.card {
  background: #fff;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

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

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
}

.card-body {
  padding: 24px;
}

/* ===== Stats Row ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 20px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--stat-color, var(--primary));
}

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

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--stat-bg, rgba(79,70,229,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
}

/* ===== Status Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge-upcoming {
  background: rgba(79,70,229,0.1);
  color: var(--primary);
}
.badge-upcoming::before { background: var(--primary); }

.badge-ongoing {
  background: rgba(16,185,129,0.1);
  color: var(--success);
  animation: pulse-ongoing 2s infinite;
}
.badge-ongoing::before { background: var(--success); box-shadow: 0 0 0 2px rgba(16,185,129,0.3); }

.badge-completed {
  background: var(--gray-100);
  color: var(--gray-500);
}
.badge-completed::before { background: var(--gray-400); }

.badge-cancelled {
  background: rgba(239,68,68,0.1);
  color: var(--danger);
}
.badge-cancelled::before { background: var(--danger); }

@keyframes pulse-ongoing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.2); }
  50% { box-shadow: 0 0 0 4px rgba(16,185,129,0.1); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--border-radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79,70,229,0.4);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}
.btn-secondary:hover { background: var(--gray-200); }

.btn-danger {
  background: rgba(239,68,68,0.1);
  color: var(--danger);
}
.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border: 1.5px solid var(--gray-200);
}
.btn-ghost:hover { background: var(--gray-50); border-color: var(--gray-300); }

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
}

/* ===== Forms ===== */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 7px;
}

.form-label .required {
  color: var(--danger);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--border-radius-sm);
  font-size: 13.5px;
  font-family: inherit;
  color: var(--gray-800);
  background: #fff;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.form-control::placeholder { color: var(--gray-400); }

select.form-control { cursor: pointer; }

textarea.form-control {
  resize: vertical;
  min-height: 88px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-slow);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #fff;
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.97);
  transition: var(--transition-slow);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-lg {
  max-width: 680px;
}

.modal-header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #fff;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  z-index: 1;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--gray-100);
  color: var(--gray-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.modal-close:hover { background: var(--gray-200); color: var(--gray-800); }

.modal-body { padding: 24px; }

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  background: #fff;
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

/* ===== Calendar ===== */
.calendar-container {
  background: #fff;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calendar-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.calendar-nav-btn:hover { background: rgba(255,255,255,0.25); }

.calendar-month-year {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  min-width: 200px;
  text-align: center;
}

.calendar-today-btn {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.4);
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.calendar-today-btn:hover { background: rgba(255,255,255,0.15); }

.calendar-grid-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: rgba(79,70,229,0.04);
  border-bottom: 1px solid var(--gray-100);
}

.calendar-day-name {
  text-align: center;
  padding: 12px 0;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calendar-day-name:first-child { color: var(--danger); }
.calendar-day-name:last-child { color: var(--primary); }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-cell {
  min-height: 100px;
  padding: 10px;
  border-right: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
  position: relative;
}

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

.calendar-cell.other-month {
  background: var(--gray-50);
}

.calendar-cell.other-month .day-number {
  color: var(--gray-300);
}

.calendar-cell.today {
  background: rgba(79,70,229,0.03);
}

.calendar-cell.today .day-number {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(79,70,229,0.4);
}

.calendar-cell.has-meetings { cursor: pointer; }

.calendar-cell.has-meetings:hover {
  background: rgba(79,70,229,0.04);
}

.calendar-cell:first-child { border-left: none; }

.day-number {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-cell.sunday .day-number { color: var(--danger); }
.calendar-cell.saturday .day-number { color: var(--primary); }

.meeting-dots {
  display: block;
  width: 100%;
}

.meeting-dot {
  display: block;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 3px;
  cursor: pointer;
  transition: var(--transition);
}

.meeting-dot:hover { opacity: 0.8; filter: brightness(0.95); }

.meeting-dot.dot-upcoming { background: rgba(79,70,229,0.1); color: var(--primary); }
.meeting-dot.dot-ongoing { background: rgba(16,185,129,0.1); color: var(--success); }
.meeting-dot.dot-completed { background: var(--gray-100); color: var(--gray-500); }
.meeting-dot.dot-cancelled { background: rgba(239,68,68,0.08); color: var(--danger); text-decoration: line-through; }

.meeting-more {
  font-size: 10px;
  color: var(--gray-400);
  padding: 1px 7px;
  font-weight: 500;
}

/* ===== Table ===== */
.table-container {
  overflow-x: auto;
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  padding: 13px 16px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}

thead th:first-child { padding-left: 24px; border-radius: 0; }
thead th:last-child { padding-right: 24px; }

tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(79,70,229,0.02); }

tbody td {
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--gray-700);
  vertical-align: middle;
}

tbody td:first-child { padding-left: 24px; }
tbody td:last-child { padding-right: 24px; }

.td-title {
  font-weight: 600;
  color: var(--gray-900);
  max-width: 200px;
}

.td-sub {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 2px;
}

.actions-cell {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* ===== Search / Filter Bar ===== */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-100);
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 320px;
}

.search-box input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  background: var(--gray-50);
}

.search-box input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.08);
}

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

.filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-select {
  padding: 8px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: var(--gray-700);
  background: var(--gray-50);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.filter-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.08);
}

/* ===== Meeting Detail in Modal ===== */
.detail-section {
  margin-bottom: 20px;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

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

.detail-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(79,70,229,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.detail-content label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 3px;
}

.detail-content span {
  font-size: 14px;
  color: var(--gray-800);
  font-weight: 500;
}

.detail-content a {
  color: var(--primary);
  text-decoration: none;
}

.detail-content a:hover { text-decoration: underline; }

.detail-title-header {
  background: linear-gradient(135deg, rgba(79,70,229,0.06), rgba(124,58,237,0.06));
  border-radius: var(--border-radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  border-left: 4px solid var(--primary);
}

.detail-title-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

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

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.empty-state p { font-size: 13px; }

/* ===== Toast Notification ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-800);
  min-width: 280px;
  animation: slideInToast 0.3s cubic-bezier(0.4,0,0.2,1);
  border-left: 4px solid var(--primary);
}

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

.toast-icon { font-size: 18px; flex-shrink: 0; }

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

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

/* ===== Confirm Dialog ===== */
.confirm-dialog {
  max-width: 420px;
}

.confirm-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(239,68,68,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}

.confirm-dialog .modal-body {
  text-align: center;
  padding: 32px 24px;
}

.confirm-dialog h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.confirm-dialog p {
  font-size: 13.5px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ===== Attendee Chips ===== */
.attendee-chip {
  display: inline-flex;
  align-items: center;
  background: rgba(79,70,229,0.08);
  color: var(--primary);
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.attendee-more {
  display: inline-flex;
  align-items: center;
  background: var(--gray-100);
  color: var(--gray-500);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.attendees-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 200px;
}

/* ===== Multi-Select Dropdown ===== */
.multiselect-wrapper {
  position: relative;
}

.multiselect-selected {
  min-height: 42px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--border-radius-sm);
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  background: #fff;
  transition: var(--transition);
}

.multiselect-selected:hover,
.multiselect-selected.open {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.multiselect-placeholder {
  color: var(--gray-400);
  font-size: 13.5px;
}

.multiselect-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(79,70,229,0.1);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.multiselect-tag .remove-tag {
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  opacity: 0.6;
  transition: var(--transition);
}
.multiselect-tag .remove-tag:hover { opacity: 1; }

.multiselect-arrow {
  margin-left: auto;
  color: var(--gray-400);
  font-size: 12px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.multiselect-selected.open .multiselect-arrow { transform: rotate(180deg); }

.multiselect-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 200;
  max-height: 220px;
  overflow-y: auto;
  display: none;
}

.multiselect-dropdown.open { display: block; }

.multiselect-search {
  padding: 8px 12px;
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  background: #fff;
}

.multiselect-search input {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.multiselect-search input:focus { border-color: var(--primary); }

.multiselect-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--gray-700);
  transition: var(--transition);
}

.multiselect-option:hover { background: var(--gray-50); }

.multiselect-option.selected { background: rgba(79,70,229,0.05); color: var(--primary); font-weight: 500; }

.multiselect-option input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.multiselect-empty {
  padding: 20px;
  text-align: center;
  color: var(--gray-400);
  font-size: 13px;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --sidebar-width: 72px; }
  .sidebar-logo h1,
  .sidebar-logo p,
  .nav-item span,
  .sidebar-nav .nav-section-label,
  .user-details { display: none; }
  .nav-item { justify-content: center; }
  .nav-item.active::before { display: none; }
  .page-content { padding: 20px 16px; }
  .top-header { padding: 0 20px; }
}

@media (max-width: 640px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-box { max-width: 100%; }
  .calendar-cell { min-height: 70px; padding: 6px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.text-sm { font-size: 12px; }
.text-muted { color: var(--gray-400); }
.fw-600 { font-weight: 600; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.w-full { width: 100%; }

/* ===== Loading Spinner ===== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
