/* =====================================================
   Coordinatra — Leave Management by Arsela Resources
   ===================================================== */

:root {
  --navy: #0D3B6E;
  --navy-light: #1a5490;
  --teal: #0EA5A0;
  --blue-accent: #3B82F6;
  --blue-hover: #2563EB;
  --page-bg: #f0f3f8;
  --white: #FFFFFF;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text-muted: #94a3b8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: var(--page-bg);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #1e293b;
  min-height: 100vh;
}

/* =====================================================
   Layout
   ===================================================== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-logo-box {
  background: #ffffff;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px 12px 4px;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  overflow: hidden;
}

.sidebar-logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: white;
  line-height: 1.2;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 12px 16px;
}

.sidebar-section-label {
  color: rgba(255,255,255,0.35);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: 0 16px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 2px 8px;
  border-radius: 8px;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.15s ease;
  text-decoration: none;
  position: relative;
}

.nav-item:hover {
  color: white;
  background: rgba(255,255,255,0.1);
}

.nav-item.active {
  color: white;
  background: rgba(14, 165, 160, 0.25);
  border-left: 3px solid var(--teal);
  padding-left: 9px;
}

.nav-item .nav-icon {
  width: 18px;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  background: #EF4444;
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.sidebar-user:hover { background: rgba(255,255,255,0.1); }

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.lg { width: 40px; height: 40px; font-size: 14px; }

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  color: white;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  text-transform: capitalize;
}

.sidebar-powered-by {
  margin: 8px 10px 12px;
  padding: 6px 4px;
  border-radius: 8px;
  background: rgba(0,0,0,0.18);
  text-align: center;
}

.sidebar-powered-by img {
  width: 100%;
  max-width: 200px;
  max-height: 60px;
  object-fit: contain;
  opacity: 0.95;
  border-radius: 6px;
}

/* Main content area */
.main-content {
  margin-left: 240px;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top bar */
.topbar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #0f172a;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-company {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}

/* Page content */
.page-content {
  padding: 24px;
  flex: 1;
}

/* =====================================================
   Cards
   ===================================================== */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.card-sm {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.card-subtitle {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Welcome hero card */
.hero-card {
  background: linear-gradient(135deg, #0D3B6E 0%, #1a5490 50%, #0EA5A0 100%);
  border-radius: 16px;
  padding: 24px;
  color: white;
  margin-bottom: 20px;
}

.hero-welcome {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  margin-bottom: 4px;
}

.hero-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.hero-meta {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Stat cards */
.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1;
}

/* Balance card */
.balance-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.balance-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.balance-type-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.balance-type-name {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.balance-progress-bar {
  height: 6px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.balance-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

.balance-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.balance-stat-item {
  text-align: center;
}

.balance-stat-label {
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.balance-stat-value {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2px;
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #0D3B6E 0%, #0EA5A0 100%);
  color: white;
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-secondary {
  background: white;
  color: #374151;
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: #f8fafc; }

.btn-danger {
  background: #FEE2E2;
  color: #DC2626;
}

.btn-danger:hover { background: #FECACA; }

.btn-success {
  background: #DCFCE7;
  color: #16A34A;
}

.btn-success:hover { background: #BBF7D0; }

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 8px;
}

.btn-lg {
  padding: 11px 22px;
  font-size: 15px;
  border-radius: 12px;
}

/* =====================================================
   Status Badges
   ===================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-pending { background: #FEF3C7; color: #D97706; }
.badge-approved { background: #DCFCE7; color: #16A34A; }
.badge-rejected { background: #FEE2E2; color: #DC2626; }
.badge-withdrawn { background: #F3F4F6; color: #6B7280; }
.badge-cancelled { background: #F3F4F6; color: #6B7280; }

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

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13.5px;
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.form-input:focus {
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13.5px;
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  background: white;
  transition: border-color 0.15s;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-select:focus {
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13.5px;
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  background: white;
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: border-color 0.15s;
}

.form-textarea:focus {
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* =====================================================
   Tables
   ===================================================== */
.table-container {
  overflow-x: auto;
}

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

thead th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}

tbody td {
  padding: 12px 12px;
  font-size: 13.5px;
  color: #1e293b;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

tbody tr:hover { background: #f8fafc; }
tbody tr:last-child td { border-bottom: none; }

/* =====================================================
   Calendar
   ===================================================== */
.calendar-container {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: white;
}

.calendar-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 13px;
  transition: all 0.15s;
}

.calendar-nav-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.calendar-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.calendar-view-tabs {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
}

.calendar-view-tab {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #64748b;
  transition: all 0.15s;
  border: none;
  background: transparent;
}

.calendar-view-tab.active {
  background: white;
  color: var(--navy);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Year View */
.year-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.month-mini {
  background: white;
  padding: 12px;
}

.month-mini-header {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
}

.month-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}

.month-mini-dow {
  font-size: 9px;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
  padding: 2px 0;
  text-transform: uppercase;
}

.month-mini-day {
  font-size: 10px;
  text-align: center;
  padding: 2px 1px;
  border-radius: 3px;
  cursor: pointer;
  line-height: 1.6;
  transition: background 0.1s;
  position: relative;
}

.month-mini-day:hover { background: #f0f9ff; }
.month-mini-day.weekend { color: #94a3b8; }
.month-mini-day.today { background: var(--blue-accent); color: white; font-weight: 700; border-radius: 50%; }
.month-mini-day.has-leave { position: relative; }
.month-mini-day.has-leave::after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal);
}

/* Month View */
.month-calendar {
  width: 100%;
}

.month-cal-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #fafafa;
  border-bottom: 1px solid var(--border);
}

.month-cal-dow {
  text-align: center;
  padding: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.month-cal-day {
  min-height: 100px;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 8px;
  cursor: pointer;
  transition: background 0.1s;
  position: relative;
}

.month-cal-day:hover { background: #f8fafc; }

.month-cal-day.other-month { background: #fafafa; }
.month-cal-day.other-month .day-num { color: #d1d5db; }

.month-cal-day.today .day-num {
  background: var(--blue-accent);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.month-cal-day.weekend { background: #fafafa; }

.day-num {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.day-event {
  display: block;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: white;
}

.day-event.pending { opacity: 0.7; }

.ph-badge {
  display: block;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  margin-bottom: 2px;
  background: #F0FDF4;
  color: #16A34A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Week View */
.week-view {
  overflow-x: auto;
}

.week-header {
  display: grid;
  grid-template-columns: 50px repeat(7, 1fr);
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}

.week-day-header {
  text-align: center;
  padding: 10px 4px;
  border-left: 1px solid var(--border-light);
}

.week-day-name {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
}

.week-day-date {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2px;
}

.week-day-date.today {
  background: var(--blue-accent);
  color: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto 0;
}

.week-day-col {
  min-height: 120px;
  border-left: 1px solid var(--border-light);
  padding: 6px;
}

.week-event {
  display: block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 4px;
  color: white;
}

/* =====================================================
   Modals
   ===================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  backdrop-filter: blur(2px);
}

.modal {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: modalIn 0.2s ease;
}

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

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}

.modal-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 14px;
  transition: all 0.15s;
}

.modal-close:hover { background: #f8fafc; color: #374151; }

.modal-body {
  padding: 20px 24px;
}

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

/* =====================================================
   Leave Request specific
   ===================================================== */
.segment-row {
  display: grid;
  grid-template-columns: 120px 1fr 80px;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 12px;
}

.segment-date {
  font-weight: 600;
  color: #374151;
  font-size: 11px;
}

.segment-holiday-badge {
  background: #DCFCE7;
  color: #16A34A;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 600;
  margin-left: 4px;
}

.segment-weekend-badge {
  background: #F3F4F6;
  color: #6B7280;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  font-weight: 600;
  margin-left: 4px;
}

/* =====================================================
   Toast notifications
   ===================================================== */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  min-width: 280px;
  max-width: 400px;
  pointer-events: all;
  animation: toastIn 0.25s ease;
}

.toast-success { border-left: 4px solid #10B981; }
.toast-error { border-left: 4px solid #EF4444; }
.toast-info { border-left: 4px solid var(--blue-accent); }
.toast-warning { border-left: 4px solid #F59E0B; }

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

/* =====================================================
   Loader / Empty states
   ===================================================== */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--blue-accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

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

.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-state-icon {
  font-size: 40px;
  color: #e2e8f0;
  margin-bottom: 12px;
}

.empty-state-title {
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.empty-state-desc {
  color: #94a3b8;
  font-size: 13px;
}

/* =====================================================
   Auth page
   ===================================================== */
/* =====================================================
   Auth — Split Panel Login (Costentra/Coordinatra style)
   ===================================================== */

.auth-page-split {
  min-height: 100vh;
  display: flex;
  background: #f0f3f8;
}

/* Left panel (form) */
.auth-left-panel {
  flex: 0 0 480px;
  width: 480px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  box-shadow: 4px 0 24px rgba(0,0,0,0.06);
  z-index: 1;
}

.auth-left-inner {
  width: 100%;
  max-width: 380px;
}

.auth-brand-row {
  margin-bottom: 36px;
}

.auth-welcome-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.auth-welcome-sub {
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 32px;
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  padding: 12px 24px;
  font-size: 15px;
}

.auth-footer-note {
  margin-top: 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
}

.auth-powered-by {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-powered-label {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Right panel (decorative) */
.auth-right-panel {
  flex: 1;
  background: linear-gradient(135deg, #0D3B6E 0%, #1a5490 40%, #0EA5A0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 40px;
}

.auth-right-panel::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(14,165,160,0.18);
  pointer-events: none;
}

.auth-right-panel::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}

.auth-right-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-right-oval {
  position: absolute;
  width: 340px;
  height: 440px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  transform: rotate(-15deg);
}

.auth-right-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 28px 24px;
  width: 300px;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.auth-right-card-header {
  margin-bottom: 16px;
}

.auth-right-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.auth-right-leave-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.auth-right-leave-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 12px;
}

.auth-right-leave-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.auth-right-leave-name {
  color: white;
  font-size: 12px;
  font-weight: 600;
}

.auth-right-leave-val {
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  margin-top: 2px;
}

.auth-right-new-btn {
  background: linear-gradient(135deg, #0D3B6E 0%, #0EA5A0 100%);
  color: white;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: default;
}

/* Sidebar Coordinatra logo */
.sidebar-coordinatra-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
}

/* Legacy auth (fallback) */
.auth-page {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
}

.auth-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
}

.auth-subtitle {
  color: #94a3b8;
  font-size: 13px;
}

/* =====================================================
   Tabs
   ===================================================== */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}

.tab {
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}

.tab:hover { color: #374151; }

.tab.active {
  color: var(--navy);
  border-bottom-color: var(--blue-accent);
}

/* =====================================================
   Responsive / Utilities
   ===================================================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-4 { margin-top: 16px; }

.text-sm { font-size: 12px; }
.text-muted { color: #94a3b8; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.divider {
  height: 1px;
  background: var(--border-light);
  margin: 16px 0;
}

/* Notification dot */
.notif-dot {
  position: relative;
}

.notif-dot::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: #EF4444;
  border-radius: 50%;
  border: 2px solid white;
}

/* Colour picker swatch */
.colour-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
}

/* =====================================================
   Mobile
   ===================================================== */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-240px); transition: transform 0.25s ease; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .topbar { position: sticky; top: 0; }
  .year-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .month-cal-body .month-cal-day { min-height: 60px; }

  /* Auth split panel on mobile: stack vertically */
  .auth-page-split { flex-direction: column; }
  .auth-left-panel { flex: 0 0 auto; width: 100%; padding: 40px 24px; box-shadow: none; }
  .auth-right-panel { display: none; }

  .mobile-topbar {
    display: flex;
    background: var(--navy);
    height: 56px;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 200;
  }
}

@media (min-width: 769px) {
  .mobile-topbar { display: none !important; }
}

/* Responsive auth at medium sizes */
@media (min-width: 769px) and (max-width: 1100px) {
  .auth-left-panel { flex: 0 0 400px; width: 400px; padding: 40px 32px; }
  .auth-right-card { width: 260px; }
}
