/* =============================================
   GBG Admin - Modern UI Custom Stylesheet
   Brand Color: #e67531 (Orange)
   ============================================= */

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

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif !important;
    background: #f1f5f9 !important;
    color: #334155;
    font-size: 14px;
}

/* =============================================
   SIDEBAR
   ============================================= */
.navbar-default.navbar-static-side {
    background: #0f172a !important;
    width: 230px !important;
    position: fixed !important;
    top: 0; left: 0; bottom: 0;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0,0,0,0.25);
    transition: width 0.3s ease;
}

.sidebar-collapse {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #334155 #0f172a;
}
.sidebar-collapse::-webkit-scrollbar { width: 4px; }
.sidebar-collapse::-webkit-scrollbar-track { background: #0f172a; }
.sidebar-collapse::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }

/* Sidebar Logo/Brand area */
.nav-header {
    padding: 20px 16px !important;
    background: linear-gradient(135deg, #e67531 0%, #c45a1e 100%) !important;
    border-bottom: none !important;
}

.nav-header .profile-element {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-header .profile-element img {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255,255,255,0.4);
    object-fit: cover;
}

.nav-header .profile-element .block {
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    line-height: 1.3;
}

.nav-header .logo-element {
    display: none;
    color: #fff;
    font-size: 20px;
    text-align: center;
    padding: 5px 0;
}

/* Mini sidebar logo */
body.mini-navbar .nav-header .profile-element { display: none; }
body.mini-navbar .nav-header .logo-element { display: block; }

/* Sidebar brand title */
.gbg-brand {
    display: flex;
    align-items: center;
    padding: 0 16px 16px;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    text-decoration: none !important;
}
.gbg-brand-icon {
    width: 32px; height: 32px;
    background: #e67531;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px; flex-shrink: 0;
}
.gbg-brand-text {
    color: #fff; font-weight: 700; font-size: 16px; letter-spacing: 0.5px;
}

/* Nav Menu */
#side-menu {
    padding: 10px 0 20px !important;
    max-height: none !important;
    overflow: visible !important;
}

#side-menu > li {
    border-left: 3px solid transparent;
    transition: border-color 0.2s;
    margin: 2px 8px;
    border-radius: 8px;
    overflow: hidden;
}

#side-menu > li.active,
#side-menu > li:hover {
    background: rgba(230, 117, 49, 0.12);
    border-left-color: #e67531;
}

#side-menu > li > a {
    color: #94a3b8 !important;
    padding: 11px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
    border-radius: 8px;
    background: transparent !important;
}

#side-menu > li.active > a,
#side-menu > li > a:hover {
    color: #ffffff !important;
}

#side-menu > li > a i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
    transition: color 0.2s;
    flex-shrink: 0;
}

#side-menu > li.active > a i,
#side-menu > li > a:hover i {
    color: #e67531 !important;
}

.nav-label { flex: 1; }

/* Arrow for dropdown */
#side-menu .fa.arrow {
    font-size: 10px !important;
    color: #475569 !important;
    transition: transform 0.3s;
}
#side-menu li.active > a .fa.arrow { transform: rotate(90deg); }

/* Sub-menu */
.nav-second-level {
    background: rgba(0,0,0,0.2) !important;
    border-radius: 6px;
    margin: 0 4px 4px !important;
    padding: 4px 0 !important;
}

.nav-second-level li a {
    color: #64748b !important;
    padding: 8px 16px 8px 44px !important;
    font-size: 12.5px !important;
    font-weight: 400 !important;
    display: block;
    text-decoration: none;
    transition: color 0.2s;
    border-radius: 6px;
}

.nav-second-level li a:hover,
.nav-second-level li.active a {
    color: #e67531 !important;
    background: rgba(230, 117, 49, 0.08) !important;
}

/* Sidebar section labels */
.sidebar-section-label {
    color: #475569;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 16px 20px 6px;
    display: block;
}

/* Logout link */
#side-menu > li:last-child > a {
    color: #f87171 !important;
}
#side-menu > li:last-child > a i { color: #f87171 !important; }
#side-menu > li:last-child:hover {
    background: rgba(248, 113, 113, 0.1) !important;
    border-left-color: #f87171 !important;
}

/* =============================================
   TOPBAR
   ============================================= */
#page-wrapper {
    margin-left: 230px !important;
    min-height: 100vh;
    background: #f1f5f9 !important;
    transition: margin-left 0.3s ease;
}

