/* Modern Site-Wide Styles - Based on wersja_07_bs5 template */
/* These styles apply the template's modern look to entire BenPos site */

/* ===== PRELOADER ===== */
.js-preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0a0a0a;
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    z-index: 9999;
    -webkit-transition: opacity 0.25s ease;
    transition: opacity 0.25s ease;
}

.js-preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@-webkit-keyframes dot {
    50% {
        -webkit-transform: translateX(96px);
        transform: translateX(96px);
    }
}

@keyframes dot {
    50% {
        -webkit-transform: translateX(96px);
        transform: translateX(96px);
    }
}

@-webkit-keyframes dots {
    50% {
        -webkit-transform: translateX(-31px);
        transform: translateX(-31px);
    }
}

@keyframes dots {
    50% {
        -webkit-transform: translateX(-31px);
        transform: translateX(-31px);
    }
}

.preloader-inner {
    position: relative;
    width: 142px;
    height: 40px;
    background: #0a0a0a;
}

.preloader-inner .dot {
    position: absolute;
    width: 16px;
    height: 16px;
    top: 12px;
    left: 15px;
    background: #facc15;
    border-radius: 50%;
    -webkit-transform: translateX(0);
    transform: translateX(0);
    -webkit-animation: dot 2.8s infinite;
    animation: dot 2.8s infinite;
}

.preloader-inner .dots {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    margin-top: 12px;
    margin-left: 31px;
    -webkit-animation: dots 2.8s infinite;
    animation: dots 2.8s infinite;
}

.preloader-inner .dots span {
    display: block;
    float: left;
    width: 16px;
    height: 16px;
    margin-left: 16px;
    background: #facc15;
    border-radius: 50%;
}

/* ===== GLOBAL STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    background-color: #0a0a0a !important;
    color: #fff;
    padding-top: 70px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Sticky footer - main content takes available space */
main {
    flex-grow: 1;
}

/* Fix white backgrounds across the site */
body,
.card,
.card-body,
.nav-tabs,
.list-group-item,
.table,
.alert {
    background-color: #0a0a0a !important;
}

/* Dropdown menu - light background for readability */
.dropdown-menu {
    background-color: #fff !important;
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.dropdown-item {
    color: #1a1a1a !important;
    padding: 10px 20px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(250, 204, 21, 0.15);
    color: #000 !important;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: #facc15 !important;
    color: #000 !important;
}

.dropdown-divider {
    border-color: rgba(250, 204, 21, 0.2);
}

/* Form inputs - dark background */
.form-control,
.form-select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"] {
    background-color: #171717 !important;
    color: #fff !important;
    border-color: rgba(250, 204, 21, 0.2);
}

/* Form control plaintext - white text */
.form-control-plaintext {
    color: #fff !important;
}

/* Card backgrounds (dark) */
.menu-card {
    background-color: #171717 !important;
}

/* Modal - light background for readability */
.modal-content {
    background-color: #fff !important;
}

/* ===== MODERN NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background-color: #0a0a0a !important;
    border-bottom: 1px solid rgba(250, 204, 21, 0.2) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 12px 0;
}

.navbar .navbar-brand {
    color: #facc15 !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar .nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.2s;
}

.navbar .nav-link:hover {
    color: #facc15 !important;
    background-color: rgba(250, 204, 21, 0.1);
}

.navbar .nav-link.active {
    color: #facc15 !important;
    background-color: rgba(250, 204, 21, 0.1);
}

.navbar .dropdown-menu {
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    background-color: #fff !important;
}

.navbar .dropdown-item {
    padding: 10px 20px;
    border-radius: 8px;
    margin: 4px 8px;
    transition: all 0.2s;
    color: #1a1a1a !important;
}

.navbar .dropdown-item:hover {
    background-color: rgba(250, 204, 21, 0.15);
    color: #000 !important;
}

.navbar .dropdown-item.active {
    background-color: rgba(250, 204, 21, 0.2);
    color: #000 !important;
    font-weight: 600;
}

.navbar-toggler {
    border-color: rgba(250, 204, 21, 0.3);
}

.navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 1.2rem;
    height: 1.2rem;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #facc15;
}

.navbar-toggler-icon::before {
    top: 2px;
}

.navbar-toggler-icon::after {
    bottom: 2px;
}

/* ===== NAVBAR BREAKPOINT 1025px ===== */
@media (max-width: 1025px) {
    /* Pokaż hamburger toggle */
    .navbar-toggler {
        display: block;
    }

    /* Ukryj menu domyślnie na mobile */
    .navbar-collapse {
        display: none !important;
    }

    /* Pokaż menu gdy jest otwarte (klasa .show dodawana przez Bootstrap JS) */
    .navbar-collapse.show {
        display: block !important;
    }
}

