/* ==========================================================================
   Sistem Informasi Kartu Iuran Warga - Pasegan Ngemplak
   Modern, Clean, and Premium UI Theme
   ========================================================================== */

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

:root {
    --primary: #0f766e;        /* Deep Teal */
    --primary-light: #14b8a6;  /* Light Teal */
    --primary-dark: #115e59;   /* Dark Teal */
    --primary-subtle: #f0fdfa; /* Teal background tint */
    --secondary: #3b82f6;      /* Vibrant Blue */
    --dark-surface: #0f172a;   /* Slate 900 */
    --text-main: #1e293b;      /* Slate 800 */
    --text-muted: #64748b;     /* Slate 500 */
    --border-color: #e2e8f0;   /* Slate 200 */
    --bg-body: #f8fafc;        /* Slate 50 */
    --card-bg: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1 0 auto;
}

/* --------------------------------------------------------------------------
   Navbar & Header
   -------------------------------------------------------------------------- */
nav.app-navbar {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
    box-shadow: 0 4px 20px rgba(15, 118, 110, 0.2);
    height: 68px;
    line-height: 68px;
}

nav.app-navbar .brand-logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

nav.app-navbar .brand-logo i {
    height: 68px;
    line-height: 68px;
    margin-right: 10px;
    font-size: 1.6rem;
}

nav.app-navbar ul li a {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0 16px;
    transition: all 0.2s ease;
    border-radius: var(--radius-sm);
    margin: 0 2px;
}

nav.app-navbar ul li.active a,
nav.app-navbar ul li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* --------------------------------------------------------------------------
   Cards & Layout Components
   -------------------------------------------------------------------------- */
.app-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 24px;
}

.app-card:hover {
    box-shadow: var(--shadow-md);
}