.row.border-bottom {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    padding: 0 !important;
    margin: 0 !important;
}

.navbar.navbar-static-top {
    background: #ffffff !important;
    border: none !important;
    padding: 0 20px !important;
    min-height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0 !important;
}

/* Toggle Button */
.navbar-minimalize {
    background: transparent !important;
    border: none !important;
    color: #64748b !important;
    font-size: 18px !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    transition: all 0.2s !important;
    box-shadow: none !important;
    margin: 0 !important;
}
.navbar-minimalize:hover {
    background: #f1f5f9 !important;
    color: #e67531 !important;
}

/* Topbar right links */
.navbar-top-links {
    display: flex !important;
    align-items: center !important;
    gap: 4px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.navbar-top-links > li > a {
    padding: 8px 12px !important;
    color: #64748b !important;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex !important;
    align-items: center !important;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}
.navbar-top-links > li > a:hover { background: #f1f5f9; color: #334155; }

.navbar-top-links .dropdown-menu {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12) !important;
    padding: 8px !important;
    min-width: 180px;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
}

.navbar-top-links .dropdown-item,
.navbar-top-links .dropdown-menu a {
    padding: 9px 14px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    color: #475569 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    transition: all 0.15s;
    text-decoration: none;
}
.navbar-top-links .dropdown-menu a:hover { background: #f1f5f9 !important; color: #334155 !important; }
.navbar-top-links .dropdown-menu a[style*="red"],
.navbar-top-links .dropdown-menu a:last-child { color: #ef4444 !important; }
.navbar-top-links .dropdown-menu a:last-child:hover { background: #fef2f2 !important; }

/* User avatar in topbar */
.topbar-user-avatar {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, #e67531, #c45a1e);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 13px;
}

/* Page heading breadcrumb area */
.row.wrapper.border-bottom.white-bg.page-heading {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 18px 24px !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.page-heading h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 6px !important;
}

.breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 12px !important;
}

.breadcrumb-item a { color: #e67531 !important; text-decoration: none; }
.breadcrumb-item.active { color: #94a3b8; }
.breadcrumb-item + .breadcrumb-item::before { color: #cbd5e1; }

/* =============================================
   CONTENT AREA
   ============================================= */
.wrapper.wrapper-content {
    padding: 24px !important;
}

/* =============================================
   CARDS / IBOX
   ============================================= */
.ibox {
    background: #ffffff !important;
    border-radius: 14px !important;
    border: none !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
    overflow: hidden;
    margin-bottom: 20px;
}

.ibox-title {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 16px 20px !important;
    border-radius: 14px 14px 0 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ibox-title h5 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
}

.ibox-content {
    padding: 20px !important;
    background: #ffffff !important;
    border: none !important;
    border-top: none !important;
}

/* =============================================
   STAT CARDS (Dashboard)
   ============================================= */
.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid #f1f5f9;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 20px;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.10); }

.stat-card-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.stat-icon-orange { background: rgba(230,117,49,0.12); color: #e67531; }
.stat-icon-blue   { background: rgba(59,130,246,0.12); color: #3b82f6; }
.stat-icon-green  { background: rgba(16,185,129,0.12); color: #10b981; }
.stat-icon-purple { background: rgba(139,92,246,0.12); color: #8b5cf6; }
.stat-icon-red    { background: rgba(239,68,68,0.12);  color: #ef4444; }
.stat-icon-teal   { background: rgba(20,184,166,0.12); color: #14b8a6; }

.stat-card-info { flex: 1; }
.stat-card-info .stat-value {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin: 0 0 4px;
}
.stat-card-info .stat-label {
    font-size: 12.5px;
    color: #94a3b8;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =============================================
   TABLES
   ============================================= */
.table {
    font-size: 13px !important;
    color: #334155 !important;
}

.table thead th {
    background: #f8fafc !important;
    color: #64748b !important;
    font-weight: 700 !important;
    font-size: 11.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.7px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    padding: 12px 14px !important;
    white-space: nowrap;
}

.table tbody tr {
    transition: background 0.15s;
}
.table tbody tr:hover { background: #f8fafc !important; }

.table tbody td {
    padding: 12px 14px !important;
    border-top: 1px solid #f1f5f9 !important;
    vertical-align: middle !important;
    color: #334155 !important;
}

/* DataTables */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    color: #334155 !important;
    outline: none !important;
    font-family: 'Poppins', sans-serif !important;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    border-color: #e67531 !important;
    box-shadow: 0 0 0 3px rgba(230,117,49,0.12) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    padding: 4px 10px !important;
    font-size: 12px !important;
    font-family: 'Poppins', sans-serif !important;
    border: none !important;
    color: #64748b !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #e67531 !important;
    color: #fff !important;
    border: none !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: none !important;
}

/* =============================================
   FORMS
   ============================================= */
.form-control {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    color: #334155 !important;
    background: #f8fafc !important;
    font-family: 'Poppins', sans-serif !important;
    transition: all 0.2s !important;
    height: auto !important;
}

.form-control:focus {
    border-color: #e67531 !important;
    box-shadow: 0 0 0 3px rgba(230,117,49,0.12) !important;
    background: #fff !important;
    outline: none !important;
}

.form-control::placeholder { color: #94a3b8 !important; }

label {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin-bottom: 6px !important;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Select2 */
.select2-container .select2-selection--single {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    height: 42px !important;
    background: #f8fafc !important;
}
.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 40px !important;
    padding: 0 14px !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-family: 'Poppins', sans-serif !important;
}
.select2-container .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
}
.select2-container--open .select2-selection--single {
    border-color: #e67531 !important;
    box-shadow: 0 0 0 3px rgba(230,117,49,0.12) !important;
}
.select2-dropdown {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10) !important;
}
.select2-results__option--highlighted {
    background: #e67531 !important;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    border-radius: 9px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 9px 18px !important;
    transition: all 0.2s !important;
    border: none !important;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: linear-gradient(135deg, #e67531, #c45a1e) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(230,117,49,0.3) !important;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #d4611e, #b34c12) !important;
    box-shadow: 0 6px 16px rgba(230,117,49,0.4) !important;
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(239,68,68,0.25) !important;
}
.btn-danger:hover { background: linear-gradient(135deg, #dc2626, #b91c1c) !important; transform: translateY(-1px); }

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(16,185,129,0.25) !important;
}
.btn-success:hover { background: linear-gradient(135deg, #059669, #047857) !important; transform: translateY(-1px); }

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(245,158,11,0.25) !important;
}
.btn-warning:hover { transform: translateY(-1px); }

.btn-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(59,130,246,0.25) !important;
}
.btn-info:hover { transform: translateY(-1px); }

.btn-white, .btn-default {
    background: #fff !important;
    color: #475569 !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
}
.btn-white:hover, .btn-default:hover { background: #f8fafc !important; border-color: #cbd5e1 !important; }

.btn-sm { padding: 6px 12px !important; font-size: 12px !important; border-radius: 7px !important; }
.btn-xs { padding: 4px 8px !important; font-size: 11px !important; border-radius: 6px !important; }
.btn-lg { padding: 12px 24px !important; font-size: 14px !important; }

/* =============================================
   BADGES & STATUS
   ============================================= */
.badge {
    border-radius: 6px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 4px 8px !important;
}

.label-primary, .badge-primary { background: rgba(230,117,49,0.15) !important; color: #e67531 !important; }
.label-success, .badge-success { background: rgba(16,185,129,0.15) !important; color: #10b981 !important; }
.label-danger,  .badge-danger  { background: rgba(239,68,68,0.15) !important;  color: #ef4444 !important; }
.label-warning, .badge-warning { background: rgba(245,158,11,0.15) !important; color: #d97706 !important; }
.label-info,    .badge-info    { background: rgba(59,130,246,0.15) !important;  color: #3b82f6 !important; }

/* =============================================
   ALERTS
   ============================================= */
.alert {
    border: none !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    padding: 12px 16px !important;
}
.alert-danger  { background: #fef2f2 !important; color: #b91c1c !important; border-left: 4px solid #ef4444 !important; }
.alert-success { background: #f0fdf4 !important; color: #166534 !important; border-left: 4px solid #22c55e !important; }
.alert-warning { background: #fffbeb !important; color: #92400e !important; border-left: 4px solid #f59e0b !important; }
.alert-info    { background: #eff6ff !important; color: #1e40af !important; border-left: 4px solid #3b82f6 !important; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: #ffffff !important;
    border-top: 1px solid #f1f5f9 !important;
    padding: 16px 24px !important;
    font-size: 12.5px !important;
    color: #94a3b8 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    border-radius: 14px;
}

/* =============================================
   LOGIN PAGE
   ============================================= */
body.auth-page {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%) !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    min-height: 520px;
    display: flex;
}

.auth-left {
    flex: 1;
    background: linear-gradient(135deg, #e67531 0%, #c45a1e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}
.auth-left::before {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    bottom: -100px; right: -80px;
}
.auth-left::after {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    top: -60px; left: -60px;
}
.auth-left-img {
    width: 75%;
    max-width: 280px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}
.auth-left-title {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    position: relative;
    z-index: 1;
    line-height: 1.3;
}
.auth-left-sub {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.auth-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 44px;
}
.auth-logo {
    width: 120px;
    object-fit: contain;
    margin-bottom: 28px;
}
.auth-right h2 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}
.auth-right p.auth-sub {
    font-size: 13px;
    color: #94a3b8;
    margin: 0 0 28px;
}
.auth-right .form-group { width: 100%; margin-bottom: 16px; }
.auth-right .form-control {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    background: #f8fafc !important;
    width: 100%;
}
.auth-right .form-control:focus {
    border-color: #e67531 !important;
    box-shadow: 0 0 0 3px rgba(230,117,49,0.12) !important;
    background: #fff !important;
}
.auth-btn {
    width: 100%;
    padding: 13px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #e67531, #c45a1e) !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 20px rgba(230,117,49,0.35) !important;
    border: none !important;
    transition: all 0.2s !important;
}
.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(230,117,49,0.45) !important;
}

/* =============================================
   MINI SIDEBAR (Collapsed)
   ============================================= */
body.mini-navbar .navbar-default.navbar-static-side {
    width: 70px !important;
}
body.mini-navbar #page-wrapper {
    margin-left: 70px !important;
}
body.mini-navbar #side-menu > li > a .nav-label,
body.mini-navbar #side-menu > li > a .fa.arrow,
body.mini-navbar .sidebar-section-label {
    display: none !important;
}
body.mini-navbar #side-menu > li > a {
    justify-content: center !important;
    padding: 14px !important;
}
body.mini-navbar #side-menu > li > a i {
    width: auto !important;
    font-size: 16px !important;
}
body.mini-navbar .nav-second-level { display: none !important; }

/* =============================================
   MODALS
   ============================================= */
.modal-content {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2) !important;
    overflow: hidden;
    font-family: 'Poppins', sans-serif !important;
}

.modal-header {
    padding: 18px 24px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.modal-header.bg-primary,
.modal-header.bg-success,
.modal-header.bg-danger,
.modal-header.bg-info {
    background: linear-gradient(135deg, #e67531, #c45a1e) !important;
    border-bottom: none !important;
}

.modal-header .modal-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #fff !important;
    font-family: 'Poppins', sans-serif !important;
}

.modal-header .close,
.modal-header button.close {
    color: #fff !important;
    opacity: 0.8 !important;
    font-size: 20px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
}
.modal-header .close:hover { opacity: 1 !important; }

.modal-body {
    padding: 24px !important;
    font-family: 'Poppins', sans-serif !important;
}

.modal-footer {
    padding: 16px 24px !important;
    border-top: 1px solid #f1f5f9 !important;
    background: #f8fafc !important;
    border-radius: 0 0 16px 16px !important;
}

/* =============================================
   SELECT2 MULTIPLE (inside modals & pages)
   ============================================= */
.select2-container--default .select2-selection--multiple {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    padding: 4px 8px !important;
    min-height: 44px !important;
    font-family: 'Poppins', sans-serif !important;
    cursor: pointer !important;
}

.select2-container--default .select2-selection--multiple:focus,
.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #e67531 !important;
    box-shadow: 0 0 0 3px rgba(230,117,49,0.12) !important;
    background: #fff !important;
    outline: none !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: rgba(230,117,49,0.12) !important;
    border: 1px solid rgba(230,117,49,0.25) !important;
    border-radius: 6px !important;
    color: #c45a1e !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 2px 8px 2px 6px !important;
    margin: 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #e67531 !important;
    margin-right: 4px !important;
    font-weight: 700 !important;
}

.select2-container--default .select2-selection--multiple .select2-search__field {
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    color: #334155 !important;
    margin: 2px 0 !important;
}
.select2-container--default .select2-selection--multiple .select2-search__field::placeholder {
    color: #94a3b8 !important;
}

/* Dropdown panel */
.select2-dropdown {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10) !important;
    font-family: 'Poppins', sans-serif !important;
}

.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-family: 'Poppins', sans-serif !important;
    outline: none !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #e67531 !important;
}

.select2-results__option {
    font-size: 13px !important;
    padding: 8px 14px !important;
    font-family: 'Poppins', sans-serif !important;
}

.select2-results__option--highlighted[aria-selected] {
    background: #e67531 !important;
    color: #fff !important;
}

.select2-results__option[aria-selected=true] {
    background: rgba(230,117,49,0.08) !important;
    color: #e67531 !important;
}

/* z-index fix inside modal */
.modal .select2-container { z-index: 99999 !important; }
.select2-container--open { z-index: 99999 !important; }

/* =============================================
   MISC UTILITIES
   ============================================= */
.shadow-sm { box-shadow: 0 2px 8px rgba(0,0,0,0.07) !important; }
.shadow    { box-shadow: 0 4px 16px rgba(0,0,0,0.10) !important; }
.rounded-xl { border-radius: 14px !important; }

/* Toastr override */
.toast { border-radius: 12px !important; font-family: 'Poppins', sans-serif !important; font-size: 13px !important; }

/* Scrollbar for whole page */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* =============================================
   RESPONSIVE - Tablet & Mobile
   ============================================= */
@media (max-width: 991px) {
    .navbar-default.navbar-static-side {
        transform: translateX(-100%);
        transition: transform 0.3s ease !important;
    }
    body.mini-navbar .navbar-default.navbar-static-side {
        transform: translateX(0);
        width: 230px !important;
    }
    #page-wrapper { margin-left: 0 !important; }
    body.mini-navbar #page-wrapper { margin-left: 0 !important; }

    /* Overlay */
    body.mini-navbar::before {
        content: '';
        position: fixed; inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    body.mini-navbar .navbar-default.navbar-static-side { z-index: 1000; }
}

@media (max-width: 767px) {
    .wrapper.wrapper-content { padding: 16px !important; }
    .stat-card { padding: 14px; }
    .stat-card-icon { width: 46px; height: 46px; font-size: 18px; }
    .stat-card-info .stat-value { font-size: 22px; }
    .ibox-content { padding: 14px !important; }
    .auth-left { display: none; }
    .auth-right { padding: 32px 24px; }
    .auth-card { border-radius: 16px; }
    .row.wrapper.border-bottom.white-bg.page-heading { padding: 14px 16px !important; }
}

@media (max-width: 480px) {
    .navbar.navbar-static-top { padding: 0 12px !important; }
    .auth-right { padding: 24px 20px; }
}

/* =============================================
   PAGE HEADING ACTIONS
   ============================================= */
.title-action {
    padding-top: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* =============================================
   PROFILE / CONTACT WIDGETS (Inspinia overrides)
   ============================================= */
.widget-head-color-box {
    background: linear-gradient(135deg, #e67531 0%, #c45a1e 100%) !important;
    border-radius: 14px 14px 0 0 !important;
    padding: 24px !important;
    color: #fff !important;
}

.widget-head-color-box h2 {
    color: #fff !important;
    font-weight: 700 !important;
}

.widget-text-box {
    background: #fff !important;
    border-radius: 0 0 14px 14px !important;
    border: 1px solid #f1f5f9 !important;
    border-top: none !important;
    padding: 20px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    margin-bottom: 20px;
}

.widget-text-box h4.media-heading {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 14px !important;
}

.widget-text-box ul li {
    padding: 8px 0;
    font-size: 13px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    gap: 8px;
    align-items: center;
}

.widget-text-box ul li:last-child { border-bottom: none; }
.widget-text-box ul li span.fa { color: #e67531; width: 16px; }

/* Contact card in user management */
.contact-box {
    background: #fff !important;
    border-radius: 14px !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    transition: box-shadow 0.2s, transform 0.2s;
}
.contact-box:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.10) !important; transform: translateY(-2px); }
.contact-box a { color: #334155 !important; text-decoration: none !important; }
.contact-box img { width: 64px !important; height: 64px !important; object-fit: cover; }
.contact-box h3 { font-size: 15px !important; font-weight: 700 !important; color: #0f172a !important; margin: 0 0 8px !important; }

/* Card header override for Bootstrap cards */
.card-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    padding: 14px 20px !important;
    border-radius: 14px 14px 0 0 !important;
}
.card {
    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07) !important;
    overflow: hidden;
}
.card-body { padding: 20px !important; }

/* Section headings inside ibox */
.ibox-content h5.fw-bold,
.ibox-content h5 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

/* Circle image */
.rounded-circle.circle-border {
    border: 4px solid rgba(255,255,255,0.4) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}
