/* ==========================================================================
   MAUA ADMIN - Sidebar Layout Styles
   ========================================================================== */

/* Layout Container */
.admin-layout {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
}

/* Sidebar Styling */
.admin-sidebar {
  width: 260px;
  background-color: #f8fafc;
  border-right: var(--card-border);
  display: none; /* Hidden by default; displayed only for logged-in users */
  flex-direction: column;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s;
}

[data-theme="dark"] .admin-sidebar {
  background-color: #0b1329;
}

.admin-layout.has-sidebar .admin-sidebar {
  display: flex;
}

/* Sidebar Brand Header */
.sidebar-brand {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  border-bottom: var(--card-border);
}

.sidebar-brand .brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.sidebar-brand .brand-icon {
  font-size: 1.25rem;
  color: var(--primary-color);
}

.sidebar-brand .brand-text {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary-color);
  letter-spacing: 1px;
}

.sidebar-top-links {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.85rem 0.8rem 0.75rem;
  border-bottom: var(--card-border);
}

.sidebar-top-link {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 0.16rem;
  min-height: 72px;
  padding: 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  text-align: left;
  color: var(--text-color) !important;
  background-color: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar-top-link:hover {
  transform: translateY(-1px);
  background-color: rgba(227, 141, 3, 0.08);
  border-color: rgba(227, 141, 3, 0.2);
  color: var(--primary-color) !important;
}

.sidebar-top-link .icon {
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(227, 141, 3, 0.12);
  color: var(--primary-color);
  font-size: 0.9rem;
}

.sidebar-top-link strong {
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.15;
}

.sidebar-top-link small {
  font-size: 0.66rem;
  color: #64748b;
  line-height: 1.1;
}

[data-theme="dark"] .sidebar-top-link {
  background-color: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .sidebar-top-link small {
  color: #94a3b8;
}

@media screen and (max-width: 1023px) {
  .sidebar-top-links {
    grid-template-columns: 1fr;
  }
}

/* Close button inside sidebar on mobile */
.sidebar-close-btn {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1.35rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  display: none; /* Desktop hidden */
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.sidebar-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .sidebar-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Navigation Links */
.sidebar-menu {
  flex: 1;
  padding: 0.85rem 0.6rem;
  overflow-y: auto;
}

.sidebar-menu .menu-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #94a3b8;
  margin-bottom: 0.5rem;
  padding-left: 0.6rem;
  font-weight: 700;
}

.sidebar-menu .menu-list a {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--text-color) !important;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  margin-bottom: 0.15rem;
  border-bottom: none !important;
}

.sidebar-menu .menu-list a:hover {
  background-color: rgba(227, 141, 3, 0.08) !important;
  color: var(--primary-color) !important;
}

.sidebar-menu .menu-list a.is-active {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
}

.sidebar-menu .menu-list a .icon {
  margin-right: 0.75rem;
  font-size: 1rem;
  width: 1.5rem;
  display: inline-flex;
  justify-content: center;
}

/* Grid-based Navigation Menu */
.sidebar-menu .menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0 0.2rem;
  margin-bottom: 0.85rem;
  list-style: none;
}

.sidebar-menu .menu-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.sidebar-menu .menu-grid li {
  margin: 0;
}

.sidebar-menu .menu-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.15rem !important;
  border-radius: 8px;
  text-align: center;
  font-size: 0.65rem !important;
  font-weight: 700;
  color: var(--text-color) !important;
  background-color: rgba(0, 0, 0, 0.02) !important;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  min-height: 58px;
  margin-bottom: 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

[data-theme="dark"] .sidebar-menu .menu-grid a {
  border-color: rgba(255, 255, 255, 0.05) !important;
  background-color: rgba(255, 255, 255, 0.02) !important;
}

.sidebar-menu .menu-grid a:hover {
  background-color: rgba(227, 141, 3, 0.08) !important;
  color: var(--primary-color) !important;
  border-color: rgba(227, 141, 3, 0.2) !important;
}

