﻿/* ============================================
   Bharat Trade Trust - Global Styles
   Institutional Admin Dashboard
   ============================================ */

/* ============================================
   Base Typography & Fonts
   ============================================ */
body {
  font-family: 'Inter', sans-serif;
  background-color: #f7f9fb;
  color: #191c1e;
}

h1,
h2,
h3,
h4 {
  font-family: 'Manrope', sans-serif;
}

.font-headline {
  font-family: 'Manrope', sans-serif;
}

/* ============================================
   Material Symbols Icons
   ============================================ */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* ============================================
   Glass Morphism Effects
   ============================================ */
.glass-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
}

/* ============================================
   Gradient Backgrounds
   ============================================ */
.bg-primary-gradient {
  background: linear-gradient(135deg, #001E40 0%, #003366 100%);
}

.btn-gradient {
  background: linear-gradient(135deg, #001e40 0%, #003366 100%);
}

.premium-gradient {
  background: linear-gradient(135deg, #001E40 0%, #003366 100%);
}

/* ============================================
   Borders & Outlines
   ============================================ */
.ghost-border {
  outline: 1px solid rgba(195, 198, 209, 0.15);
}

/* ============================================
   Shadows
   ============================================ */
.editorial-shadow {
  box-shadow: 0 12px 32px -4px rgba(25, 28, 30, 0.06);
}

/* ============================================
   Custom Scrollbars
   ============================================ */
.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #c3c6d1;
  border-radius: 10px;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* ============================================
   Grid Layouts
   ============================================ */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

/* ============================================
   Utility Classes
   ============================================ */

/* Smooth transitions for interactive elements */
.transition-smooth {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states for accessibility */
*:focus-visible {
  outline: 2px solid #001e40;
  outline-offset: 2px;
}

/* ============================================
   Responsive Utilities
   ============================================ */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Sidebar Responsive Behavior */
@media (max-width: 1024px) {
  /* Hide sidebar by default on mobile/tablet */
  aside {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    position: fixed;
    z-index: 100;
  }
  
  /* Show sidebar when menu is open */
  aside.sidebar-mobile-open {
    transform: translateX(0);
  }
  
  /* Overlay for mobile menu */
  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
    backdrop-filter: blur(4px);
  }
  
  /* Adjust main content for mobile */
  main {
    margin-left: 0 !important;
    width: 100% !important;
  }
  
  /* Adjust header for mobile */
  header {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1 {
    font-size: 1.5rem !important;
  }
  
  h2 {
    font-size: 1.25rem !important;
  }
  
  h3 {
    font-size: 1.125rem !important;
  }
  
  .text-3xl {
    font-size: 1.5rem !important;
  }
  
  .text-4xl {
    font-size: 1.75rem !important;
  }
}

/* Responsive Spacing */
@media (max-width: 768px) {
  .px-8 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .px-10 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .py-8 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
  
  .pt-24 {
    padding-top: 5rem !important;
  }
  
  .gap-6 {
    gap: 1rem !important;
  }
  
  .gap-8 {
    gap: 1.5rem !important;
  }
}

/* Responsive Tables */
@media (max-width: 768px) {
  .overflow-x-auto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  table {
    min-width: 600px;
  }
  
  /* Hide less important table columns on mobile */
  .hide-mobile {
    display: none !important;
  }
}

/* Responsive Cards & Grids */
@media (max-width: 768px) {
  .grid-cols-4 {
    grid-template-columns: repeat(1, 1fr) !important;
  }
  
  .grid-cols-12 {
    grid-template-columns: repeat(1, 1fr) !important;
  }
  
  .col-span-8,
  .col-span-7,
  .col-span-5,
  .col-span-4,
  .col-span-3,
  .col-span-2 {
    grid-column: span 1 / span 1 !important;
  }
  
  /* Make all columns full width on mobile */
  [class*="col-span-"] {
    grid-column: span 1 / span 1 !important;
  }
}

/* Responsive Dropdowns */
@media (max-width: 640px) {
  #adminDropdown,
  #notificationsDropdown {
    width: calc(100vw - 2rem) !important;
    right: 1rem !important;
    left: 1rem !important;
    max-width: 100% !important;
  }
}

/* Fix dropdown text visibility on very small screens */
@media (max-width: 480px) {
  #adminDropdown,
  #notificationsDropdown {
    width: calc(100vw - 1rem) !important;
    right: 0.5rem !important;
    left: 0.5rem !important;
  }
  
  /* Ensure dropdown text is visible */
  #adminDropdown span,
  #notificationsDropdown span {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Ensure flex layout works */
  #adminDropdown a,
  #notificationsDropdown a,
  #notificationsDropdown div {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
  }
  
  /* Make sure text doesn't wrap awkwardly */
  #adminDropdown .text-sm,
  #adminDropdown .text-xs,
  #notificationsDropdown .text-sm,
  #notificationsDropdown .text-xs,
  #notificationsDropdown p {
    white-space: normal !important;
    word-break: break-word !important;
    display: inline-block !important;
  }
  
  /* Force show all text in dropdown menu items */
  #adminDropdown a span.text-sm,
  #adminDropdown a span.text-xs,
  #adminDropdown div span.text-sm,
  #adminDropdown div span.text-xs,
  #notificationsDropdown span.text-sm,
  #notificationsDropdown span.text-xs,
  #notificationsDropdown p.text-sm,
  #notificationsDropdown p.text-xs {
    display: inline-block !important;
    visibility: visible !important;
  }
  
  /* Ensure menu items have proper padding */
  #adminDropdown a,
  #adminDropdown > div > a {
    padding: 0.75rem 1rem !important;
  }
  
  /* Ensure notification items are visible */
  #notificationsDropdown .flex.gap-3 {
    display: flex !important;
  }
  
  #notificationsDropdown .flex-1 {
    display: block !important;
    flex: 1 !important;
  }
}

