/* ==========================================================================
   AzVehicle - MODERN GLOBAL STYLESHEET (azvehicle-style.css)
   Sistem Pengurusan Kenderaan (AzVehicle Clean Crisp UI)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  /* Palet Warna Utama: Hitam, Biru & Putih */
  --primary: #2563eb;             /* Biru Modern */
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.15);

  /* Latar Belakang & Permukaan */
  --bg-main: #f8fafc;
  --surface: #ffffff;
  --surface-hover: #f1f5f9;
  --border-dark: #0f172a;        /* Border hitam tegas */
  --border-light: #e2e8f0;        /* Garis pembatas lembut */

  /* Tipografi */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Warna Status */
  --pending: #d97706;            /* Kuning / Amber pekat */
  --pending-bg: #fffbeb;
  --pending-border: #fde68a;

  --completed: #16a34a;          /* Hijau pekat */
  --completed-bg: #f0fdf4;
  --completed-border: #bbf7d0;

  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;

  --radius: 10px;
  --radius-sm: 6px;
  --radius-pill: 9999px;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   1. STRUKTUR SIDEBAR, TOPBAR & FOOTER LAYOUT
   ========================================================================== */
.layout-body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-main);
  min-height: 100vh;
}

.app-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
  transition: all 0.3s ease;
}

/* Sidebar */
.app-sidebar {
  width: 260px;
  background-color: #000000;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-right: 1.5px solid var(--border-dark);
}

.sidebar-header {
  height: 65px;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #ffffff;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.sidebar-close-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.25rem;
  cursor: pointer;
}

.sidebar-user-card {
  margin: 1.25rem 1rem 0.5rem 1rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 135px;
}