/* ===== HEADER AREA (Legacy Support) ===== */
.header-area {
    background-color: #0a0a0a !important;
    border-bottom: 1px solid rgba(250, 204, 21, 0.2) !important;
}

.header-area .main-nav .nav li a {
    color: #fff !important;
    font-weight: 500;
    transition: all 0.2s;
}

.header-area .main-nav .nav li a:hover {
    color: #facc15 !important;
}

.header-area .logo2 img {
    max-height: 50px;
}

/* ===== CTA BUTTON ===== */
.nav-cta-btn {
    background-color: #facc15 !important;
    border-color: #facc15 !important;
    color: #000 !important;
    border-radius: 999px !important;
    font-weight: 600;
    padding: 8px 20px !important;
    transition: all 0.2s;
}

.nav-cta-btn:hover {
    background-color: #fde047 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.4);
}

/* ===== MODERN CARDS ===== */
.card {
    border: 1px solid rgba(250, 204, 21, 0.2) !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.2s;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(250, 204, 21, 0.15);
}

.card-header {
    background-color: #171717 !important;
    border-bottom: 1px solid rgba(250, 204, 21, 0.2) !important;
    padding: 16px 20px;
    font-weight: 600;
    color: #fff;
}

.card-body {
    padding: 20px;
    color: #fff;
}

.card-footer {
    background-color: #171717;
    border-top: 1px solid rgba(250, 204, 21, 0.2) !important;
    padding: 16px 20px;
}

/* Fix dropdown overflow in cards */
.table .dropdown-menu {
    position: absolute !important;
    z-index: 9999 !important;
}

/* Allow overflow for cards with dropdowns */
.card:has(.dropdown) {
    overflow: visible;
}

/* ===== MODERN BUTTONS ===== */
.btn-main {
    background-color: #facc15 !important;
    color: #000 !important;
    border-color: #facc15 !important;
    border-radius: 999px !important;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-main:hover {
    background-color: #fde047 !important;
    color: #000 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.4);
}

.btn-alt {
    border-color: #facc15 !important;
    color: #facc15 !important;
    background-color: transparent !important;
    border-radius: 999px !important;
    font-weight: 600;
}

.btn-alt:hover {
    background-color: rgba(250, 204, 21, 0.15) !important;
}

.btn-stan-zam {
    font-weight: 600;
}

.fw-semibold {
    font-weight: 600 !important;
}

.btn-stan-zam:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-action-primary {
    padding: 12px 24px;
    border-radius: 999px;
    border: none;
    background: #facc15 !important;
    color: #000 !important;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action-primary:hover {
    background: #fde047 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.4);
}

/* Index page action buttons with smaller border-radius */
.btn-index-action {
    border-radius: 6px !important;
}
}

/* ===== BADGES ===== */
.badge-accent {
    border: 1px solid #facc15;
    color: #facc15;
    background-color: transparent;
    border-radius: 999px;
    padding: 6px 12px;
}

.badge-outline {
    border: 1px solid #facc15;
    color: #facc15;
    background-color: transparent;
    border-radius: 999px;
    padding: 6px 12px;
}

.badge-dark-pill {
    background-color: #facc15;
    color: #000;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #facc15;
    display: inline-block;
}

/* ===== PRICE ACCENT ===== */
.price-accent {
    color: #facc15 !important;
    font-weight: 700;
}

/* ===== MODERN TABLES ===== */
.table {
    border-collapse: separate;
    border-spacing: 0;
    color: #fff;
}

.table thead th {
    background-color: #171717;
    border-bottom: 2px solid rgba(250, 204, 21, 0.3);
    color: #facc15;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: all 0.2s;
    color: #fff !important;
}

.table tbody tr td,
.table tbody tr th {
    color: #fff !important;
}

.table tbody tr:hover {
    background-color: rgba(250, 204, 21, 0.05);
}

.table > tbody > tr > td,
.table > tbody > tr > th {
    border-bottom: 1px solid rgba(250, 204, 21, 0.1);
    vertical-align: middle;
    color: #fff !important;
}

/* Table striped rows - dark theme */
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.02);
}

.table-striped > tbody > tr:nth-of-type(even) {
    background-color: transparent;
}

.table-striped tbody tr td,
.table-striped tbody tr th {
    color: #fff !important;
}

/* Table hover - dark theme */
.table-hover > tbody > tr:hover {
    background-color: rgba(250, 204, 21, 0.08);
    color: #facc15 !important;
}