.sidebar-menu .menu-grid a.is-active {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
}

.sidebar-menu .menu-grid a .icon {
  margin-right: 0 !important;
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
  width: auto;
  height: auto;
  display: inline-flex;
}

.sidebar-menu .menu-grid a span:not(.icon) {
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.1;
  display: block;
}

/* Sidebar Footer (Integrated Copyright & Theme Toggle) */
.sidebar-footer {
  padding: 1.25rem 1rem;
  border-top: var(--card-border);
  background-color: rgba(0, 0, 0, 0.01);
}

[data-theme="dark"] .sidebar-footer {
  background-color: rgba(255, 255, 255, 0.01);
}

.sidebar-footer .footer-text {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.5;
  margin-top: 0.75rem;
  text-align: center;
}

.sidebar-footer .footer-text a {
  font-weight: 700;
  text-decoration: none;
}

/* Theme Toggle button in Sidebar */
.theme-toggle-btn-sidebar {
  justify-content: center !important;
  font-weight: 600 !important;
  border: var(--card-border) !important;
  color: var(--text-color) !important;
  width: 100%;
}

.theme-toggle-btn-sidebar:hover {
  background-color: rgba(227, 141, 3, 0.08) !important;
  color: var(--primary-color) !important;
}

/* Main Content Wrapper */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-left: 0; /* Default for mobile/login */
  transition: margin-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: var(--bg-color);
  width: 100%;
}

/* Adjust main wrapper when sidebar is docked (on desktop when authenticated) */
@media screen and (min-width: 1024px) {
  .admin-layout.has-sidebar .main-wrapper {
    margin-left: 260px;
    width: calc(100% - 260px);
  }
  .admin-layout.has-sidebar .admin-sidebar {
    transform: translateX(0) !important;
  }
}

/* Mobile Top Header */
.mobile-header {
  height: 52px;
  background-color: var(--nav-bg);
  border-bottom: var(--card-border);
  display: none; /* Hidden by default; displayed only for logged-in users */
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 900;
}

.admin-layout.has-sidebar .mobile-header {
  display: flex;
}

.mobile-header .hamburger-btn {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.mobile-header .hamburger-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .mobile-header .hamburger-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.mobile-header .mobile-brand-title {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary-color);
  letter-spacing: 0.5px;
}

/* Sidebar overlay backdrop on mobile */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 950;
  transition: opacity 0.3s ease;
}

/* Hide mobile header on desktop */
@media screen and (min-width: 1024px) {
  .mobile-header {
    display: none !important;
  }
}

/* Responsive sidebar drawer for mobile */
@media screen and (max-width: 1023px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.is-active {
    transform: translateX(0) !important;
  }
  .sidebar-close-btn {
    display: inline-flex; /* Show only on mobile */
  }
}

/* Layout for login page */
.main-content {
  flex: 1;
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.main-content.login-view {
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top right, rgba(227, 141, 3, 0.04), transparent 40%),
              radial-gradient(circle at bottom left, rgba(227, 141, 3, 0.04), transparent 40%),
              var(--bg-color);
}

.main-content.login-view > div {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.main-content.login-view #content-area {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.login-card {
  max-width: 440px;
  width: 100%;
  border: var(--card-border) !important;
  background-color: var(--card-bg) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03) !important;
}

[data-theme="dark"] .login-card {
  box-shadow: 0 4px 20px rgba(0,0,0,0.2) !important;
}

/* Ensure smooth loading fade transitions */
.main-content > div {
  width: 100%;
}

/* ==========================================================================
   DELIVERIES MAP WORKSPACE (Full-Screen Dispatch Layout)
   ========================================================================== */

.delivery-workspace {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  z-index: 1;
}

#admin-delivery-map {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* Floating Control Panel overlay */
.delivery-control-panel {
  position: absolute;
  z-index: 10;
  background-color: rgba(var(--card-bg-raw), 0.94) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--card-border) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .delivery-control-panel {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  background-color: rgba(15, 23, 42, 0.92) !important;
}