.user-role {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-section-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  padding: 0.75rem 0.5rem 0.35rem 0.5rem;
  font-weight: 800;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.sidebar-link i {
  width: 20px;
  font-size: 1rem;
  text-align: center;
  color: #94a3b8;
}

.sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

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

.sidebar-link.active i {
  color: #ffffff;
}

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

.sidebar-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-logout-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Main Area & Topbar */
.app-main-area {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

.app-topbar {
  height: 65px;
  background: #ffffff;
  border-bottom: 1.5px solid var(--border-dark);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.topbar-toggle-btn {
  background: #ffffff;
  border: 1.5px solid var(--border-dark);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #000000;
  cursor: pointer;
}

.topbar-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: #000000;
}

.topbar-date {
  font-size: 0.82rem;
  color: #000000;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-dark);
}

.app-footer {
  margin-top: auto;
  background: #ffffff;
  border-top: 1.5px solid var(--border-dark);
  padding: 1rem 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--completed);
  display: inline-block;
  box-shadow: 0 0 0 2px var(--border-dark);
}

.app-wrapper.sidebar-collapsed .app-sidebar {
  transform: translateX(-100%);
}

.app-wrapper.sidebar-collapsed .app-main-area {
  margin-left: 0;
}

/* Impersonation Banner */
.impersonation-bar {
  background: var(--pending);
  color: #ffffff;
  padding: 0.65rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  border-bottom: 1.5px solid var(--border-dark);
  position: sticky;
  top: 0;
  z-index: 50;
}

.impersonation-leave-btn {
  background: #000000;
  color: #ffffff;
  border: 1.5px solid #ffffff;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
}

.impersonation-leave-btn:hover {
  background: #ffffff;
  color: #000000;
}

/* ==========================================================================
   2. KONTENA & KAD METRIK STATISTIK
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1.5px solid var(--border-dark);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 0.25rem;
  line-height: 1;
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1.5px solid var(--border-dark);
}

/* ==========================================================================
   3. BORANG CARIAN, PENAPIS & INPUT KAWALAN
   ========================================================================== */
/* ==========================================================================
   CLEAN & UNIFIED FILTER BAR (DESKTOP & MOBILE)
   ========================================================================== */
.filter-card {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-dark);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.filter-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.filter-search {
  flex: 1;
  min-width: 220px;
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.filter-role {
  width: 180px;
}

/* Ensure equal height and alignment across all filter elements */
.filter-form .input-control,
.filter-form .select-control,
.filter-form .btn {
  height: 42px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
}

/* Mobile responsive layout */
@media (max-width: 768px) {
  .filter-form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .filter-search {
    width: 100%;
  }

  .filter-controls {
    width: 100%;
    display: flex;
    gap: 0.5rem;
  }

  .filter-role {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .filter-btn,
  .filter-reset-btn {
    flex-shrink: 0;
  }
}

.input-control, .select-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border-dark);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  background-color: #ffffff;
  color: var(--text-main);
  transition: border-color 0.15s ease;
}

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

textarea.input-control {
  resize: vertical;
  min-height: 85px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon-left {
  position: absolute;
  left: 0.85rem;
  color: var(--text-light);
  font-size: 0.95rem;
  pointer-events: none;
}

.input-control.has-icon-left {
  padding-left: 2.5rem;
}

.input-control.has-icon-right {
  padding-right: 2.6rem;
}

.password-toggle-btn {
  position: absolute;
  right: 0.65rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.password-toggle-btn:hover {
  color: var(--primary);
}

/* ==========================================================================
   4. BUTANG & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid var(--border-dark);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary { 
  background: var(--primary);
  color: #ffffff !important; 
  border-color: var(--border-dark);
}

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

.btn-outline { 
  border: 1.5px solid var(--border-dark); 
  background: #ffffff; 
  color: var(--text-main); 
}

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

.btn-warning {
  background: var(--pending);
  color: #ffffff !important;
  border-color: var(--border-dark);
}

.btn-warning:hover {
  background: #b45309;
}

.btn-danger { 
  background: #ffffff; 
  color: #000000; 
  border: 1.5px solid var(--border-dark);
}

.btn-danger:hover {
  background: #000000;
  color: #ffffff;
}

.btn-sm { 
  padding: 0.35rem 0.7rem; 
  font-size: 0.8rem; 
  border-radius: var(--radius-sm);
}

.btn-full {
  width: 100%;
}

/* Badges Status */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  border: 1.5px solid var(--border-dark);
}

.badge-pending { 
  background: var(--pending-bg) !important; 
  color: var(--pending) !important; 
  border-color: var(--border-dark) !important;
}

.badge-completed { 
  background: var(--completed-bg) !important; 
  color: var(--completed) !important; 
  border-color: var(--border-dark) !important;
}

.badge-admin {
  background: #f5f3ff !important;
  color: #7c3aed !important;
  border-color: var(--border-dark) !important;
}

.badge-user {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border-color: var(--border-dark) !important;
}

/* ==========================================================================
   5. JADUAL DENGAN BORDER HITAM KEMAS
   ========================================================================== */
.table-responsive {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-dark);
  overflow-x: auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  background: #f8fafc;
  padding: 0.85rem 1rem;
  font-size: 0.78rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  border: 1.5px solid var(--border-dark);
  border-top: none;
}

.custom-table th:first-child { border-left: none; }
.custom-table th:last-child { border-right: none; }

.custom-table td {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border-dark);
  font-size: 0.88rem;
  vertical-align: middle;
  background-color: #ffffff;
  color: var(--text-main);
}

.custom-table tr td:first-child { border-left: none; }
.custom-table tr td:last-child { border-right: none; }
.custom-table tr:last-child td { border-bottom: none; }

.custom-table tbody tr:hover td {
  background-color: var(--primary-light);
}

.mobile-card-list {
  display: none;
}

/* ==========================================================================
   6. BORANG & FORM CARD
   ========================================================================== */
.form-card {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-dark);
  padding: 1.75rem;
  box-shadow: 4px 4px 0px var(--border-dark);
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-error {
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.35rem;
  display: block;
}

/* ==========================================================================
   7. PAGINATION & ALERTS
   ========================================================================== */
.alert {
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1.5px solid var(--border-dark);
}

.alert-success { 
  background: var(--primary-light); 
  color: var(--primary); 
}

.alert-danger { 
  background: #fff1f2; 
  color: #be123c; 
}

/* ==========================================================================
   8. REKA BENTUK MODUL LOG MASUK (LOGIN DESIGN)
   ========================================================================== */
.login-wrapper {
  max-width: 420px;
  margin: 3.5rem auto;
  width: 100%;
  padding: 0 1rem;
}

