html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

/*body {

    background-color: black;
    color: white;*/
    /*margin-bottom: 60px;*/
/*}*/

body {
    background-color: #060907;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.gold-gradient-text {
    background: linear-gradient(135deg, #FFF1B0 0%, #D4AF37 50%, #AA7C11 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gold-border-glow {
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.18);
}

.gold-button {
    background: linear-gradient(180deg, #F5D061 0%, #D4AF37 55%, #AA7C11 100%);
    color: #0b0f0c;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
    transition: all 0.25s ease;
}

    .gold-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 22px rgba(245, 208, 97, 0.55);
        filter: brightness(1.1);
    }

.felt-texture {
    background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.04) 0%, rgba(0,0,0,0.4) 100%), repeating-linear-gradient(45deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 2px, transparent 2px, transparent 4px);
}

.table-wood-rail {
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8), 0 10px 25px rgba(0,0,0,0.7);
    border: 4px solid #2b1810;
}

/* Wheel animation */


.floating-accent {
    animation: floatParticle 8s infinite ease-in-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #090e0b;
}

::-webkit-scrollbar-thumb {
    background: #274735;
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #D4AF37;
    }

.site-container {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

.content-body {
    flex: 1; /* Tells the middle div to grow and fill all leftover space */
}

/* 1. Reset defaults and make the body a full-screen flex container */
/*body {
    margin: 0;
    padding: 0;
    height: 100vh;*/ /* Full viewport height */
    /*display: flex;
    justify-content: center;*/ /* Centers horizontally */
    /*align-items: center;*/ /* Centers vertically */
    /*background-color: #f0f2f5;
    font-family: Arial, sans-serif;
}*/

/* 2. Container to stack buttons vertically */
.button-container {
    display: flex;
    flex-direction: column; /* Stacks children vertically */
    gap: 20px; /* Space between the two buttons */
    align-items: center; /* Keeps buttons aligned in the center */
}

/* 3. Style the buttons */
.img-button {
    display: flex;
    align-items: center; /* Centers image and text vertically */
    justify-content: center; /* Centers image and text horizontally */
    border: none;
    cursor: pointer;
    padding-inline: 1px;
    width: 200px; /* Fixed width so buttons match */
}


    /* Hover and active states for better user experience */
    .img-button:hover {
        background-color: #0056b3;
    }

    .img-button:active {
        transform: scale(0.98);
    }

    /* 4. Style the images inside the buttons */
    .img-button img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Fills the button while keeping the image proportions */
        display: block;
    }

.light-modal {
    background-color: lightgray;
}

    .light-modal h5 {
        color: black;
    }

    .light-modal .h5 {
        color: black;
    }

    .light-modal .row {
        color: black;
    }

    .light-modal .close {
        color: black;
    }

    .light-modal .row .form-control {
        background-color: white;
        color: black;
    }

    .light-modal form .form-control {
        background-color: white;
        color: black;
    }

    .light-modal form label {
        color: black;
    }

    .light-modal .form-group label {
        color: black;
    }

    .light-modal .modal-body #table_successfulContacts_info {
        color: black;
    }

    .light-modal .modal-body #table_failedContacts_info {
        color: black;
    }

    .light-modal .modal-body label {
        color: black;
    }

    .light-modal .modal-body input {
        background-color: white;
        color: black;
    }

    .light-modal .modal-body textarea {
        background-color: white;
        color: black;
    }

.close {
    float: right;
    line-height: 1;
    opacity: .5;
}
.modal-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
}

    .modal-links a {
        color: #334fc0;
    }
form {
    display: grid;
    gap: 10px;
}

label {
    margin-top: 8px;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #c9d1df;
    border-radius: 8px;
    font: inherit;
}

    input:focus {
        outline: 2px solid #5c78ff;
        outline-offset: 1px;
    }