/* Responsive Header */
@media (max-width: 768px) {
  header {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  
  /* Adjust search bar on mobile */
  header input[type="text"] {
    font-size: 14px;
    padding: 0.5rem 0.75rem 0.5rem 2rem !important;
  }
  
  header .relative.w-full,
  header .relative.max-w-md,
  header .relative.w-96,
  header .relative.w-80 {
    max-width: 100% !important;
  }
  
  /* Hide some header elements on mobile */
  header .hide-mobile {
    display: none !important;
  }
  
  /* Make header buttons smaller */
  header button {
    padding: 0.5rem;
  }
  
  /* Adjust header flex layout */
  header > div {
    gap: 0.5rem !important;
  }
  
  /* Hide admin profile text on very small screens - but NOT in dropdowns */
  header > div .text-sm {
    display: none;
  }
  
  /* Keep dropdown text visible */
  header #adminDropdown .text-sm,
  header #notificationsDropdown .text-sm {
    display: block !important;
  }
}

/* Show admin profile text on slightly larger mobile screens */
@media (min-width: 480px) and (max-width: 768px) {
  header > div .text-sm {
    display: block;
    font-size: 0.75rem;
  }
  
  /* Keep dropdown text at normal size */
  header #adminDropdown .text-sm,
  header #notificationsDropdown .text-sm {
    font-size: 0.875rem !important;
  }
}

/* Responsive Buttons */
@media (max-width: 640px) {
  button {
    font-size: 0.875rem;
  }
  
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-group button {
    width: 100%;
  }
  
  /* Stack action buttons vertically */
  .flex.gap-3 button,
  .flex.gap-4 button {
    width: 100%;
  }
}