.login-card-backdrop {
  position: relative;
  background: #ffffff;
  padding: 8px;
  border-radius: calc(var(--radius) + 6px);
  border: 1.5px solid var(--border-dark);
  box-shadow: 6px 6px 0px var(--border-dark);
}

.login-card {
  background: #ffffff;
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-dark);
  position: relative;
  z-index: 2;
}

.login-icon-box {
  width: 54px;
  height: 54px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1.5px solid var(--border-dark);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   9. MEDIA QUERIES (RESPONSIF MOBILE)
   ========================================================================== */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 95;
}

.sidebar-backdrop.active {
  display: block;
}

@media (max-width: 992px) {
  .app-sidebar {
    transform: translateX(-100%);
  }
  .sidebar-close-btn {
    display: inline-block;
  }
  .app-main-area {
    margin-left: 0;
  }
  .app-wrapper.sidebar-mobile-open .app-sidebar {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .table-responsive {
    display: none;
  }

  .mobile-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .mobile-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 1rem;
    border: 1.5px solid var(--border-dark);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  .mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.6rem;
    margin-bottom: 0.6rem;
  }

  .mobile-field {
    font-size: 0.84rem;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .mobile-field strong {
    color: var(--text-main);
    font-weight: 700;
    min-width: 80px;
  }

  .mobile-field-value {
    text-align: right;
    color: var(--text-main);
    font-weight: 500;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 1rem;
  }

  .login-wrapper {
    margin: 2rem auto;
  }

  .login-card {
    padding: 1.5rem 1.25rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .form-card {
    padding: 1.25rem 1rem;
  }

  .form-row-2 {
    grid-template-columns: 1fr !important;
    gap: 0;
  }

  .topbar-date {
    display: none;
  }
}

/* ==========================================================================
   MOBILE-SPECIFIC REFINEMENTS FOR USER MANAGEMENT
   ========================================================================== */
.user-filter-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr auto auto;
  gap: 0.75rem;
  align-items: center;
}

.mobile-actions-row {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.85rem;
  border-top: 1px solid var(--border-light);
  padding-top: 0.75rem;
}

.user-pagination-wrapper {
  margin-top: 1.5rem;
  padding-top: 0.5rem;
}

@media (max-width: 640px) {
  /* Stack header button neatly */
  .page-header-flex {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  .add-user-btn {
    width: 100%;
    justify-content: center;
  }

  /* Two-row mobile filter: Full-width search on top, dropdown + filter on bottom */
  .user-filter-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .filter-secondary-row {
    display: flex;
    gap: 0.5rem;
    width: 100%;
  }

  .filter-secondary-row .select-control {
    flex: 1;
    min-width: 0;
  }

  .filter-secondary-row .btn {
    flex-shrink: 0;
  }

  /* Full touch targets for mobile card buttons */
  .mobile-actions-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
    gap: 0.4rem;
    width: 100%;
  }

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

  .mobile-actions-row .btn {
    width: 100%;
    justify-content: center;
    padding: 0.5rem 0.4rem;
  }

  /* Spacing for 'Showing 1 to X users' counter */
  .user-pagination-wrapper {
    margin-top: 1.25rem;
    text-align: center;
  }
}

/* ==========================================================================
   GERAN PREVIEW MODAL
   ========================================================================== */
.geran-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.geran-modal-overlay.active {
  display: flex;
}

.geran-modal-content {
  background: #ffffff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 780px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--border-dark);
  box-shadow: 0 25px 35px -5px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: modalFadeIn 0.18s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.geran-modal-header {
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid var(--border-dark);
  background: var(--bg-main);
}

.geran-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a10;
  min-height: 380px;
}

.geran-modal-body img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-dark);
  background: #ffffff;
}

.geran-modal-body iframe {
  width: 100%;
  height: 68vh;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.geran-modal-footer {
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1.5px solid var(--border-dark);
  background: var(--bg-main);
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .geran-modal-content {
    max-height: 95vh;
  }
  .geran-modal-body {
    min-height: 300px;
    padding: 0.5rem;
  }
  .geran-modal-body iframe {
    height: 60vh;
  }
}