/* Responsive sizing for floating panel */
@media screen and (min-width: 1024px) {
  .delivery-control-panel {
    top: 20px;
    left: 20px;
    bottom: 20px;
    width: 440px;
    max-height: calc(100vh - 40px); /* height accounting for margin */
    border-radius: 12px;
    padding: 1.5rem !important;
  }
}

@media screen and (max-width: 1023px) {
  .delivery-control-panel {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-height: 48%;
    border-radius: 12px;
    padding: 1rem !important;
  }
  
  .delivery-workspace {
    top: 0;
    height: 100%;
  }
}

/* Scrollable contents inside overlay panel */
.delivery-panel-scrollable {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 2px;
}

/* Full Screen overrides for content-area when map is active */
.admin-layout:has(.delivery-workspace) #content-area {
  border: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  height: 100vh;
  max-width: 100% !important;
}

@media screen and (max-width: 1023px) {
  .admin-layout:has(.delivery-workspace) #content-area {
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    height: calc(100vh - 52px);
  }
}

/* ==========================================================================
   TAB SWITCH LOADING TRANSITION
   Sidebar navigation swaps #admin-main-slot's content via Alpine AJAX; these
   rules give that swap a visible loading state instead of an instant cut.
   ========================================================================== */

.global-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1000;
  background-color: rgba(227, 141, 3, 0.25);
  overflow: hidden;
}

.global-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background-color: var(--primary-color);
  animation: admin-progress-slide 1s ease-in-out infinite;
}

@keyframes admin-progress-slide {
  0%   { left: -30%; }
  100% { left: 100%; }
}

#admin-main-slot {
  transition: opacity 0.15s ease;
}

#admin-main-slot.is-transitioning {
  opacity: 0.4;
  pointer-events: none;
}

/* ==========================================================================
   COMPACT DENSITY OVERRIDES
   Admin views reuse a handful of Bulma spacing helpers (mb-4, p-5, etc.) as
   the de-facto section/card rhythm across every view partial. Scoping the
   overrides to .admin-layout tightens that shared rhythm without touching
   the store/vendor/driver portals, which use the same Bulma helper classes.
   ========================================================================== */

.admin-layout .mb-5 { margin-bottom: 0.9rem !important; }
.admin-layout .mb-4 { margin-bottom: 0.65rem !important; }
.admin-layout .mb-3 { margin-bottom: 0.5rem !important; }
.admin-layout .mt-5 { margin-top: 0.9rem !important; }
.admin-layout .mt-4 { margin-top: 0.65rem !important; }
.admin-layout .pb-3 { padding-bottom: 0.5rem !important; }
.admin-layout .p-6 { padding: 1.25rem !important; }
.admin-layout .p-5 { padding: 1rem !important; }
.admin-layout .p-4 { padding: 0.65rem !important; }
.admin-layout .p-3 { padding: 0.5rem !important; }

/* Tighter column gutters so multi-column filter bars & stat rows take less
   horizontal/vertical space */
.admin-layout .columns:not(.is-mobile) {
  margin-left: -0.5rem !important;
  margin-right: -0.5rem !important;
  margin-top: -0.5rem !important;
}
.admin-layout .columns:not(.is-mobile) > .column {
  padding: 0.5rem !important;
}

/* Denser titles — admin views pack a title + subtitle into every header */
.admin-layout .title.is-3 { font-size: 1.5rem !important; }
.admin-layout .title.is-4 { font-size: 1.2rem !important; }
.admin-layout .title.is-6 { font-size: 0.95rem !important; }

/* Premium Modern Table Styling */
.admin-layout .table-container {
  background: var(--card-bg) !important;
  border: var(--card-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden !important;
  margin-bottom: 1.5rem !important;
}

.admin-layout .table {
  width: 100% !important;
  border-collapse: collapse !important;
  background: transparent !important;
  margin-bottom: 0 !important;
}

.admin-layout .table th {
  background: rgba(0, 0, 0, 0.02) !important;
  color: #64748b !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.07em !important;
  padding: 0.85rem 1rem !important;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05) !important;
}