/* Responsive Forms */
@media (max-width: 640px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important; /* Prevents zoom on iOS */
  }
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {
  button,
  a,
  input[type="button"],
  input[type="submit"] {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Responsive Navigation */
@media (max-width: 1024px) {
  nav a {
    padding: 0.75rem 1rem;
  }
}

/* Landscape mobile adjustments */
@media (max-width: 896px) and (orientation: landscape) {
  aside {
    max-height: 100vh;
    overflow-y: auto;
  }
  
  .pt-24 {
    padding-top: 4rem !important;
  }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Tablet still uses mobile menu */
  aside {
    width: 256px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .text-2xl {
    font-size: 1.25rem !important;
  }
  
  .text-xl {
    font-size: 1.125rem !important;
  }
  
  .px-6 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  
  .py-6 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
}

/* Fix for action button groups on mobile */
@media (max-width: 768px) {
  /* Stack buttons vertically */
  section .flex.gap-3,
  section .flex.gap-4,
  div .flex.gap-3,
  div .flex.gap-4 {
    flex-direction: column;
    align-items: stretch;
  }
  
  section .flex.gap-3 button,
  section .flex.gap-4 button,
  div .flex.gap-3 button,
  div .flex.gap-4 button {
    width: 100%;
    justify-content: center;
  }
  
  /* Keep header buttons horizontal */
  header .flex.gap-3,
  header .flex.gap-4,
  header .flex.gap-6 {
    flex-direction: row !important;
  }
  
  header button {
    width: auto !important;
  }
}

/* Fix for bento grid layouts */
@media (max-width: 768px) {
  .grid.grid-cols-12 > div[class*="col-span"] {
    grid-column: span 12 / span 12 !important;
  }
  
  .grid.grid-cols-12 > div[class*="lg:col-span"] {
    grid-column: span 12 / span 12 !important;
  }
}

/* Fix for max-width containers */
@media (max-width: 768px) {
  .max-w-md,
  .max-w-lg,
  .max-w-xl,
  .max-w-2xl {
    max-width: 100% !important;
  }
  
  .w-96,
  .w-80 {
    width: 100% !important;
  }
}

/* Fix for flex items that should wrap */
@media (max-width: 768px) {
  .flex.justify-between {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .flex.items-end {
    align-items: flex-start;
  }
}

/* Ensure sidebar is above content on mobile */
@media (max-width: 1024px) {
  aside {
    z-index: 100 !important;
  }
  
  .mobile-overlay {
    z-index: 90 !important;
  }
  
  header {
    z-index: 80 !important;
  }
  
  main {
    z-index: 1 !important;
  }
}

/* Print optimizations */
@media print {
  aside,
  header,
  .no-print {
    display: none !important;
  }
  
  main {
    margin: 0 !important;
    width: 100% !important;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white;
  }
  
  .glass-header {
    background: white;
    backdrop-filter: none;
  }
}

/* ============================================
   Dark Mode Support (Future Enhancement)
   ============================================ */
@media (prefers-color-scheme: dark) {
  /* Dark mode styles can be added here when needed */
}

/* ============================================
   Animation Keyframes
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* ============================================
   Loading States
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ============================================
   Accessibility Enhancements
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #001e40;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}
/* ═══════════════════════════════════════════════════════════
   DataTables — Complete Custom Styling
   ═══════════════════════════════════════════════════════════ */

/* ── Wrapper & Overflow Fix ───────────────────────────────── */
.dataTables_wrapper {
    width: 100%;
    overflow: hidden;
}

    /* ✅ This makes horizontal scroll work */
    .dataTables_wrapper .dataTables_scroll,
    .dataTables_wrapper > .overflow-x-auto {
        width: 100%;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Scrollbar styling */
    .dataTables_wrapper .overflow-x-auto::-webkit-scrollbar {
        height: 5px;
    }

    .dataTables_wrapper .overflow-x-auto::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 10px;
    }

    .dataTables_wrapper .overflow-x-auto::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 10px;
    }

        .dataTables_wrapper .overflow-x-auto::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

/* ── Table base ───────────────────────────────────────────── */
table.dataTable {
    border-collapse: collapse !important;
    margin: 0 !important;
    width: 100% !important;
    font-size: 14px !important; /* ✅ bigger font */
    font-family: 'Inter', sans-serif !important;
}

    /* ── Table Header ─────────────────────────────────────────── */
    table.dataTable thead th {
        font-size: 12px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.08em !important;
        color: #64748b !important;
        padding: 14px 24px !important;
        background: rgba(241, 245, 249, 0.5) !important;
        border-bottom: 1px solid #e2e8f0 !important;
        white-space: nowrap;
    }

    /* ── Table Rows ───────────────────────────────────────────── */
    table.dataTable tbody tr {
        border-bottom: 1px solid #f1f5f9 !important;
        transition: background 0.15s ease !important;
    }

        table.dataTable tbody tr:hover {
            background-color: rgba(241, 245, 249, 0.4) !important;
        }

    table.dataTable tbody td {
        padding: 18px 24px !important; /* ✅ more row height */
        font-size: 14px !important; /* ✅ bigger font */
        color: #1e293b !important;
        vertical-align: middle !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    /* ── Sort arrows ──────────────────────────────────────────── */
    table.dataTable thead th.sorting::before,
    table.dataTable thead th.sorting::after,
    table.dataTable thead th.sorting_asc::before,
    table.dataTable thead th.sorting_asc::after,
    table.dataTable thead th.sorting_desc::before,
    table.dataTable thead th.sorting_desc::after {
        opacity: 0.35;
        font-size: 9px;
    }

/* ═══════════════════════════════════════════════════════════
   Footer Bar
   ═══════════════════════════════════════════════════════════ */
.dt-custom-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 24px !important;
    border-top: 1px solid #e2e8f0 !important;
    background: #ffffff;
}

    /* ── Length Dropdown (LEFT) ───────────────────────────────── */
    .dt-custom-footer .dataTables_length {
        order: 1;
    }

        .dt-custom-footer .dataTables_length label {
            display: flex;
            align-items: center;
            gap: 0;
            font-size: 13px;
            font-weight: 600;
            color: #475569;
            margin: 0;
        }

        /* ✅ KEY FIX: Style the select to look like a proper dropdown */
        .dt-custom-footer .dataTables_length select {
            appearance: none !important;
            -webkit-appearance: none !important;
            -moz-appearance: none !important;
            /* Box */
            border: 1.5px solid #e2e8f0 !important;
            border-radius: 10px !important;
            padding: 6px 32px 6px 12px !important;
            margin-right: 8px !important;
            /* Text */
            font-size: 13px !important;
            font-weight: 700 !important;
            color: #1e293b !important;
            font-family: 'Inter', sans-serif !important;
            /* Background with custom arrow */
            background-color: #f8fafc !important;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
            background-repeat: no-repeat !important;
            background-position: right 10px center !important;
            background-size: 12px !important;
            cursor: pointer !important;
            min-width: 70px !important;
            box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
            transition: all 0.2s ease !important;
            line-height: 1.4 !important;
        }

            .dt-custom-footer .dataTables_length select:hover {
                border-color: #94a3b8 !important;
                background-color: #f1f5f9 !important;
            }

            .dt-custom-footer .dataTables_length select:focus {
                outline: none !important;
                border-color: #3b82f6 !important;
                box-shadow: 0 0 0 3px rgba(59,130,246,0.15) !important;
            }

    /* ── Info Text (CENTER) ───────────────────────────────────── */
    .dt-custom-footer .dataTables_info {
        order: 2;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #64748b !important;
        padding: 0 !important;
        white-space: nowrap;
    }

    /* ── Pagination (RIGHT) ───────────────────────────────────── */
    .dt-custom-footer .dataTables_paginate {
        order: 3;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
    }

        /* Every page button */
        .dt-custom-footer .dataTables_paginate .paginate_button {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            min-width: 34px !important;
            height: 34px !important;
            padding: 0 10px !important;
            border-radius: 8px !important;
            border: 1.5px solid #e2e8f0 !important;
            font-size: 13px !important;
            font-weight: 600 !important;
            color: #475569 !important;
            background: #ffffff !important;
            cursor: pointer !important;
            transition: all 0.15s ease !important;
            box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
            line-height: 1 !important;
        }

            /* Hover */
            .dt-custom-footer .dataTables_paginate .paginate_button:hover {
                background: #f1f5f9 !important;
                color: #1e3a8a !important;
                border-color: #cbd5e1 !important;
            }

            /* Current / Active page */
            .dt-custom-footer .dataTables_paginate .paginate_button.current,
            .dt-custom-footer .dataTables_paginate .paginate_button.current:hover {
                background: #001e40 !important;
                color: #ffffff !important;
                border-color: #1e3a8a !important;
                box-shadow: 0 2px 8px rgba(30,58,138,0.35) !important;
            }

            /* Disabled prev/next */
            .dt-custom-footer .dataTables_paginate .paginate_button.disabled,
            .dt-custom-footer .dataTables_paginate .paginate_button.disabled:hover {
                background: #f8fafc !important;
                color: #cbd5e1 !important;
                border-color: #f1f5f9 !important;
                cursor: not-allowed !important;
                box-shadow: none !important;
            }

        /* Ellipsis */
        .dt-custom-footer .dataTables_paginate span.ellipsis {
            padding: 0 6px !important;
            color: #94a3b8 !important;
            border: none !important;
            background: transparent !important;
            cursor: default !important;
            font-weight: 600 !important;
        }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
    .dt-custom-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

        .dt-custom-footer .dataTables_paginate {
            width: 100%;
            justify-content: flex-end;
        }

        .dt-custom-footer .dataTables_info {
            width: 100%;
            text-align: center;
        }
}


/* ═══════════════════════════════════════════════════════════
   Select2 — Custom Styling (Match Tailwind Design)
   ═══════════════════════════════════════════════════════════ */

/* ── Container ────────────────────────────────────────────── */
.select2-container--default .select2-selection--single {
    height: 42px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background-color: #f8fafc !important;
    padding: 6px 12px !important;
    font-family: 'Inter', sans-serif !important;
    transition: all 0.2s ease !important;
}

/* ── Focus state ──────────────────────────────────────────── */
.select2-container--default.select2-container--open
.select2-selection--single {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

/* ── Selected text ────────────────────────────────────────── */
.select2-container--default .select2-selection--single
.select2-selection__rendered {
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 28px !important;
    padding-left: 0 !important;
}

/* ── Placeholder ──────────────────────────────────────────── */
.select2-container--default .select2-selection--single
.select2-selection__placeholder {
    color: #94a3b8 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* ── Arrow ─────────────────────────────────────────────────── */
.select2-container--default .select2-selection--single
.select2-selection__arrow {
    height: 40px !important;
    right: 8px !important;
}

    .select2-container--default .select2-selection--single
    .select2-selection__arrow b {
        border-color: #94a3b8 transparent transparent transparent !important;
        border-width: 5px 4px 0 4px !important;
    }

/* ── Dropdown panel ───────────────────────────────────────── */
.select2-dropdown {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden !important;
    margin-top: 4px !important;
    font-family: 'Inter', sans-serif !important;
}

/* ── Search input ─────────────────────────────────────────── */
.select2-container--default .select2-search--dropdown
.select2-search__field {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    margin: 8px !important;
    width: calc(100% - 16px) !important;
}

    .select2-container--default .select2-search--dropdown
    .select2-search__field:focus {
        border-color: #3b82f6 !important;
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    }

/* ── Options ──────────────────────────────────────────────── */
.select2-results__option {
    padding: 8px 14px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    transition: all 0.1s ease !important;
}

/* Highlighted / hover */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #eff6ff !important;
    color: #1e3a8a !important;
}

/* Selected option */
.select2-container--default .select2-results__option--selected {
    background-color: #f0f9ff !important;
    color: #1e3a8a !important;
    font-weight: 600 !important;
}

/* ── No results message ──────────────────────────────────── */
.select2-results__message {
    font-size: 13px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    padding: 12px 14px !important;
}

/* ── Loading ──────────────────────────────────────────────── */
.select2-results__option.loading-results {
    color: #94a3b8 !important;
    font-style: italic !important;
}

/* ── Clear button ─────────────────────────────────────────── */
.select2-container--default .select2-selection--single
.select2-selection__clear {
    color: #94a3b8 !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    margin-right: 8px !important;
}

    .select2-container--default .select2-selection--single
    .select2-selection__clear:hover {
        color: #ef4444 !important;
    }

/* ── Disabled state ──────────────────────────────────────── */
.select2-container--default.select2-container--disabled
.select2-selection--single {
    background-color: #f1f5f9 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

/* ── Full width fix ──────────────────────────────────────── */
.select2-container {
    width: 100% !important;
}