/* Booking Confirmation & Payment Authorization System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #DBEAFE;
  --secondary: #0F172A;
  --success: #22C55E;
  --success-light: #DCFCE7;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --danger: #EF4444;
  --danger-light: #FEE2E2;
  --info: #3B82F6;
  --info-light: #EFF6FF;
  --background: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --text: #0F172A;
  --text-muted: #64748B;
  --sidebar-width: 260px;
  --header-height: 64px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --radius: 10px;
  --radius-lg: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: var(--primary); }
a:hover { color: var(--primary-dark); }

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  background: linear-gradient(135deg, #EFF6FF 0%, var(--background) 50%, #E0E7FF 100%);
}

.login-illustration {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: linear-gradient(160deg, var(--primary) 0%, #1E40AF 100%);
  position: relative;
  overflow: hidden;
}

.login-illustration::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  top: -100px;
  right: -100px;
}

.login-illustration::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  bottom: -80px;
  left: -80px;
}

.login-illustration-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 420px;
}

.login-illustration-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.login-illustration-content p {
  opacity: 0.9;
  font-size: 1.05rem;
  line-height: 1.7;
}

.login-illustration-icons {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.login-illustration-icons .icon-box {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.login-form-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.login-logo img {
  width: 48px;
  height: 48px;
}

.login-logo span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
}

.login-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.login-card .subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-label {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.form-control, .form-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 500;
  border-radius: 8px;
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* ===== DASHBOARD LAYOUT ===== */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--secondary);
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand img { width: 36px; height: 36px; }

.sidebar-brand span {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

.sidebar-brand small {
  display: block;
  font-size: 0.7rem;
  opacity: 0.6;
  font-weight: 400;
}

.sidebar-nav {
  padding: 1rem 0.75rem;
  flex: 1;
}

.sidebar-nav .nav-section {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  padding: 0.75rem 0.75rem 0.5rem;
  font-weight: 600;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  color: rgba(255,255,255,0.7);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2px;
  transition: all 0.2s;
}

.sidebar-nav .nav-link i {
  width: 20px;
  text-align: center;
  font-size: 0.95rem;
}

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

.sidebar-nav .nav-link.active {
  background: var(--primary);
  color: #fff;
}

.sidebar-nav .nav-link .badge {
  margin-left: auto;
  font-size: 0.65rem;
}

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

.sidebar-footer .nav-link {
  color: rgba(255,255,255,0.5);
}

.sidebar-footer .nav-link:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

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

.top-header {
  height: var(--header-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text);
  cursor: pointer;
  padding: 0.25rem;
}

.breadcrumb-nav {
  margin: 0;
  font-size: 0.875rem;
}

.breadcrumb-nav .breadcrumb-item a {
  color: var(--text-muted);
}

.breadcrumb-nav .breadcrumb-item.active {
  color: var(--text);
  font-weight: 500;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-search {
  position: relative;
}

.header-search input {
  width: 240px;
  padding: 0.5rem 0.875rem 0.5rem 2.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  background: var(--background);
}

.header-search i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.header-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
}

.header-icon-btn:hover {
  background: var(--background);
  color: var(--primary);
}

.header-icon-btn .notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--surface);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.user-menu:hover { background: var(--background); }

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
}

.user-info span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
}

.user-info small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.page-content {
  padding: 1.5rem;
  flex: 1;
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.page-header p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9rem;
}

/* ===== STAT CARDS ===== */
.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  height: 100%;
}

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

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.stat-card .stat-icon.primary { background: var(--primary-light); color: var(--primary); }
.stat-card .stat-icon.success { background: var(--success-light); color: var(--success); }
.stat-card .stat-icon.warning { background: var(--warning-light); color: var(--warning); }
.stat-card .stat-icon.danger { background: var(--danger-light); color: var(--danger); }
.stat-card .stat-icon.info { background: var(--info-light); color: var(--info); }
.stat-card .stat-icon.secondary { background: #F1F5F9; color: var(--secondary); }

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0.75rem 0 0.15rem;
}