.primary-button {
    margin-top: 14px;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    background: #172033;
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.form-message {
    min-height: 22px;
    margin-top: 5px;
    font-size: .92rem;
}

    .form-message.error {
        color: #b42318;
    }

    .form-message.success {
        color: #087443;
    }
.checkbox-container {
    display: inline-flex; /* Keeps the element compact and pulled to the left */
    align-items: center; /* Perfectly centers the checkbox and text vertically */
    gap: 8px; /* Adds clean, modern spacing between box and text */
    cursor: pointer; /* Changes the mouse cursor to a pointer on hover */
}

.page-shell {
    min-height: calc(100vh - 64px);
    padding: 48px 24px;
    color: black;
}

.form-card {
    width: min(720px, 100%);
    margin: 0 auto;
    padding: 36px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(23,32,51,.10);
}

    .form-card h1 {
        margin-top: 6px;
    }

    .form-card h2 {
        margin-bottom: 4px;
    }

    .form-card hr {
        border: 0;
        border-top: 1px solid #e3e7ef;
        margin: 28px 0;
    }

.full-width {
    width: 100% !important;
}

/* Style the entire Table Header */
table.dataTable thead th {
    background-color: #2D323E !important;
    color: #FFFFFF !important;
}

/* Style the Table Body cells globally */
table.dataTable tbody td {
    background-color: #F9F9F9;
    color: #333333;
}

.dataTables_filter label {
    color: white; 
}

.dataTables_filter input {
    color: white;
    background-color: black;
}

/* Change color of the "Showing 1 to 10 of 50 entries" info text */
.dataTables_wrapper .dataTables_info {
    color: white !important;
    /*color: #333333 !important;*/
    font-size: 14px;
}

/* Change text and link color for pagination buttons */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #007bff !important;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
}

    /* Change color for hovered/active pagination buttons */
    .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        color: #ffffff !important;
        background-color: #007bff !important;
        border-color: #007bff !important;
    }

    /* Change color for the current/active page button */
    .dataTables_wrapper .dataTables_paginate .paginate_button.current,
    .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
        color: #ffffff !important;
        background-color: #28a745 !important;
        border-color: #28a745 !important;
    }

    /* Change color for disabled pagination buttons (e.g., Previous/Next at edges) */
    .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
    .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
        color: #6c757d !important;
        background-color: #e9ecef !important;
        border-color: #dee2e6 !important;
    }

/*Styles for Custom Modal Dialog*/