.admin-layout .table td {
  padding: 0.85rem 1rem !important;
  font-size: 0.83rem !important;
  color: var(--text-color) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
  vertical-align: middle !important;
  transition: all 0.2s ease !important;
}

.admin-layout .table tbody tr {
  transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.admin-layout .table tbody tr:hover {
  background-color: rgba(227, 141, 3, 0.02) !important; /* Soft brand background highlight */
}

/* Rounded corners helper for first/last elements in rows */
.admin-layout .table th:first-child,
.admin-layout .table td:first-child {
  padding-left: 1.25rem !important;
}

.admin-layout .table th:last-child,
.admin-layout .table td:last-child {
  padding-right: 1.25rem !important;
}

/* Beautiful custom status tag badges */
.admin-layout .tag {
  border-radius: 8px !important;
  font-weight: 700 !important;
  padding: 0.2rem 0.5rem !important;
  height: auto !important;
  font-size: 0.7rem !important;
  text-transform: capitalize !important;
  letter-spacing: 0.2px !important;
  display: inline-flex !important;
  align-items: center !important;
}

.admin-layout .tag.is-success {
  background-color: rgba(72, 199, 142, 0.12) !important;
  color: #257953 !important;
}

.admin-layout .tag.is-warning {
  background-color: rgba(255, 221, 87, 0.2) !important;
  color: #946c00 !important;
}

.admin-layout .tag.is-danger {
  background-color: rgba(241, 70, 104, 0.12) !important;
  color: #cc0f35 !important;
}

.admin-layout .tag.is-info {
  background-color: rgba(50, 115, 220, 0.12) !important;
  color: #1d529c !important;
}

.admin-layout .tag.is-light {
  background-color: rgba(0, 0, 0, 0.05) !important;
  color: #4a4a4a !important;
}


/* ==========================================================================
   ADMIN COMPONENT PRIMITIVES
   Canonical page-header and stat-tile building blocks. Admin views were
   mixing h1/h3, different weights, and hardcoded rgba() cards per page;
   use these instead of ad hoc inline styles so every section matches.
   ========================================================================== */

.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-page-header.has-divider {
  padding-bottom: 0.75rem;
  border-bottom: var(--card-border);
}

.admin-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--title-color) !important;
  margin-bottom: 0.15rem;
}

.admin-subtitle {
  font-size: 0.8rem;
  color: #64748b;
}

/* Flat colored metric tile (dashboard summary stats, KPI rows) */
.admin-stat-tile {
  border-radius: 12px;
  padding: 0.75rem 1rem;
  height: 100%;
}

.admin-stat-tile .admin-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  margin: 0 0 0.2rem;
}

.admin-stat-tile .admin-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--title-color) !important;
  margin: 0;
}

