@font-face {
    font-family: "Almarai";
    src: url("../fonts/Almarai-Light.ttf") format("truetype");
    font-weight: 300;
}

@font-face {
    font-family: "Almarai";
    src: url("../fonts/Almarai-Regular.ttf") format("truetype");
    font-weight: 500;
}

@font-face {
    font-family: "Almarai";
    src: url("../fonts/Almarai-Bold.ttf") format("truetype");
    font-weight: 700;
}

html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    font-family: "Almarai";
    background-color: black;
    background-image: url("../media/images/background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fw-300 {
    font-weight: 300;
}

.fw-500 {
    font-weight: 500;
}

.fw-700 {
    font-weight: 700;
}

.fs-12 {
    font-size: 12px;
}

.fs-14 {
    font-size: 14px;
}

.fs-16 {
    font-size: 16px;
}

.fs-18 {
    font-size: 18px;
}

.fs-20 {
    font-size: 20px;
}

.fs-22 {
    font-size: 22px;
}

.fs-24 {
    font-size: 24px;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d7d7e0;
    z-index: 99999;
    filter: brightness(70%);
}

#status {
    position: relative;
    top: 50%;
    margin: -20px 0 0 -20px;
}

#preloader>#status>img {
    width: 300px;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    animation-name: pulse;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.2;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0.2;
        transform: scale(0.9);
    }
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

input[type="email"] {
    direction: rtl !important;
}

input[type="checkbox"]:checked+.checkbox-label .card-label,
input[type="radio"]:checked+.checkbox-label .card-label {
    background-color: #061492 !important;
    color: #fff !important;
}

.checkbox-label {
    display: inline-block;
    cursor: pointer;
}

.invalidInput {
    border: 2px solid #dc3545 !important;
}

.feedback {
    color: #dc3545;
    font-size: 10px;
    font-weight: 700;
    position: absolute;
}

/* Custom Radio/Checkbox Button Style */
.btn-check:checked+.btn-outline-primary {
    background-color: #0d6efd !important;
    color: white !important;
    border-color: #0d6efd !important;
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
}

.btn-check:checked+.btn-outline-success {
    background-color: #198754 !important;
    color: white !important;
    border-color: #198754 !important;
    box-shadow: 0 0 10px rgba(25, 135, 84, 0.5);
}

.btn-check:checked+.btn-dark {
    background-color: #0d6efd !important;
    color: white !important;
    border-color: #0d6efd !important;
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
}

.custom-btn-group .btn {
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 500;
}

.custom-btn-group .btn:hover {
    transform: translateY(-2px);
}

.invalidInput+.btn-outline-primary,
.invalidInput+.btn-outline-success,
.invalidInput+.btn-dark {
    border: 2px solid #dc3545 !important;
}

.footer {
    margin-top: auto;
    background-color: #212529;
    padding: 15px 0;
    display: flex;
    align-items: center;
}

/* breadcrumb.php's default look — matches its previous inline style
   byte-for-byte, kept here as the fallback for pages without
   body.app-shell (e.g. seats pages not migrated to the new shell).
   body.app-shell pages get a light-theme override in design-system.css. */
.breadcrumb-ds {
    padding: 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.breadcrumb-ds .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-ds .breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
}

.breadcrumb-ds .breadcrumb-item + .breadcrumb-item::before {
    color: #6c757d;
    content: "\f104"; /* FontAwesome angle-left for RTL */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.footer a {
    text-decoration: none;
    color: white;
}

.event-logo {
    border-radius: 10px;
    width: 150px;
    height: 150px;
    border: 2px solid white;
    padding: 10px;
    object-fit: contain;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.card {
    background-color: #000;
}

/* Guest table / monitor header action rows: wrap buttons instead of
   overflowing the card horizontally on small screens. */
.card-header-actions {
    flex-wrap: wrap;
}

/* DataTables' default layout CSS pins the search/length and info/pagination
   cells apart using physical margin-left/margin-right: auto. Those don't
   flip with dir="rtl", so on this RTL site they fight the flex container's
   justify-content: space-between and collapse both cells toward the center
   instead of hugging opposite ends. Swap the auto margins for RTL. */
html[dir="rtl"] div.dt-container div.dt-layout-row div.dt-layout-cell.dt-layout-start {
    margin-right: 0;
    margin-left: auto;
}

html[dir="rtl"] div.dt-container div.dt-layout-row div.dt-layout-cell.dt-layout-end {
    margin-left: 0;
    margin-right: auto;
}

/* Confirm/cancel modal footer buttons (.modalButtons) are w-50 with
   m-0 (Bootstrap's margin utilities are !important, so a margin-based
   gap on the buttons themselves can't override it) — gap on the flex
   container is unaffected by that and works regardless. nowrap: two
   w-50 buttons plus this gap add up to just over 100%, and
   .modal-footer's default flex-wrap:wrap would drop the second button
   to its own line instead of letting them shrink to fit one line. */
.modal-footer.justify-content-center {
    flex-wrap: nowrap;
    gap: 12px;
}
/* Seat settings "full view" (body.chart-fullscreen set by v3_toggleFullscreen) */
body.chart-fullscreen .app-sidebar,
body.chart-fullscreen .sidebar-toggle-btn,
body.chart-fullscreen .seats-settings-col,
body.chart-fullscreen .breadcrumb-ds,
body.chart-fullscreen footer {
    display: none !important;
}

body.chart-fullscreen .seats-preview-col {
    flex: 0 0 100%;
    max-width: 100%;
}

body.chart-fullscreen {
    overflow-y: auto;
}

/* Confirm dialogs (appConfirm in functions.js, and the assign page's own) */
.confirm-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.confirm-icon.tone-warning { background: rgba(245, 158, 11, .12); color: #d97706; }
.confirm-icon.tone-danger { background: rgba(239, 68, 68, .12); color: #dc2626; }
.confirm-icon.tone-primary { background: var(--primary-light); color: var(--primary); }

/* Event edit/delete icon buttons (events list cards + event page banner) */
.event-card-actions { position: absolute; top: 12px; inset-inline-end: 12px; display: flex; gap: 6px; z-index: 2; }
.btn-icon-ds { width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--border, rgba(255,255,255,.12)); background: var(--surface); color: var(--text-muted, #9CA3AF); }
.btn-icon-ds:hover { color: var(--text); border-color: var(--primary); }
.btn-icon-ds.text-danger:hover { border-color: #dc2626; }