.app-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-card-header h5, 
.app-card-header h6 {
    margin: 0;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-card-body {
    padding: 24px;
}

/* Stat Cards */
.stat-card {
    border-radius: var(--radius-md);
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 24px;
}

.stat-icon.teal { background: #ccfbf1; color: #0f766e; }
.stat-icon.blue { background: #dbeafe; color: #2563eb; }
.stat-icon.green { background: #dcfce7; color: #16a34a; }
.stat-icon.amber { background: #fef3c7; color: #d97706; }
.stat-icon.rose { background: #ffe4e6; color: #e11d48; }

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.stat-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Badges & Labels
   -------------------------------------------------------------------------- */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.status-green {
    background-color: #dcfce7;
    color: #15803d;
}

.status-amber {
    background-color: #fef3c7;
    color: #b45309;
}

.status-red {
    background-color: #fee2e2;
    color: #b91c1c;
}

.status-blue {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.badge-cash {
    background-color: #16a34a;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-tf {
    background-color: #2563eb;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-blok {
    background: #e2e8f0;
    color: #334155;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Kartu Iuran (Digital Card Format)
   -------------------------------------------------------------------------- */
.kartu-container {
    max-width: 820px;
    margin: 20px auto 40px;
    background: #ffffff;
    padding: 36px;
    border-radius: var(--radius-md);
    border: 2px solid #334155;
    box-shadow: var(--shadow-lg);
}

.kartu-header {
    text-align: center;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.kartu-header h5 {
    margin: 0 0 4px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #0f172a;
    font-size: 1.4rem;
}

.kartu-header h6 {
    margin: 2px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
}

.kartu-header .tahun-badge {
    display: inline-block;
    background: #0f172a;
    color: #ffffff;
    padding: 4px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 8px;
}

.kartu-warga-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    margin-bottom: 16px;
    font-weight: 600;
}

.rincian-panel {
    background: #f1f5f9;
    border: 1px dashed #94a3b8;
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 18px;
}

.rincian-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
    margin-bottom: 8px;
}

.rincian-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
}

.rincian-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.8rem;
}

.rincian-item .comp-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.rincian-item .comp-val {
    font-weight: 700;
    color: #0f172a;
}

.table-bordered {
    border: 1.5px solid #334155 !important;
    border-collapse: collapse;
    width: 100%;
}

.table-bordered th {
    background-color: #e2e8f0;
    border: 1px solid #334155 !important;
    color: #0f172a;
    font-weight: 700;
    text-align: center;
    padding: 8px 6px;
    font-size: 0.85rem;
}

.table-bordered td {
    border: 1px solid #334155 !important;
    padding: 8px 10px;
    font-size: 0.88rem;
}

.table-bordered tr.unpaid td {
    background-color: #fafaf9;
    color: #94a3b8;
}

.table-bordered tr.paid {
    background-color: #ffffff;
}

.table-bordered tr.paid:hover {
    background-color: #f0fdfa;
}

.footer-rekap-kartu {
    margin-top: 20px;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    border-left: 6px solid var(--primary);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   Rekapitulasi Matrix Table
   -------------------------------------------------------------------------- */
.matrix-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.matrix-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.82rem;
}

.matrix-table th {
    background: #0f172a;
    color: #ffffff;
    font-weight: 600;
    padding: 10px 8px;
    text-align: center;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.matrix-table td {
    padding: 8px 6px;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid #f1f5f9;
    white-space: nowrap;
}

.matrix-table tr:hover td {
    background-color: #f8fafc;
}

.matrix-cell-paid {
    background-color: #ecfdf5 !important;
    color: #065f46;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 0.75rem;
    display: inline-block;
    min-width: 65px;
}

.matrix-cell-cash {
    background-color: #00B050 !important;
    color: #ffffff !important;
    font-weight: 700;
    text-align: center;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 0.75rem;
    display: inline-block;
    min-width: 65px;
    box-shadow: 0 1px 2px rgba(0, 176, 80, 0.25);
}

.matrix-cell-transfer {
    background-color: #4472C4 !important;
    color: #ffffff !important;
    font-weight: 700;
    text-align: center;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 0.75rem;
    display: inline-block;
    min-width: 65px;
    box-shadow: 0 1px 2px rgba(68, 114, 196, 0.25);
}

.matrix-cell-unpaid {
    color: #cbd5e1;
    text-align: center;
}

/* Sticky First Columns */
.sticky-col-no {
    position: sticky;
    left: 0;
    background: #ffffff;
    z-index: 5;
    width: 45px;
    text-align: center;
}

.sticky-col-nama {
    position: sticky;
    left: 45px;
    background: #ffffff;
    z-index: 5;
    min-width: 160px;
    font-weight: 600;
    box-shadow: 2px 0 5px rgba(0,0,0,0.04);
}

.matrix-table th.sticky-col-no,
.matrix-table th.sticky-col-nama {
    background: #0f172a;
    z-index: 15;
}

/* Total row */
.matrix-table tfoot td {
    background: #f1f5f9;
    font-weight: 800;
    border-top: 2px solid #0f172a;
    padding: 12px 8px;
    color: #0f172a;
}

/* --------------------------------------------------------------------------
   Buttons & Form Controls
   -------------------------------------------------------------------------- */
.btn-primary-custom {
    background: var(--primary) !important;
    color: #ffffff;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: none;
    letter-spacing: normal;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.25);
    transition: all 0.2s ease;
}

.btn-primary-custom:hover {
    background: var(--primary-dark) !important;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.35);
}

.btn-secondary-custom {
    background: #334155 !important;
    color: #ffffff;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: none;
    letter-spacing: normal;
}

.btn-outline-custom {
    background: transparent !important;
    color: var(--primary) !important;
    border: 1.5px solid var(--primary);
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: none;
    box-shadow: none;
}

.btn-outline-custom:hover {
    background: var(--primary-subtle) !important;
}

/* Autocomplete Custom */
.autocomplete-content {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.autocomplete-content li > span {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   Mobile & Responsive Enhancements (Screen <= 768px & <= 600px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    .kartu-container {
        padding: 20px 16px;
        margin: 15px auto;
        border-radius: 12px;
    }
    .kartu-warga-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .kartu-warga-info .right-align {
        text-align: left !important;
    }
    .footer-rekap-kartu .right-align {
        text-align: left !important;
        margin-top: 12px;
    }
    .rincian-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    nav.app-navbar {
        height: 56px;
        line-height: 56px;
    }
    nav.app-navbar .brand-logo {
        font-size: 1.1rem;
    }
    nav.app-navbar .brand-logo i {
        height: 56px;
        line-height: 56px;
        font-size: 1.3rem;
    }
    .kartu-container {
        padding: 14px 10px;
        border-width: 1px;
    }
    .kartu-header h5 {
        font-size: 1.15rem;
    }
    .kartu-header h6 {
        font-size: 0.85rem;
    }
    .table-bordered th {
        font-size: 0.72rem;
        padding: 6px 2px;
    }
    .table-bordered td {
        font-size: 0.75rem;
        padding: 6px 3px;
    }
    .badge-cash, .badge-tf {
        padding: 2px 5px;
        font-size: 0.68rem;
    }
    .rincian-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }
    .rincian-item {
        padding: 5px 8px;
    }
    .stat-card {
        padding: 14px;
        gap: 12px;
    }
    .stat-value {
        font-size: 1.25rem;
    }
    .matrix-table {
        font-size: 0.75rem;
    }
    .matrix-table th, .matrix-table td {
        padding: 6px 4px;
    }
    
    /* Mobile Card & Container Adjustments */
    .app-card-body {
        padding: 16px 14px !important;
    }
    .app-card-header {
        padding: 14px 16px !important;
        flex-wrap: wrap;
        gap: 8px;
    }
    .app-topbar {
        padding: 0 12px !important;
        height: 56px !important;
    }
    .app-topbar-title span {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.95rem;
    }
    
    /* Modals on Mobile */
    .modal {
        width: 95% !important;
        max-width: 95% !important;
        max-height: 90vh !important;
        border-radius: 12px !important;
    }
    .modal .modal-content {
        padding: 18px 16px !important;
    }

    /* Tabs on Mobile (Hide icons, compact text) */
    .tabs .tab a {
        font-size: 0.72rem !important;
        padding: 0 4px !important;
    }
    .tabs .tab a i {
        display: none !important;
    }

    /* Buttons on Mobile */
    .btn, .btn-small, .btn-flat {
        touch-action: manipulation;
    }
    .btn i.left, .btn-small i.left {
        margin-right: 4px;
    }

    /* Select2 full width on mobile */
    .select2-container {
        width: 100% !important;
    }

    /* Smooth touch scroll on mobile */
    [style*="overflow-x: auto"], [style*="overflow: auto"], .matrix-wrapper {
        -webkit-overflow-scrolling: touch;
    }
}

/* --------------------------------------------------------------------------
   Print Stylesheet
   -------------------------------------------------------------------------- */
@media print {
    body {
        background: #ffffff;
        color: #000000;
    }
    nav, .no-print, .btn, .modal, .tabs, footer {
        display: none !important;
    }
    .kartu-container {
        border: 2px solid #000000;
        box-shadow: none;
        margin: 0;
        padding: 15px;
        max-width: 100%;
        page-break-after: avoid;
    }
    .table-bordered, .table-bordered th, .table-bordered td {
        border: 1px solid #000000 !important;
        color: #000000 !important;
    }
    .table-bordered th {
        background: #e2e8f0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .matrix-wrapper {
        border: none;
        box-shadow: none;
        overflow: visible;
    }
    .matrix-table {
        font-size: 7.5pt;
    }
    .matrix-table th {
        background: #e2e8f0 !important;
        color: #000 !important;
        border: 1px solid #000 !important;
    }
    .matrix-table td {
        border: 1px solid #000 !important;
        padding: 4px 2px;
    }
    .matrix-cell-paid {
        background: none !important;
        color: #000 !important;
        font-weight: bold;
    }
    .app-sidebar, .app-topbar, .sidebar-backdrop {
        display: none !important;
    }
    .app-layout-wrapper {
        margin-left: 0 !important;
    }
}

/* ==========================================================================
   Modern Sidebar Layout
   ========================================================================== */
.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    background: #0f172a; /* Slate 900 */
    color: #f8fafc;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-brand {
    padding: 20px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(20, 184, 166, 0.3);
}

.sidebar-brand-text h6 {
    margin: 0;
    font-weight: 800;
    font-size: 1rem;
    color: #ffffff;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.sidebar-brand-text small {
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 500;
}

.sidebar-user-card {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: #0f766e;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    border: 2px solid #14b8a6;
}

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

.sidebar-user-info .user-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-info .user-role {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 2px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 10px;
}

.sidebar-heading {
    padding: 10px 10px 4px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 8px;
    margin-bottom: 3px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sidebar-nav-item i {
    font-size: 20px;
    color: #94a3b8;
    transition: color 0.2s ease;
}

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

.sidebar-nav-item:hover i {
    color: #14b8a6;
}

.sidebar-nav-item.active {
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.95) 0%, rgba(20, 184, 166, 0.85) 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

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

.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 1040;
    backdrop-filter: blur(2px);
}

/* Layout Wrapper for Authenticated Users (with Sidebar) */
.app-layout-wrapper {
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

/* Layout Wrapper for Public / Unauthenticated Users (Simple, Centered, No Sidebar) */
.app-layout-front {
    margin-left: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    height: 60px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.app-topbar-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #475569;
    border-radius: 6px;
}

.btn-sidebar-toggle:hover {
    background: #f1f5f9;
}

.app-main-content {
    flex: 1 0 auto;
    padding: 24px 28px;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
}

/* Responsive Sidebar for Mobile & Tablet */
@media (max-width: 992px) {
    .app-sidebar {
        transform: translateX(-100%);
    }
    .app-sidebar.open {
        transform: translateX(0);
    }
    .app-layout-wrapper {
        margin-left: 0;
    }
    .btn-sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .sidebar-backdrop.active {
        display: block;
    }
    .app-main-content {
        padding: 16px 14px;
    }
}

/* ==========================================================================
   Select2 Custom Styling (Matches Jakarta Sans & Teal Theme)
   ========================================================================== */
.select2-container--default .select2-selection--single {
    height: 44px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #0f766e !important;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15) !important;
    outline: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #0f172a !important;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
    padding-left: 12px !important;
    padding-right: 30px !important;
    line-height: 42px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important;
    right: 8px !important;
}

.select2-dropdown {
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12) !important;
    z-index: 9999 !important;
    overflow: hidden !important;
}

.select2-search--dropdown {
    padding: 8px 10px !important;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 0.9rem !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: #0f766e !important;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.15) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #0f766e !important;
    color: #ffffff !important;
}

.select2-container--default .select2-results__option {
    padding: 9px 12px !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
}