.stat-card .stat-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.stat-card .stat-change {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ===== CARDS ===== */
.dashboard-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.dashboard-card .card-header {
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-card .card-header h5 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.dashboard-card .card-body {
  padding: 1.25rem;
}

/* ===== TABLES ===== */
.table-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-toolbar {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

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

.table-search input {
  width: 100%;
  padding: 0.5rem 0.875rem 0.5rem 2.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
}

.table-search i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.table-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.table-filters .form-select {
  font-size: 0.85rem;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  min-width: 140px;
}

.data-table {
  margin: 0;
  font-size: 0.875rem;
}

.data-table thead th {
  background: var(--background);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  white-space: nowrap;
}

.data-table tbody td {
  padding: 0.875rem 1.25rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.data-table tbody tr:hover {
  background: #FAFBFC;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.table-footer {
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== STATUS BADGES ===== */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

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

.badge-status.draft { background: #F1F5F9; color: #475569; }
.badge-status.draft::before { background: #94A3B8; }

.badge-status.sent { background: var(--info-light); color: #1D4ED8; }
.badge-status.sent::before { background: var(--info); }

.badge-status.viewed { background: #F0F9FF; color: #0369A1; }
.badge-status.viewed::before { background: #0EA5E9; }

.badge-status.signed, .badge-status.completed { background: var(--success-light); color: #15803D; }
.badge-status.signed::before, .badge-status.completed::before { background: var(--success); }

.badge-status.pending { background: var(--warning-light); color: #B45309; }
.badge-status.pending::before { background: var(--warning); }

.badge-status.rejected, .badge-status.cancelled { background: var(--danger-light); color: #B91C1C; }
.badge-status.rejected::before, .badge-status.cancelled::before { background: var(--danger); }

.badge-status.expired { background: #FEF2F2; color: #991B1B; }
.badge-status.expired::before { background: #DC2626; }

.badge-status.active { background: var(--success-light); color: #15803D; }
.badge-status.active::before { background: var(--success); }

.badge-status.inactive, .badge-status.disabled { background: var(--danger-light); color: #B91C1C; }
.badge-status.inactive::before, .badge-status.disabled::before { background: var(--danger); }

.badge-status.archived { background: #F1F5F9; color: #64748B; }
.badge-status.archived::before { background: #94A3B8; }

/* ===== ACTIVITY FEED ===== */
.activity-item {
  display: flex;
  gap: 0.875rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
}

.activity-item:last-child { border-bottom: none; }

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.activity-icon.sent { background: var(--info-light); color: var(--info); }
.activity-icon.signed { background: var(--success-light); color: var(--success); }
.activity-icon.viewed { background: var(--warning-light); color: var(--warning); }
.activity-icon.created { background: var(--primary-light); color: var(--primary); }
.activity-icon.reminder { background: #F3E8FF; color: #7C3AED; }

.activity-content p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
}

.activity-content small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ===== FORMS ===== */
.form-section {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.form-section-header {
  padding: 1rem 1.25rem;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-section-header .section-number {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.form-section-header h5 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-section-body {
  padding: 1.25rem;
}

.readonly-text-block {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.passenger-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.passenger-card .remove-passenger {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.85rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: sticky;
  bottom: 1rem;
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

/* ===== DOCUMENT PREVIEW ===== */
.document-preview {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
}

.document-preview .doc-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.document-preview .doc-logo img {
  width: 64px;
  height: 64px;
}

.document-preview .doc-company {
  text-align: center;
  margin-bottom: 2rem;
}

.document-preview .doc-company h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.document-preview .doc-title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary);
}

.document-preview .doc-section {
  margin-bottom: 1.75rem;
}

.document-preview .doc-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.document-preview .doc-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2rem;
  font-size: 0.9rem;
}

.document-preview .doc-info-grid .label {
  color: var(--text-muted);
  font-weight: 500;
}

.document-preview .doc-table {
  width: 100%;
  font-size: 0.85rem;
  border-collapse: collapse;
}

.document-preview .doc-table th,
.document-preview .doc-table td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.document-preview .doc-table th {
  background: var(--background);
  font-weight: 600;
}

.document-preview .signature-area {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 2px dashed var(--border);
  border-radius: 8px;
  text-align: center;
}

.document-preview .terms-list {
  font-size: 0.85rem;
  padding-left: 1.25rem;
}

.document-preview .terms-list li {
  margin-bottom: 0.5rem;
}

/* ===== CUSTOMER SIGN PAGE ===== */
.sign-page {
  min-height: 100vh;
  background: var(--background);
}

.sign-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sign-header .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--secondary);
}

.sign-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.sign-document {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.sign-actions-panel {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: sticky;
  bottom: 1rem;
}

.signature-tabs .nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border: none;
  padding: 0.5rem 1rem;
}

.signature-tabs .nav-link.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  background: transparent;
}

.signature-canvas-wrapper {
  border: 2px dashed var(--border);
  border-radius: 8px;
  background: #FAFBFC;
  position: relative;
}

#signatureCanvas {
  width: 100%;
  height: 150px;
  cursor: crosshair;
  display: block;
}

.canvas-clear-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.typed-signature-input {
  font-family: 'Brush Script MT', 'Segoe Script', cursive;
  font-size: 2rem;
  text-align: center;
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  background: #FAFBFC;
}

.signature-upload-area {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  background: #FAFBFC;
  cursor: pointer;
  transition: border-color 0.2s;
}

.signature-upload-area:hover {
  border-color: var(--primary);
}

/* ===== SUCCESS PAGES ===== */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #EFF6FF 0%, var(--background) 100%);
  padding: 2rem;
}

.success-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--success-light);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
}

.success-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.success-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.success-details {
  background: var(--background);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  text-align: left;
}

.success-details .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

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

.success-details .detail-label { color: var(--text-muted); font-weight: 500; }
.success-details .detail-value { font-weight: 600; }

.success-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== NOTIFICATIONS ===== */
.notification-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.notification-item:hover { background: #FAFBFC; }
.notification-item.unread { background: #F0F7FF; }

.notification-item .notif-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-item .notif-content { flex: 1; }
.notification-item .notif-content h6 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.notification-item .notif-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.notification-item .notif-meta {
  text-align: right;
  flex-shrink: 0;
}

.notification-item .notif-meta small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ===== SETTINGS ===== */
.settings-nav {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 0.5rem;
}

.settings-nav .nav-link {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.65rem 1rem;
  border-radius: 8px;
}

.settings-nav .nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
}

.settings-nav .nav-link i {
  width: 20px;
  margin-right: 0.5rem;
}

.logo-upload-area {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.logo-upload-area:hover { border-color: var(--primary); }

/* ===== QUICK ACTIONS ===== */
.quick-action-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
  color: var(--text);
  height: 100%;
}

.quick-action-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--text);
}

.quick-action-card .qa-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.quick-action-card h6 {
  font-weight: 600;
  margin-bottom: 0.15rem;
  font-size: 0.9rem;
}

.quick-action-card small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ===== AGENT PERFORMANCE ===== */
.agent-performance-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.agent-performance-item:last-child { border-bottom: none; }

.agent-performance-item .agent-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
}

.agent-performance-item .progress {
  height: 6px;
  border-radius: 3px;
  margin-top: 0.35rem;
}

/* ===== MODALS ===== */
.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}

.modal-body { padding: 1.5rem; }

.modal-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
}

.custom-toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 300px;
  animation: slideIn 0.3s ease;
}

.custom-toast.success { border-left: 4px solid var(--success); }
.custom-toast.error { border-left: 4px solid var(--danger); }
.custom-toast.info { border-left: 4px solid var(--info); }
.custom-toast.warning { border-left: 4px solid var(--warning); }

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

/* ===== PAGINATION ===== */
.pagination .page-link {
  border-radius: 6px;
  margin: 0 2px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
}

.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
}

/* ===== CHART CONTAINER ===== */
.chart-container {
  position: relative;
  height: 280px;
}

/* ===== OVERLAY ===== */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 1035;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1199.98px) {
  .stat-card .stat-value { font-size: 1.5rem; }
}

@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .sidebar-overlay.show {
    display: block;
  }

  .main-content {
    margin-left: 0;
  }

  .sidebar-toggle {
    display: block;
  }

  .header-search { display: none; }

  .login-illustration {
    display: none;
  }

  .document-preview {
    padding: 1.5rem;
  }

  .document-preview .doc-info-grid {
    grid-template-columns: 1fr;
  }

  .user-info { display: none; }
}

@media (max-width: 767.98px) {
  .page-content { padding: 1rem; }

  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .table-search { max-width: 100%; }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .success-card { padding: 2rem 1.5rem; }

  .sign-document { padding: 1.5rem; }

  .table-footer {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .login-card { padding: 1.75rem; }

  .stat-card { padding: 1rem; }
}