.modal-overlay {
    position: fixed;
    inset: 0;
    background: #020906b8;
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(24px, 12vh, 130px) 20px 24px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 1000;
}
/* Top anchoring keeps the dialog in the upper half on ordinary screens. */
.modal-box {
    position: relative;
    width: 100%;
    max-width: 460px;
    padding: 30px;
    border: 5px solid #523521;
    border-radius: 20px;
    background: radial-gradient(ellipse at top, #206149, #103b2c 78%);
    box-shadow: 0 0 0 1px #b9944d, inset 0 0 0 1px #e1bc5880, inset 0 0 35px #00170e80, 0 24px 70px #0009;
    text-align: center;
    transform: translateY(-12px);
    transition: transform .2s ease;
}

.modal-brand {
    color: var(--gold);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.3px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e1bc584d;
    margin-bottom: 22px;
}

.modal-message {
    font-size: 17px;
    color: #fff8e8;
    margin-bottom: 26px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 11px 24px;
    border: 1px solid #e1bc5890;
    border-radius: 8px;
    font: 700 14px system-ui, sans-serif;
    cursor: pointer;
    min-width: 100px;
    box-shadow: 0 3px 0 #0005;
    transition: filter .15s, transform .15s;
}

.modal-btn-primary {
    background: linear-gradient(#f0d582, #c69b3f);
    color: #261d0c;
    border-color: #f0d582;
}

.modal-btn-secondary {
    background: linear-gradient(#244f3e, #123527);
    color: #f7e8b8;
}

.modal-btn:hover {
    filter: brightness(1.12);
}

.modal-btn:active {
    transform: translateY(1px);
}

.modal-btn:focus-visible {
    outline: 3px solid #fff3c4;
    outline-offset: 4px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

    .modal-overlay.active .modal-box {
        transform: translateY(0);
    }

@media(max-width: 540px) {

    .modal-box {
        padding: 24px 20px;
    }
}

@media(prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
    }
}

/*Styles for the Account Recovery Page*/
/* Scoped to this page to avoid changing other forms. */
.recovery-page,
.recovery-page * {
    box-sizing: border-box;
}

.recovery-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(32px, 8vh, 90px) 20px 48px;
    color: #f7f2df;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background: radial-gradient(ellipse at top, #173b30, #081a16 75%);
}

    .recovery-page .form-card {
        width: 100%;
        max-width: 460px;
        padding: 32px;
        border: 5px solid #523521;
        border-radius: 20px;
        background: radial-gradient(ellipse at top, #206149, #103b2c 78%);
        box-shadow: 0 0 0 1px #b9944d, inset 0 0 0 1px #e1bc5880, inset 0 0 35px #00170e80, 0 24px 70px #0009;
    }

    .recovery-page .recovery-brand {
        margin-bottom: 26px;
        padding-bottom: 20px;
        border-bottom: 1px solid #e1bc584d;
        color: #e1bc58;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 1.3px;
        text-align: center;
    }

    .recovery-page .eyebrow {
        margin: 0 0 8px;
        color: #e1bc58;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

    .recovery-page h1 {
        margin: 0 0 12px;
        color: #fff8e8;
        font-family: Georgia, serif;
        font-size: clamp(28px, 5vw, 34px);
        font-weight: 400;
    }

    .recovery-page .recovery-intro {
        margin: 0 0 26px;
        color: #c5d4ca;
        font-size: 14px;
        line-height: 1.6;
    }

    .recovery-page label {
        display: block;
        margin-bottom: 8px;
        color: #f7e8b8;
        font-size: 14px;
        font-weight: 600;
    }

    .recovery-page input[type="password"] {
        display: block;
        width: 100%;
        min-height: 48px;
        margin-bottom: 20px;
        padding: 12px 14px;
        border: 1px solid #8f804e;
        border-radius: 8px;
        outline: none;
        background: #081e17;
        color: #fff8e8;
        font: inherit;
        color-scheme: dark;
        box-shadow: inset 0 2px 5px #0004;
    }

        .recovery-page input[type="password"]:focus {
            border-color: #e1bc58;
            outline: 3px solid #e1bc5833;
            outline-offset: 2px;
        }

    .recovery-page .form-message {
        margin: 0 0 18px;
        color: #ffe0d7;
        font-size: 14px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

        .recovery-page .form-message:empty {
            display: none;
        }

        /* Optional classes your existing JavaScript can apply. */
        .recovery-page .form-message.error {
            color: #ffd0c7;
        }

        .recovery-page .form-message.success {
            color: #b9f0c9;
        }

    .recovery-page .primary-button {
        width: 100%;
        min-height: 48px;
        padding: 12px 24px;
        border: 1px solid #f0d582;
        border-radius: 8px;
        background: linear-gradient(#f0d582, #c69b3f);
        color: #261d0c;
        font: 700 15px system-ui, sans-serif;
        cursor: pointer;
        box-shadow: 0 3px 0 #0005;
    }

        .recovery-page .primary-button:hover {
            filter: brightness(1.08);
        }

        .recovery-page .primary-button:active {
            transform: translateY(1px);
        }

        .recovery-page .primary-button:focus-visible {
            outline: 3px solid #fff3c4;
            outline-offset: 4px;
        }

        .recovery-page .primary-button:disabled {
            opacity: 0.6;
            cursor: wait;
        }

@media (max-width: 540px) {
    .recovery-page {
        padding: 28px 16px 36px;
    }

        .recovery-page .form-card {
            padding: 26px 20px;
        }
}


/*Styles for the Advertisement upload modal*/
#advModal {
    background: rgba(2, 9, 6, 0.76) !important;
    backdrop-filter: blur(4px);
    overflow-y: auto;
    color: #fff8e8;
}

    #advModal .modal-dialog {
        width: calc(100% - 32px);
        max-width: 580px;
        margin: clamp(24px, 8vh, 90px) auto 24px;
    }

    #advModal .modal-content {
        overflow: hidden;
        border: 5px solid #523521;
        border-radius: 18px;
        background: radial-gradient( ellipse at top, #206149, #103b2c 78% );
        box-shadow: 0 0 0 1px #b9944d, inset 0 0 0 1px rgba(225, 188, 88, 0.5), inset 0 0 35px rgba(0, 23, 14, 0.5), 0 24px 70px rgba(0, 0, 0, 0.6);
    }

    #advModal .modal-header {
        align-items: center;
        gap: 16px;
        padding: 22px 26px;
        border-bottom: 1px solid rgba(225, 188, 88, 0.3);
    }

    #advModal .modal-title {
        margin: 0;
        color: #e1bc58;
        font-family: Georgia, serif;
        font-size: 24px;
        font-weight: 400;
        line-height: 1.3;
    }

    /* Override Bootstrap's close icon because the HTML uses × */
    #advModal .btn-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 34px;
        height: 34px;
        margin: 0;
        padding: 0;
        border: 1px solid rgba(225, 188, 88, 0.45);
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.2);
        color: #f7e8b8;
        font: 26px/1 Arial, sans-serif;
        opacity: 1;
        cursor: pointer;
    }

        #advModal .btn-close:hover {
            background: rgba(225, 188, 88, 0.15);
            color: #fff;
        }

    #advModal .modal-body {
        padding: 26px;
    }

    #advModal .form-label {
        display: block;
        margin-bottom: 8px;
        color: #f7e8b8;
        font-size: 14px;
        font-weight: 600;
    }

    #advModal .form-control {
        min-height: 46px;
        padding: 11px 13px;
        border: 1px solid #58745d;
        border-radius: 8px;
        background: #0b291f;
        color: #fff8e8;
        font-size: 15px;
        color-scheme: dark;
        transition: border-color 0.15s, box-shadow 0.15s;
    }

        #advModal .form-control::placeholder {
            color: #a4b7ab;
            opacity: 1;
        }

        #advModal .form-control:focus {
            border-color: #e1bc58;
            background: #0b291f;
            color: #fff8e8;
            outline: none;
            box-shadow: 0 0 0 3px rgba(225, 188, 88, 0.18);
        }

    #advModal #customFileName {
        margin-bottom: 10px !important;
    }

    #advModal input[type="file"] {
        padding: 0;
        overflow: hidden;
        font-size: 14px;
    }

        #advModal input[type="file"]::file-selector-button {
            min-height: 46px;
            margin: 0 12px 0 0;
            padding: 10px 14px;
            border: 0;
            border-right: 1px solid #58745d;
            background: #244f3e;
            color: #f7e8b8;
            font-weight: 600;
            cursor: pointer;
        }

            #advModal input[type="file"]::file-selector-button:hover {
                background: #30654f;
            }

    #advModal .progress {
        height: 23px;
        overflow: hidden;
        border: 1px solid #58745d;
        border-radius: 8px;
        background: #081f17;
    }

    #advModal .progress-bar {
        background-color: #d6af50;
        color: #261d0c;
        font-size: 12px;
        font-weight: 700;
    }

    #advModal #uploadStatus {
        color: #e9dfbd;
        font-size: 14px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

        #advModal #uploadStatus:empty {
            display: none;
        }

        #advModal #uploadStatus .text-success,
        #advModal #uploadStatus.text-success {
            color: #9ee0ae !important;
        }

        #advModal #uploadStatus .text-danger,
        #advModal #uploadStatus.text-danger {
            color: #ffaaaa !important;
        }

    #advModal .modal-footer {
        gap: 12px;
        padding: 18px 26px 22px;
        border-top: 1px solid rgba(225, 188, 88, 0.3);
        background: rgba(0, 0, 0, 0.1);
    }

        #advModal .modal-footer .btn {
            min-width: 110px;
            margin: 0;
            padding: 11px 20px;
            border: 1px solid rgba(225, 188, 88, 0.6);
            border-radius: 8px;
            font-size: 14px;
            font-weight: 700;
            box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
            transition: filter 0.15s, transform 0.15s;
        }

    #advModal .btn-primary {
        border-color: #f0d582 !important;
        background: linear-gradient(#f0d582, #c69b3f) !important;
        color: #261d0c !important;
    }

    #advModal .btn-secondary {
        background: linear-gradient(#244f3e, #123527) !important;
        color: #f7e8b8 !important;
    }

    #advModal .modal-footer .btn:hover:not(:disabled) {
        filter: brightness(1.12);
    }

    #advModal .modal-footer .btn:active:not(:disabled) {
        transform: translateY(1px);
    }

    #advModal button:focus-visible {
        outline: 3px solid #fff3c4;
        outline-offset: 3px;
    }

    #advModal .btn:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }

@media (max-width: 540px) {
    #advModal .modal-header,
    #advModal .modal-body,
    #advModal .modal-footer {
        padding: 18px;
    }

    #advModal .modal-title {
        font-size: 21px;
    }

    #advModal .modal-footer .btn {
        flex: 1;
    }
}

/*Styles for the Advertisement edit modal*/
#advEditModal {
    background: rgba(2, 9, 6, 0.76) !important;
    backdrop-filter: blur(4px);
    overflow-y: auto;
    color: #fff8e8;
}

    #advEditModal .modal-dialog {
        width: calc(100% - 32px);
        max-width: 580px;
        margin: clamp(24px, 8vh, 90px) auto 24px;
    }

    #advEditModal .modal-content {
        overflow: hidden;
        border: 5px solid #523521;
        border-radius: 18px;
        background: radial-gradient( ellipse at top, #206149, #103b2c 78% );
        box-shadow: 0 0 0 1px #b9944d, inset 0 0 0 1px rgba(225, 188, 88, 0.5), inset 0 0 35px rgba(0, 23, 14, 0.5), 0 24px 70px rgba(0, 0, 0, 0.6);
    }

    #advEditModal .modal-header {
        align-items: center;
        gap: 16px;
        padding: 22px 26px;
        border-bottom: 1px solid rgba(225, 188, 88, 0.3);
    }

    #advEditModal .modal-title {
        margin: 0;
        color: #e1bc58;
        font-family: Georgia, serif;
        font-size: 24px;
        font-weight: 400;
        line-height: 1.3;
    }

    /* Override Bootstrap's close icon because the HTML uses × */
    #advEditModal .btn-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 34px;
        height: 34px;
        margin: 0;
        padding: 0;
        border: 1px solid rgba(225, 188, 88, 0.45);
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.2);
        color: #f7e8b8;
        font: 26px/1 Arial, sans-serif;
        opacity: 1;
        cursor: pointer;
    }

        #advEditModal .btn-close:hover {
            background: rgba(225, 188, 88, 0.15);
            color: #fff;
        }

    #advEditModal .modal-body {
        padding: 26px;
    }

    #advEditModal .form-label {
        display: block;
        margin-bottom: 8px;
        color: #f7e8b8;
        font-size: 14px;
        font-weight: 600;
    }

    #advEditModal .form-control {
        min-height: 46px;
        padding: 11px 13px;
        border: 1px solid #58745d;
        border-radius: 8px;
        background: #0b291f;
        color: #fff8e8;
        font-size: 15px;
        color-scheme: dark;
        transition: border-color 0.15s, box-shadow 0.15s;
    }

        #advEditModal .form-control::placeholder {
            color: #a4b7ab;
            opacity: 1;
        }

        #advEditModal .form-control:focus {
            border-color: #e1bc58;
            background: #0b291f;
            color: #fff8e8;
            outline: none;
            box-shadow: 0 0 0 3px rgba(225, 188, 88, 0.18);
        }



    #advEditModal #uploadStatus {
        color: #e9dfbd;
        font-size: 14px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

        #advEditModal #uploadStatus:empty {
            display: none;
        }

        #advEditModal #uploadStatus .text-success,
        #advEditModal #uploadStatus.text-success {
            color: #9ee0ae !important;
        }

        #advEditModal #uploadStatus .text-danger,
        #advEditModal #uploadStatus.text-danger {
            color: #ffaaaa !important;
        }

    #advEditModal .modal-footer {
        gap: 12px;
        padding: 18px 26px 22px;
        border-top: 1px solid rgba(225, 188, 88, 0.3);
        background: rgba(0, 0, 0, 0.1);
    }

        #advEditModal .modal-footer .btn {
            min-width: 110px;
            margin: 0;
            padding: 11px 20px;
            border: 1px solid rgba(225, 188, 88, 0.6);
            border-radius: 8px;
            font-size: 14px;
            font-weight: 700;
            box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
            transition: filter 0.15s, transform 0.15s;
        }

    #advEditModal .btn-primary {
        border-color: #f0d582 !important;
        background: linear-gradient(#f0d582, #c69b3f) !important;
        color: #261d0c !important;
    }

    #advEditModal .btn-secondary {
        background: linear-gradient(#244f3e, #123527) !important;
        color: #f7e8b8 !important;
    }

    #advEditModal .modal-footer .btn:hover:not(:disabled) {
        filter: brightness(1.12);
    }

    #advEditModal .modal-footer .btn:active:not(:disabled) {
        transform: translateY(1px);
    }

    #advEditModal button:focus-visible {
        outline: 3px solid #fff3c4;
        outline-offset: 3px;
    }

    #advEditModal .btn:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }

@media (max-width: 540px) {
    #advEditModal .modal-header,
    #advEditModal .modal-body,
    #advEditModal .modal-footer {
        padding: 18px;
    }

    #advEditModal .modal-title {
        font-size: 21px;
    }

    #advEditModal .modal-footer .btn {
        flex: 1;
    }
}

/*Styles for the User edit modal*/
#userEditModal {
    background: rgba(2, 9, 6, 0.76) !important;
    backdrop-filter: blur(4px);
    overflow-y: auto;
    color: #fff8e8;
}

    #userEditModal .modal-dialog {
        width: calc(100% - 32px);
        max-width: 580px;
        margin: clamp(24px, 8vh, 90px) auto 24px;
    }

    #userEditModal .modal-content {
        overflow: hidden;
        border: 5px solid #523521;
        border-radius: 18px;
        background: radial-gradient( ellipse at top, #206149, #103b2c 78% );
        box-shadow: 0 0 0 1px #b9944d, inset 0 0 0 1px rgba(225, 188, 88, 0.5), inset 0 0 35px rgba(0, 23, 14, 0.5), 0 24px 70px rgba(0, 0, 0, 0.6);
    }

    #userEditModal .modal-header {
        align-items: center;
        gap: 16px;
        padding: 22px 26px;
        border-bottom: 1px solid rgba(225, 188, 88, 0.3);
    }

    #userEditModal .modal-title {
        margin: 0;
        color: #e1bc58;
        font-family: Georgia, serif;
        font-size: 24px;
        font-weight: 400;
        line-height: 1.3;
    }

    /* Override Bootstrap's close icon because the HTML uses × */
    #userEditModal .btn-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 34px;
        height: 34px;
        margin: 0;
        padding: 0;
        border: 1px solid rgba(225, 188, 88, 0.45);
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.2);
        color: #f7e8b8;
        font: 26px/1 Arial, sans-serif;
        opacity: 1;
        cursor: pointer;
    }

        #userEditModal .btn-close:hover {
            background: rgba(225, 188, 88, 0.15);
            color: #fff;
        }

    #userEditModal .modal-body {
        padding: 26px;
    }

    #userEditModal .form-label {
        display: block;
        margin-bottom: 8px;
        color: #f7e8b8;
        font-size: 14px;
        font-weight: 600;
    }

    #userEditModal .form-control {
        min-height: 46px;
        padding: 11px 13px;
        border: 1px solid #58745d;
        border-radius: 8px;
        background: #0b291f;
        color: #fff8e8;
        font-size: 15px;
        color-scheme: dark;
        transition: border-color 0.15s, box-shadow 0.15s;
    }

        #userEditModal .form-control::placeholder {
            color: #a4b7ab;
            opacity: 1;
        }

        #userEditModal .form-control:focus {
            border-color: #e1bc58;
            background: #0b291f;
            color: #fff8e8;
            outline: none;
            box-shadow: 0 0 0 3px rgba(225, 188, 88, 0.18);
        }


    #userEditModal .modal-footer {
        gap: 12px;
        padding: 18px 26px 22px;
        border-top: 1px solid rgba(225, 188, 88, 0.3);
        background: rgba(0, 0, 0, 0.1);
    }

        #userEditModal .modal-footer .btn {
            min-width: 110px;
            margin: 0;
            padding: 11px 20px;
            border: 1px solid rgba(225, 188, 88, 0.6);
            border-radius: 8px;
            font-size: 14px;
            font-weight: 700;
            box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
            transition: filter 0.15s, transform 0.15s;
        }

    #userEditModal .btn-primary {
        border-color: #f0d582 !important;
        background: linear-gradient(#f0d582, #c69b3f) !important;
        color: #261d0c !important;
    }

    #userEditModal .btn-secondary {
        background: linear-gradient(#244f3e, #123527) !important;
        color: #f7e8b8 !important;
    }

    #userEditModal .modal-footer .btn:hover:not(:disabled) {
        filter: brightness(1.12);
    }

    #userEditModal .modal-footer .btn:active:not(:disabled) {
        transform: translateY(1px);
    }

    #userEditModal button:focus-visible {
        outline: 3px solid #fff3c4;
        outline-offset: 3px;
    }

    #userEditModal .btn:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }

@media (max-width: 540px) {
    #userEditModal .modal-header,
    #userEditModal .modal-body,
    #userEditModal .modal-footer {
        padding: 18px;
    }

    #userEditModal .modal-title {
        font-size: 21px;
    }

    #userEditModal .modal-footer .btn {
        flex: 1;
    }
}


/*Styles for datatable buttons*/
.btn-button {
    /* Layout & Spacing */
    display: inline-block;
    padding: 0px 24px; /* Top/Bottom, Left/Right spacing inside the button */
    /* margin: 10px 0; /* Clear space outside the button */
    /* Typography */
    color: #000000; /* Text color */
    text-decoration: none; /* Removes the default link underline */
    font-family: sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    /* Aesthetics */
    background-color: #007bff; /* Primary button color is #007bff Casino gold is #d4af37*/
    border-radius: 4px; /* Slightly rounded corners */
    border: none; /* Removes any default borders */
    /* Smooth interaction */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    /* Hover state effect */
    .btn-button:hover {
        background-color: #d4e9ff; /* Darker shade when hovered is #0056b3 Lighter is #d4e9ff */
    }

    /* Active state effect (when clicked) */
    .btn-button:active {
        transform: scale(0.98); /* Slight push-down animation */
    }

/* CSS rules to truncate content and strictly hold the width */
.tight-column {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* CSS rules for game cards */

.card.playing-card-front,
.bj-card.playing-card-front,
.he-card.playing-card-front,
.pg-card.playing-card-front {
    padding: 0;
    overflow: hidden;
    background: #fff;
}

.playing-card-face {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