.admin-stat-tile.is-success { background: rgba(72, 199, 142, 0.08); }
.admin-stat-tile.is-success .admin-stat-label { color: #48c78e; }

.admin-stat-tile.is-primary { background: rgba(227, 141, 3, 0.08); }
.admin-stat-tile.is-primary .admin-stat-label { color: var(--primary-color); }

.admin-stat-tile.is-info { background: rgba(50, 115, 220, 0.08); }
.admin-stat-tile.is-info .admin-stat-label { color: #3273dc; }

.admin-stat-tile.is-danger { background: rgba(241, 70, 104, 0.08); }
.admin-stat-tile.is-danger .admin-stat-label { color: #f14668; }

/* Premium Modern Form Inputs Overrides */
.admin-layout .input,
.admin-layout .textarea,
.admin-layout .select select {
  background-color: var(--input-bg, #ffffff) !important;
  border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 10px !important;
  color: var(--text-color, #2d3748) !important;
  font-size: 0.85rem !important;
  box-shadow: none !important;
  padding: 0.5rem 0.75rem !important;
  height: auto !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.admin-layout .input::placeholder,
.admin-layout .textarea::placeholder {
  color: #a0aec0 !important;
  opacity: 1 !important;
}

.admin-layout .input:focus,
.admin-layout .textarea:focus,
.admin-layout .select select:focus {
  border-color: var(--primary-color, #e38d03) !important;
  box-shadow: 0 0 0 4px rgba(227, 141, 3, 0.12) !important;
  background-color: #ffffff !important;
}

.admin-layout .label {
  color: #4a5568 !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 0.35rem !important;
}

.admin-layout .checkbox,
.admin-layout .radio {
  font-size: 0.85rem !important;
  color: var(--text-color, #4a5568) !important;
  font-weight: 500 !important;
  user-select: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
}

.admin-layout .checkbox input[type="checkbox"],
.admin-layout .radio input[type="radio"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  border: 1.5px solid rgba(0, 0, 0, 0.15) !important;
  border-radius: 4px !important;
  background-color: var(--input-bg, #ffffff) !important;
  outline: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 !important;
}

.admin-layout .radio input[type="radio"] {
  border-radius: 50% !important;
}

/* Checked states with custom checked mark/dot indicators */
.admin-layout .checkbox input[type="checkbox"]:checked {
  background-color: var(--primary-color, #e38d03) !important;
  border-color: var(--primary-color, #e38d03) !important;
}

.admin-layout .checkbox input[type="checkbox"]:checked::after {
  content: "\f00c" !important;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-size: 10px !important;
  color: #ffffff !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
}

.admin-layout .radio input[type="radio"]:checked {
  background-color: var(--primary-color, #e38d03) !important;
  border-color: var(--primary-color, #e38d03) !important;
}

.admin-layout .radio input[type="radio"]:checked::after {
  content: "" !important;
  width: 8px !important;
  height: 8px !important;
  background-color: #ffffff !important;
  border-radius: 50% !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
}

/* Focus ring for accessibility */
.admin-layout .checkbox input[type="checkbox"]:focus-visible,
.admin-layout .radio input[type="radio"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(227, 141, 3, 0.25) !important;
}

/* Dark mode overrides */
[data-theme="dark"] .admin-layout .checkbox input[type="checkbox"],
[data-theme="dark"] .admin-layout .radio input[type="radio"] {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.admin-layout .select {
  height: auto !important;
}

.admin-layout .select:not(.is-multiple):not(.is-loading)::after {
  border-color: var(--primary-color, #e38d03) !important;
  border-width: 2px !important;
  right: 1.125em !important;
  top: 52% !important;
}

/* Premium Modern Buttons Overrides */
.admin-layout .button {
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.admin-layout .button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.admin-layout .button:active {
  transform: translateY(1px) scale(0.98) !important;
}

/* Primary Button Override */
.admin-layout .button.is-primary,
.admin-layout .btn-primary {
  background-color: var(--primary-color, #e38d03) !important;
  border-color: var(--primary-color, #e38d03) !important;
  color: #ffffff !important;
}

.admin-layout .button.is-primary:hover,
.admin-layout .btn-primary:hover {
  background-color: var(--primary-hover, #c77b02) !important;
  border-color: var(--primary-hover, #c77b02) !important;
  color: #ffffff !important;
}

/* Light Button Override (Reset, Cancel, Secondary) */
.admin-layout .button.is-light {
  background-color: rgba(0, 0, 0, 0.03) !important;
  border-color: transparent !important;
  color: var(--text-color, #4a5568) !important;
}

.admin-layout .button.is-light:hover {
  background-color: rgba(0, 0, 0, 0.06) !important;
}

/* Dark mode overrides for buttons */
[data-theme="dark"] .admin-layout .button {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background-color: rgba(255, 255, 255, 0.02) !important;
}

[data-theme="dark"] .admin-layout .button.is-light {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #e2e8f0 !important;
}

[data-theme="dark"] .admin-layout .button.is-light:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
}