.table-hover > tbody > tr:hover > td,
.table-hover > tbody > tr:hover > th {
    color: #facc15 !important;
}

/* ===== MODERN ALERTS ===== */
.alert {
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
}

.alert-info {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.alert-warning {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    color: #9a3412;
}

.alert-danger {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    color: #991b1b;
}

.alert-success {
    background: linear-gradient(135deg, #bbf7d0 0%, #86efac 100%);
    color: #166534;
}

.alert-secondary {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #374151;
}

/* ===== MODERN FORMS ===== */
.form-control,
.form-select {
    border-radius: 10px;
    border: 1px solid rgba(250, 204, 21, 0.2);
    padding: 12px 16px;
    transition: all 0.2s;
    background-color: #171717 !important;
    color: #fff !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #facc15;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.15);
}

.form-label {
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 8px;
}

/* ===== CHECKBOX & RADIO ===== */
.form-check-input:checked {
    background-color: #facc15;
    border-color: #facc15;
}

/* ===== MODAL STYLES ===== */
/* Ensure modals appear above the navbar (navbar has z-index: 1100) */
.modal,
.bootbox-modal {
    z-index: 1200 !important;
}

.modal-backdrop,
.bootbox-backdrop {
    z-index: 1190 !important;
}

/* Bootbox confirm dialogs */
div.bootbox-confirm {
    z-index: 1200 !important;
}

.bootbox-confirm .modal-content {
    border-radius: 16px;
    border: none;
    background-color: #fff !important;
}

.bootbox-confirm .modal-header {
    background: #fff;
    border-bottom: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 16px 16px 0 0;
    padding: 20px 24px;
    color: #1a1a1a;
}

.bootbox-confirm .modal-body {
    padding: 24px;
    color: #1a1a1a;
}

.bootbox-confirm .modal-footer {
    background: #fff;
    border-top: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 0 0 16px 16px;
    padding: 16px 24px;
}

/* ===== TOAST STYLES ===== */
/* Ensure toasts appear above the navbar (navbar has z-index: 1100) */
#toastContainer {
    z-index: 1200 !important;
}

.modal-content {
    border-radius: 16px;
    border: none;
    background-color: #fff !important;
}

.modal-header {
    background: #fff;
    border-bottom: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 16px 16px 0 0;
    padding: 20px 24px;
    color: #1a1a1a;
}

.modal-body {
    padding: 24px;
    color: #1a1a1a;
}

.modal-footer {
    background: #fff;
    border-top: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 0 0 16px 16px;
    padding: 16px 24px;
}

/* ===== PAGINATION ===== */
.pagination .page-link {
    border: 1px solid rgba(250, 204, 21, 0.2);
    color: #fff;
    border-radius: 10px;
    margin: 0 4px;
    transition: all 0.2s;
    background-color: #171717;
}

.pagination .page-link:hover {
    background-color: rgba(250, 204, 21, 0.15);
    border-color: #facc15;
    color: #facc15;
}

.pagination .page-item.active .page-link {
    background-color: #facc15;
    border-color: #facc15;
    color: #000;
}

/* ===== FOOTER ===== */
footer {
    background-color: #171717 !important;
    border-top: 1px solid rgba(250, 204, 21, 0.2) !important;
    padding: 24px 0;
    margin-top: auto;
    flex-shrink: 0;
    color: #9ca3af;
}

footer .footer {
    background-color: transparent !important;
}

footer a {
    color: #facc15;
    text-decoration: none;
    transition: all 0.2s;
}

footer a:hover {
    color: #fde047;
    text-decoration: underline;
}

/* ===== PAGE HEADER ===== */
.page-heading {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.1) 0%, rgba(10, 10, 10, 1) 100%);
    padding: 0px 0 40px 0;
    margin-bottom: 30px;
}

.page-heading h1 {
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.page-heading p {
    color: #9ca3af;
    font-size: 1.1rem;
}

/* ===== DASHBOARD CARDS ===== */
.dashboard-card {
    background: #171717;
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(250, 204, 21, 0.2);
}

.dashboard-card .card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(250, 204, 21, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #facc15;
    font-size: 24px;
    margin-bottom: 16px;
}

.dashboard-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.dashboard-card p {
    color: #9ca3af;
    font-size: 0.9rem;
    margin: 0;
}

/* ===== LIST GROUPS ===== */
.list-group-item {
    border: 1px solid rgba(250, 204, 21, 0.1);
    transition: all 0.2s;
    color: #fff;
}

.list-group-item:hover {
    background-color: rgba(250, 204, 21, 0.05);
}

.list-group-item.active {
    background-color: #facc15 !important;
    border-color: #facc15 !important;
    color: #000 !important;
}

/* ===== UTILITY CLASSES ===== */
.bg-cream {
    background-color: #0a0a0a !important;
}

.bg-warm {
    background-color: #171717 !important;
}

.bg-warm-light {
    background-color: #262626 !important;
}

.text-accent {
    color: #facc15 !important;
}

.border-accent {
    border-color: #facc15 !important;
}

/* ===== ACTION BAR ===== */
.action-bar {
    background: #171717;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(250, 204, 21, 0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* ===== QUICK ACTION BUTTONS ===== */
.quick-action-btn {
    background: #171717;
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #9ca3af;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    height: 70px;
}

.quick-action-btn:hover {
    background: #262626;
    border-color: #facc15;
    color: #facc15;
}

.quick-action-btn i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #facc15;
}

.quick-action-btn span {
    font-size: 12px;
    font-weight: normal;
    color: #6b7280;
}

/* ===== SCROLL TO TOP ===== */
#scrollTopBtn {
    width: 42px;
    height: 42px;
    padding: 0;
    background-color: #facc15;
    color: #000;
    border: 1px solid #facc15;
    border-radius: 50%;
    display: none;
    font-size: 18px;
    transition: all 0.2s;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

#scrollTopBtn:hover {
    background-color: #fde047;
    transform: translateY(-2px);
}

/* ===== PRELOADER ===== */
.js-preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0a0a0a;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-inner .dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #facc15;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .listing-page {
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }

    .navbar {
        padding: 8px 0;
    }

    .navbar .navbar-brand {
        font-size: 1.2rem;
    }

    .dashboard-card {
        padding: 16px;
    }

    .card-body {
        padding: 16px;
    }

    .action-bar {
        padding: 12px 16px;
    }

    .quick-action-btn {
        min-width: 80px;
        height: 60px;
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

*:focus-visible {
    outline: 2px solid #facc15;
    outline-offset: 2px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

/* ===== STATUS COLORS ===== */
.status-success {
    color: #166534;
    background: #bbf7d0;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status-warning {
    color: #9a3412;
    background: #fed7aa;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status-danger {
    color: #991b1b;
    background: #fecaca;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status-info {
    color: #92400e;
    background: #fef3c7;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

/* ===== PAYMENT BUTTONS ===== */
.btn-platnosc {
    flex: 1 1 0;
    min-width: 0;
}

.btn-platnosc.active {
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%) !important;
    border-color: #facc15 !important;
    color: #000 !important;
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.4);
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .action-bar,
    .no-print {
        display: none !important;
    }

    body {
        padding-top: 0 !important;
    }

    .card {
        break-inside: avoid;
    }
}

.li-lokal-misconfig {
    background-color: inherit !important; 
    color: inherit; 
    color: inherit; 
    text-align: left;
}

.highlight td,
.table tbody tr.highlight td,
.table > tbody > tr.highlight > td {
    background-color: gold !important;
    color: #000 !important;
}

.table-choose-adres {
    max-height: 460px !important;
}

.table-scrollable {
    /* set the height to enable overflow of the table */
    /*max-height: 150px;*/
    overflow-x: auto;
    overflow-y: auto;
    scrollbar-width: thin;
}


    .table-scrollable thead th {
        border: none;
    }

    .table-scrollable thead th {
        /* Set header to stick to the top of the container. */
        position: sticky;
        top: 0px;
        /* This is needed otherwise the sticky header will be transparent 
    */
        /*background-color: white;*/
        /* Because bootstrap adds `border-collapse: collapse` to the
     * table, the header boarders aren't sticky.
     * So, we need to make some adjustments to cover up the actual
     * header borders and created fake borders instead
     */
        margin-top: -1px;
        margin-bottom: -1px;
        /* This is our fake border (see above comment) */
        box-shadow: inset 0 1px 0 #dee2e6, inset 0 -1px 0 #dee2e6;
    }
/* Global AJAX Blocking Overlay */
.global-ajax-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999 !important;
    display: none;
}

.global-ajax-hidden {
    display: none !important;
}

.global-ajax-show {
    display: block !important;
}

.global-ajax-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* ===== ADMIN MENU BORDER ===== */
.admin-menu-border {
    border: 2px solid #ef4444 !important;
    border-radius: 8px;
    padding: 6px 12px !important;
}

/* ===== DATETIMEPICKER DARK THEME ===== */
.bootstrap-datetimepicker-widget {
    background-color: #1a1a1a !important;
    border: 1px solid rgba(250, 204, 21, 0.3) !important;
    border-radius: 12px !important;
    color: #fff !important;
}

.bootstrap-datetimepicker-widget .picker-switch {
    color: #facc15 !important;
}

.bootstrap-datetimepicker-widget .picker-switch:hover,
.bootstrap-datetimepicker-widget .picker-switch:focus {
    background-color: rgba(250, 204, 21, 0.1) !important;
    color: #facc15 !important;
}

.bootstrap-datetimepicker-widget table th {
    color: #9ca3af !important;
    font-weight: 600 !important;
}

.bootstrap-datetimepicker-widget table th.picker-switch {
    color: #facc15 !important;
}

.bootstrap-datetimepicker-widget table td {
    color: #fff !important;
}

.bootstrap-datetimepicker-widget table td.day:hover,
.bootstrap-datetimepicker-widget table td.hour:hover,
.bootstrap-datetimepicker-widget table td.minute:hover,
.bootstrap-datetimepicker-widget table td.second:hover {
    background-color: rgba(250, 204, 21, 0.15) !important;
    color: #facc15 !important;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background-color: #facc15 !important;
    color: #000 !important;
    font-weight: 600 !important;
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: #facc15 !important;
}

.bootstrap-datetimepicker-widget table td span:hover {
    background-color: rgba(250, 204, 21, 0.15) !important;
}

.bootstrap-datetimepicker-widget table td span.active {
    background-color: #facc15 !important;
    color: #000 !important;
}

.bootstrap-datetimepicker-widget .timepicker-picker .btn-primary,
.bootstrap-datetimepicker-widget .timepicker-hours .btn-primary,
.bootstrap-datetimepicker-widget .timepicker-minutes .btn-primary {
    background-color: #facc15 !important;
    border-color: #facc15 !important;
    color: #000 !important;
}

.bootstrap-datetimepicker-widget .timepicker-picker button,
.bootstrap-datetimepicker-widget .timepicker-hours button,
.bootstrap-datetimepicker-widget .timepicker-minutes button {
    background-color: #262626 !important;
    border-color: rgba(250, 204, 21, 0.2) !important;
    color: #fff !important;
}

.bootstrap-datetimepicker-widget .timepicker-picker button:hover,
.bootstrap-datetimepicker-widget .timepicker-hours button:hover,
.bootstrap-datetimepicker-widget .timepicker-minutes button:hover {
    background-color: rgba(250, 204, 21, 0.15) !important;
    color: #facc15 !important;
}

.bootstrap-datetimepicker-widget .picker-switch.accordion-toggle {
    background-color: transparent !important;
}

.bootstrap-datetimepicker-widget .collapse.in {
    background-color: #1a1a1a !important;
}

.bootstrap-datetimepicker-widget .list-unstyled li {
    color: #fff !important;
}

.bootstrap-datetimepicker-widget .list-unstyled li a {
    color: #fff !important;
}

.bootstrap-datetimepicker-widget .list-unstyled li a:hover {
    background-color: rgba(250, 204, 21, 0.15) !important;
    color: #facc15 !important;
}

/* ===== DATETIMEPICKER NAVIGATION ARROWS ===== */
.bootstrap-datetimepicker-widget .picker-switch::before,
.bootstrap-datetimepicker-widget .picker-switch::after {
    display: none !important;
}

/* Previous button (left arrow) */
.bootstrap-datetimepicker-widget [data-action="previous"] {
    position: relative;
}

.bootstrap-datetimepicker-widget [data-action="previous"]::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 6px 4px 0;
    border-color: transparent #facc15 transparent transparent;
}

/* Next button (right arrow) */
.bootstrap-datetimepicker-widget [data-action="next"] {
    position: relative;
}

.bootstrap-datetimepicker-widget [data-action="next"]::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 0 4px 6px;
    border-color: transparent transparent transparent #facc15;
}

/* Make buttons more visible */
.bootstrap-datetimepicker-widget [data-action="previous"],
.bootstrap-datetimepicker-widget [data-action="next"] {
    background-color: rgba(250, 204, 21, 0.1) !important;
    border-color: rgba(250, 204, 21, 0.3) !important;
    color: #facc15 !important;
    min-width: 32px;
    min-height: 32px;
}

.bootstrap-datetimepicker-widget [data-action="previous"]:hover,
.bootstrap-datetimepicker-widget [data-action="next"]:hover {
    background-color: rgba(250, 204, 21, 0.2) !important;
    border-color: #facc15 !important;
}

/* Hide invisible glyphicon spans */
.bootstrap-datetimepicker-widget .glyphicon {
    display: none !important;
}
