:root{
    --primary:#5b1a8d;
    --primary-dark:#3f1162;
    --silver:#d9d9d9;
    --silver-dark:#bcbcbc;
    --white:rgba(255,255,255,.96);
    --text:#222;
}


.site-header
{
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color:white;

    padding:15px 25px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    flex-wrap:wrap;

    gap:15px;

    box-shadow:
        0 4px 15px rgba(
            0,
            0,
            0,
            0.15
        );

    margin-bottom:25px;
}

.header-brand
{
    font-size:1.3rem;
    font-weight:700;
}

.logo-link
{
    color:white;
    text-decoration:none;
}

.header-nav
{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.header-nav a
{
    color:white;

    text-decoration:none;

    padding:10px 14px;

    border-radius:10px;

    background:
        rgba(
            255,
            255,
            255,
            0.12
        );

    transition:0.2s;
}

.header-nav a:hover
{
    background:
        rgba(
            255,
            255,
            255,
            0.22
        );
}

.header-user
{
    background:
        rgba(
            255,
            255,
            255,
            0.15
        );

    padding:10px 15px;

    border-radius:12px;

    font-weight:600;
}



.event-bookings-grid
{
    display:grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(320px,1fr)
        );

    gap:20px;
}

.event-booking-card
{
    background:#fff;

    border-radius:12px;

    padding:20px;

    border:1px solid #e5e5e5;

    box-shadow:
        0 2px 8px rgba(0,0,0,.05);
}

.event-booking-header
{
    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:15px;
}

.event-booking-info
{
    display:grid;

    grid-template-columns:
        repeat(2,1fr);

    gap:12px;
}

.event-booking-info span
{
    display:block;

    font-size:.85rem;

    color:#777;
}

.event-booking-value
{
    font-size:1.4rem;

    font-weight:bold;

    color:var(--primary);

    margin:15px 0;
}


.contact-icons
{
    white-space:nowrap;
}

.icon-btn
{
    background:none;

    border:none;

    cursor:pointer;

    font-size:1.2rem;

    margin-right:8px;
}

.icon-btn:hover
{
    transform:scale(1.1);
}

.contact-modal
{
    display:none;

    position:fixed;

    inset:0;

    background:
        rgba(0,0,0,.5);

    justify-content:center;

    align-items:center;

    z-index:9999;
}

.contact-modal-content
{
    background:#fff;

    padding:25px;

    border-radius:12px;

    min-width:300px;

    text-align:center;

    box-shadow:
        0 10px 30px
        rgba(0,0,0,.2);
}

.contact-modal-content h3
{
    margin-top:0;
}



.event-actions
{
    white-space:nowrap;
}

.event-actions a
{
    display:inline-flex;

    align-items:center;

    justify-content:center;

    margin-right:5px;

    min-width:40px;
}




.payment-alert {
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
    animation: pulse-payment 2s infinite;
}

@keyframes pulse-payment {

    0% {
        box-shadow: 0 0 0 0 rgba(255,193,7,0.6);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(255,193,7,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255,193,7,0);
    }
}

.stats-grid
{
    display:grid;
    grid-template-columns:
        repeat(auto-fit,minmax(180px,1fr));

    gap:15px;
    margin-bottom:25px;
}

.stats-grid h2
{
    color:#5b1a8d;
    margin-top:0;
}

.stat-card
{
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.15);
    border-radius:10px;
    padding:20px;
    text-align:center;
}


.stat-card h3
{
    margin:0;
    font-size:32px;
    color:#000 !important;
}

.stat-card p
{
    margin-top:10px;
}

.stat-card.payment-alert
{
    background:#ffc107 !important;
    border:3px solid #ff9800 !important;
    color:#000 !important;
    box-shadow:0 0 20px rgba(255,193,7,.8);
}

.stat-card.payment-alert h3,
.stat-card.payment-alert p
{
    color:#000 !important;
}


.price-col {
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
}

.site-header
{
    background:#2d083f;
    color:#fff;
    padding:15px 25px;

    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
}

.header-left h2
{
    margin:0;
    color:#fff;
    font-size:24px;
}

.site-header nav
{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.site-header nav a
{
    color:#fff;
    text-decoration:none;
    font-weight:600;
    padding:8px 12px;
    border-radius:5px;
    transition:all .2s ease;
}

.site-header nav a:hover
{
    background:rgba(255,255,255,.15);
}

.welcome-message
{
    color:#fff;
    font-weight:bold;
    padding:8px 12px;
    background:rgba(255,255,255,.1);
    border-radius:5px;
}

/* ==========================
   PAGE
========================== */

body{
    margin:0;
    font-family:Arial,sans-serif;
    color:black;

    background-image:url('/images/background.jpg');
    background-size:cover;
    background-position:center;
    background-attachment:fixed;
    background-repeat:no-repeat;
}



.terms-box{
    max-height:300px;
    overflow-y:auto;
    background:white;
    color:#222;
    border:1px solid #ccc;
    padding:20px;
    border-radius:5px;
    margin-bottom:20px;
}

#food-section{
    margin-top:30px;
    padding:20px;
    border:1px solid #ddd;
    border-radius:5px;
    background:rgba(255,255,255,.7);
}

#wax-section,
#ukca-section,
#lpg-section{
    margin-top:15px;
    padding:15px;
    border-left:4px solid var(--primary);
}

input[type="checkbox"]{
    width:auto;
    margin-right:10px;
}

body::before{
    content:"";

    position:fixed;
    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(255,255,255,0.60);

    z-index:-1;
}

/* ==========================
   HEADER
========================== */

header
{
    background:#3f1162;
    color:#fff;
    padding:15px 25px;

    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
}

header h2
{
    margin:0;
    color:#fff;
}

header nav
{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

header nav a
{
    color:#fff;
    text-decoration:none;
    font-weight:bold;
}

header nav a:hover
{
    text-decoration:underline;
}

.welcome-message
{
    color:#fff;
    font-weight:bold;
}


header h1{
    margin:0;
    color:var(--silver);
}

nav{
    margin-top:15px;
}

nav a{
    color:white;
    text-decoration:none;
    font-weight:bold;
    margin-right:20px;
}

nav a:hover{
    color:var(--silver);
}

/* ==========================
   CONTAINERS
========================== */

.container{
    max-width:1200px;
    margin:40px auto;
    padding:20px;
}

.small-container{
    max-width:700px;
    margin:40px auto;
    padding:20px;
}

.form-container{
    max-width:700px;
    margin:40px auto;
}

/* ==========================
   CARDS
========================== */

.card{
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.15);
    border-radius:10px;
    padding:20px;
    text-align:center;
}

.card h1,
.card h2,
.card h3{
    color:var(--primary);
    margin-top:0;
}

/* BOOKING OVERVIEW */

.filter-card
{
    display:block;

    text-decoration:none !important;

    color:#000 !important;

    background:rgba(255,255,255,0.08);

    border:1px solid rgba(255,255,255,0.15);

    border-radius:12px;

    padding:20px;

    transition:.2s ease;
}

.filter-card:hover
{
    text-decoration:none !important;

    color:#000 !important;

    transform:translateY(-2px);

    box-shadow:
        0 4px 12px rgba(0,0,0,.08);
}

.filter-card h3
{
    margin:0;

    font-size:32px;

    color:#000 !important;
}

.filter-card p
{
    margin:10px 0 0;

    color:#000 !important;

    font-weight:600;
}

.active-filter
{
    border:3px solid #5b1a8d;

    background:
        rgba(91,26,141,.08);

    box-shadow:
        0 0 15px rgba(91,26,141,.20);
}


.stat-card.filter-card h3,
.stat-card.filter-card p
{
    color:#fff !important;
}

.stat-card.approved-card h3,
.stat-card.approved-card p
{
    color:#000 !important;
}

.filter-card
{
    text-decoration:none !important;
}

.filter-card:hover
{
    text-decoration:none !important;
}

/* ==========================
   FORMS
========================== */

label{
    display:block;
    margin-top:15px;
    margin-bottom:5px;
    font-weight:bold;
}

input,
select,
textarea{
    width:100%;
    resize:vertical;
    padding:12px;
    border:1px solid #ccc;
    border-radius:5px;
    box-sizing:border-box;
    font-size:14px;
    background:white;
}

input:focus,
select:focus,
textarea:focus{
    outline:none;

    border-color:var(--primary);

    box-shadow:0 0 5px rgba(91,26,141,.3);
}



/* ==========================
   BUTTONS
========================== */

.button{
    display:inline-block;

    background:var(--primary);

    color:white;

    border:none;

    border-radius:5px;

    padding:12px 20px;

    text-decoration:none;

    cursor:pointer;

    font-size:16px;

    font-family:inherit;

    font-weight:500;

    line-height:1.2;
}

button.button
{
    appearance:none;
    -webkit-appearance:none;
}

.button:hover{
    background:var(--primary-dark);
}


.decline-btn{
    display:inline-block;

    background:var(--silver-dark);

    color:#333;

    border:none;

    border-radius:5px;

    padding:12px 20px;

    text-decoration:none;

    cursor:pointer;
}

.decline-btn:hover{
    background:#999;
}

.delete{
    display:inline-block;

    background:#7e57c2;

    color:white;

    border:none;

    border-radius:5px;

    padding:12px 20px;

    text-decoration:none;

    cursor:pointer;
}

.delete:hover{
    background:#673ab7;
}


.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    content: "";
    position: absolute;
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background: #fff;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background: #28a745;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.toggle-label {
    margin-left: 10px;
    font-weight: 600;
    vertical-align: middle;
}

/* ==========================
   TABLES
========================== */

.table-tools {
    margin-bottom: 15px;
}

#traderSearch {
    width: 300px;
    padding: 10px;
}



table{
    width:100%;
    border-collapse:collapse;
    background:white;
}

th{
    cursor: pointer;
    background:var(--primary);
    color:white;
    padding:12px;
}

th a{
    color:white;
    text-decoration:none;
}

th a:hover{
    color:var(--silver);
}

td{
    padding:12px;
    border-bottom:1px solid #ddd;
}

tr:nth-child(even){
    background:#f9f9f9;
}

.documents-table
{
   background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.15);
    border-radius:10px;
    padding:20px;
    text-align:center;
}

.documents-table th,
.documents-table td
{
    padding:12px;
    border-bottom:1px solid #ddd;
    text-align:left;
}

.documents-table th
{
    background:rgba(255,255,255,0.08);;
}

.documents-table .button
{
    margin-right:5px;
}







/* ==========================
   ALERTS
========================== */

.success{
    background:#ede7f6;
    color:#3f1162;
    border:1px solid #d1c4e9;

    padding:15px;

    border-radius:5px;

    margin-bottom:15px;
}

.error{
    background:#fdecea;
    color:#c62828;
    border:1px solid #ef9a9a;

    padding:15px;

    border-radius:5px;

    margin-bottom:15px;
}

/* ========================================================================================================================
   LOGIN/REGISTER
========================================================================================================================== */

.password-wrapper{
    position:relative;
}

.toggle-password{
    position:absolute;

    top:50%;
    right:15px;

    transform:translateY(-50%);

    cursor:pointer;

    color:#666;

    font-size:14px;
}

.links{
    text-align:center;
    margin-top:20px;
}

/* ==========================
   FOOTER
========================== */

footer{
    background:#2d083f;

    color:var(--silver);

    text-align:center;

    padding:30px;

    margin-top:50px;
}


/* ====================================================================================================================
ADMIN / DASHBOARDS
===================================================================================================================== */

.admin-card,
.card
{
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.15);
    border-radius:12px;
    padding:20px;
    margin-bottom:20px;
    backdrop-filter:blur(4px);
}

.admin-card h1,
.admin-card h2,
.card h1,
.card h2
{
    color:#5b1a8d;
    margin-top:0;
}

.top-actions
{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:20px;
}

.stats-grid
{
    display:grid;
    grid-template-columns:
        repeat(auto-fit,minmax(180px,1fr));

    gap:15px;
    margin-bottom:25px;
}

.stat-card
{
    background:rgba(255,255,255,0.08);

    border:1px solid rgba(255,255,255,0.15);

    border-radius:12px;

    padding:20px;

    text-align:center;
}

.stat-card h3
{
    margin:0;
    font-size:32px;
    color:#5b1a8d;
}

.stat-card p
{
    margin:10px 0 0;
}

/*=============================================================================================================================
TABLES
==============================================================================================================================*/

.admin-card table,
.card table
{
    width:100%;
    border-collapse:collapse;
    background:transparent;
}

.admin-card th,
.card th
{
    background:#5b1a8d;
    color:#fff;
    padding:12px;
}

.admin-card td,
.card td
{
    background:rgba(255,255,255,0.05);
    padding:12px;
    border-bottom:1px solid rgba(255,255,255,0.10);
}

.admin-card tr:hover td,
.card tr:hover td
{
    background:rgba(255,255,255,0.10);
}

/* BOOKINGS */

.bookings-grid
{
    display:grid;

    grid-template-columns:
        repeat(auto-fill,minmax(320px,1fr));

    gap:16px;
}

.booking-card
{
    background:#fff;

    border-radius:12px;

    padding:18px;

    box-shadow:
        0 2px 8px rgba(0,0,0,.08);

    display:flex;
    flex-direction:column;

    min-height:220px;
}

.booking-header
{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;

    margin-bottom:12px;
}

.booking-header h3
{
    margin:0;
    font-size:18px;
}

.event-name
{
    margin-top:4px;
    color:#666;
    font-size:14px;
}

.booking-info
{
    display:grid;
    grid-template-columns:1fr;
    gap:6px;

    margin-top:10px;
}

.booking-info div
{
    display:flex;
    justify-content:space-between;
}

.booking-value
{
    font-size:24px;
    font-weight:bold;
    color:#198754;

    margin-top:12px;
}

.booking-actions
{
    margin-top:auto;

    display:flex;
    flex-wrap:wrap;

    gap:8px;
}

/* PROFILE */

.profile-grid
{
    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(250px,1fr));

    gap:20px;
}

.profile-grid > div
{
    background:rgba(255,255,255,.05);
    padding:15px;
    border-radius:8px;
    border:1px solid rgba(255,255,255,.10);
}

/* STATUS */

.status-badge
{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 14px;
    border-radius:6px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.5px;
    box-shadow:0 2px 6px rgba(0,0,0,.15);
}

.status-badge i
{
    font-size:14px;
}

.status-pending
{
    background:#dc3545;
    color:#fff;
}

.status-approved
{
    background:#ffc107;
    color:#000;
}

.status-payment_requested
{
    background:#0d6efd;
    color:#fff;
}

.status-paid
{
    background:#198754;
    color:#fff;
}

.status-cancelled
{
    background:#6c757d;
    color:#fff;
}

.status-declined
{
    background:#343a40;
    color:#fff;
}

.status-open
{
    background:#198754;
    color:#fff;
}

.status-closed
{
    background:#dc3545;
    color:#fff;
}

.status-cancellation_requested
{
    background:#fff3cd;
    color:#856404;
    border:1px solid #ffc107;
}

/* VIP */

.vip-badge
{
    display:inline-block;

    padding:6px 12px;

    border-radius:20px;

    background:linear-gradient(
        135deg,
        #d4af37,
        #f1c40f
    );

    color:#000;

    font-size:12px;

    font-weight:bold;
}

/* PAYMENT */

.paid-label
{
    color:#27ae60;
    font-weight:bold;
}

.admin-card textarea
{
    width:100%;
    box-sizing:border-box;
}

.section-title
{
    color:#5b1a8d;
    margin-top:0;
    margin-bottom:20px;
    padding-bottom:10px;
    border-bottom:1px solid rgba(91,26,141,.20);
}


.contact-details {
    color: #666;
    font-size: 13px;
    margin-top: 5px;
    line-height: 1.5;
}

.document-badge {
    display: inline-block;
    background: #eef4ff;
    color: #1d4ed8;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    margin: 2px;
    font-weight: 600;
}

.vip-badge {
    margin-left: 8px;
    vertical-align: middle;
}

table td {
    vertical-align: middle;
}

.booking-actions {
    white-space: nowrap;
}

.pay-now-btn
{
    display:inline-block;

    background:#198754;

    color:#fff;
    text-decoration:none;

    padding:14px 24px;

    border-radius:8px;

    font-weight:700;
    font-size:16px;

    text-align:center;

    box-shadow:
        0 4px 10px rgba(25,135,84,.25);

    transition:.2s ease;
}

.pay-now-btn:hover
{
    background:#157347;

    color:#fff;

    transform:translateY(-2px);

    box-shadow:
        0 6px 14px rgba(25,135,84,.35);
}

.pay-now-btn:active
{
    transform:translateY(0);
}

.trader-link
{
    color:#5b1a8d;
    text-decoration:none;
    font-weight:700;
    transition:.2s ease;
}

.trader-link:hover
{
    color:#198754;
}


.status-previous
{
    background:#6c757d;
    color:#fff;
}

.booking-actions-top
{
    display:flex;
    gap:10px;
    margin-bottom:10px;
}

.booking-actions-bottom
{
    display:flex;
    justify-content:space-between;
    margin-top:10px;
}


/* BOOKING OVERVIEW */

.stats-grid .filter-card
{
    color:#000 !important;
}

.stats-grid .filter-card h3
{
    color:#000 !important;
}

.stats-grid .filter-card p
{
    color:#000 !important;
}

.stats-grid .filter-card:visited
{
    color:#000 !important;
}

.stats-grid .filter-card:hover
{
    color:#000 !important;
    text-decoration:none;
}

.field-error
{
    color:#dc3545;
    font-weight:bold;
    margin-top:5px;
}

.field-success
{
    color:#198754;
    font-weight:bold;
    margin-top:5px;
}

.approval-warning
{
    background:#fff3cd;

    border:3px solid #ffc107;

    color:#856404;

    border-radius:12px;

    padding:25px;

    margin-bottom:25px;

    text-align:center;

    box-shadow:0 0 15px rgba(255,193,7,.3);
}

.approval-warning h2
{
    margin-top:0;

    color:#856404;
}

.approval-link
{
    display:inline-block;

    text-decoration:none;

    padding:6px 10px;

    border-radius:4px;

    font-weight:bold;
}

.approval-link:hover
{
    opacity:.85;

    text-decoration:none;

    cursor:pointer;
}

#paySelectedBtn:disabled
{
    opacity: 0.5;

    cursor: not-allowed;

    background: #999;

    border-color: #999;
}


/* ==========================================
   TRADER PORTAL
========================================== */

.dashboard-hero
{
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color:#fff;

    padding:35px;

    border-radius:16px;

    margin-bottom:25px;

    box-shadow:
        0 10px 25px
        rgba(
            91,
            26,
            141,
            .25
        );
}

.admin-card
{
    background:#fff;

    border-radius:16px;

    padding:20px;

    margin-bottom:25px;

    box-shadow:
        0 8px 18px
        rgba(
            0,
            0,
            0,
            .08
        );
}

.page-content
{
    max-width:1100px;

    margin:0 auto;
}

.documents-grid
{
    display:grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(
                280px,
                1fr
            )
        );

    gap:20px;
}

.document-card
{
    background:#fff;

    border-left:
        5px solid
        var(--primary);

    border-radius:12px;

    padding:20px;

    box-shadow:
        0 6px 15px
        rgba(
            0,
            0,
            0,
            .08
        );
}

.document-card h3
{
    margin-top:0;
}

.password-strength
{
    width:100%;

    height:10px;

    background:#eee;

    border-radius:10px;

    overflow:hidden;

    margin-top:10px;
}

.strength-bar
{
    width:0;

    height:100%;

    transition:.3s;
}

.strength-text
{
    margin-top:8px;

    font-size:.9rem;

    font-weight:bold;
}

.strength-weak
{
    background:#dc3545;
}

.strength-medium
{
    background:#ffc107;
}

.strength-strong
{
    background:#4caf50;
}

.strength-very-strong
{
    background:#2e7d32;
}

.booking-actions
{
    display:flex;

    flex-direction:column;

    gap:10px;
}

.booking-actions .button,
.booking-actions input[type="submit"]
{
    width:100%;

    min-height:44px;

    box-sizing:border-box;

    display:flex;

    align-items:center;

    justify-content:center;
}


/* ==========================================
   CHANGE PASSWORD
========================================== */

.page-content
{
    max-width:900px;
    margin:0 auto;
}

.info-box
{
    background:#f8f9fa;

    border-left:4px solid var(--primary);

    border-radius:10px;

    padding:15px;

    margin-bottom:20px;
}

.info-box strong
{
    display:block;

    margin-bottom:10px;

    color:var(--primary-dark);
}

.info-box ul
{
    margin:0;
    padding-left:20px;
}

.password-wrapper
{
    display:grid;

    grid-template-columns:1fr 44px;

    gap:10px;

    margin-bottom:20px;
}


.password-wrapper input
{
    width:100%;

    min-width:0;

    box-sizing:border-box;
}

.toggle-password
{
    width:44px;

    height:44px;

    padding:0;

    border:none;

    border-radius:8px;

    background:#f5f5f5;

    cursor:pointer;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:1.1rem;

    flex-shrink:0;

    transition:.2s;
}

.toggle-password:hover
{
    background:#e5e5e5;
}

.password-strength
{
    width:100%;

    height:10px;

    background:#e9ecef;

    border-radius:10px;

    overflow:hidden;

    margin:15px 0 8px;
}

.strength-bar
{
    width:0;

    height:100%;

    transition:.3s;
}

.strength-weak
{
    background:#dc3545;
}

.strength-medium
{
    background:#ffc107;
}

.strength-strong
{
    background:#4caf50;
}

.strength-very-strong
{
    background:#2e7d32;
}

.strength-text
{
    font-weight:bold;

    margin-bottom:20px;
}

/* Action buttons */

.booking-actions
{
    display:flex;

    flex-direction:column;

    gap:10px;
}

.booking-actions .button,
.booking-actions button
{
    width:100%;

    min-height:48px;

    display:flex;

    align-items:center;

    justify-content:center;

    box-sizing:border-box;
}



.dashboard-hero,
.admin-card,
.card
{
    width:100%;
    box-sizing:border-box;
    
}

.menu-toggle
{
    display:none;

    background:none;
    border:none;

    color:#fff;

    font-size:1.8rem;

    cursor:pointer;
}




/* ==========================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ========================================== */

/* Global */

*,
*::before,
*::after
{
    box-sizing:border-box;
}

html
{
    -webkit-text-size-adjust:100%;
}

@media (max-width:768px)
{
    .site-header
    {
        position:relative;
        display:flex;
        justify-content:space-between;
        align-items:center;
    }

    .menu-toggle
    {
        display:block;
        background:none;
        border:none;
        color:#fff;
        font-size:2rem;
        cursor:pointer;
        min-height:auto;
        padding:0;
    }

    .header-user
    {
        display:none;
    }

    .header-nav
    {
        display:none;
        position:absolute;
        top:100%;
        left:0;
        right:0;
        background:#2d083f;
        flex-direction:column;
        padding:15px;
        z-index:9999;
        box-shadow:0 6px 20px rgba(0,0,0,.25);
    }

    .header-nav.show
    {
        display:flex;
    }

    .header-nav a
{
    width:100%;
    text-align:left;
    margin:0;
    padding:12px;
    box-sizing:border-box;
}
}

img
{
    max-width:100%;
    height:auto;
}

/* Containers */

.container
{
    width:100%;
    max-width:1200px;
    margin:0 auto;
    padding:15px;
}

.admin-card
{
    overflow:hidden;
}

/* Tables */

.table-responsive
{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
}

table
{
    width:100%;
    border-collapse:collapse;
}

.users-table,
.bookings-table,
.events-table,
.payments-table
{
    width:100%;
}

/* Forms */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="file"],
input[type="url"],
select,
textarea
{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
}

textarea
{
    resize:vertical;
}

/* Touch targets */

input,
select,
textarea,
button,
.button
{
    min-height:44px;
}

/* Button groups */

.button-row
{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.top-actions
{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:20px;
}

/* Form grid */

.form-grid
{
    display:grid;
    gap:15px;
}

/* Dashboard cards */

.dashboard-grid
{
    display:grid;
    gap:20px;
}

/* Info boxes */

.info-box
{
    overflow-wrap:break-word;
}

/* ==========================================
   TABLET
   ========================================== */

@media (min-width:769px)
{
    .form-grid
    {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .dashboard-grid
    {
        grid-template-columns:
            repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* ==========================================
   MOBILE
   ========================================== */

@media (max-width:768px)
{
    .booking-actions
    {
        display:flex;

        flex-direction:column;

        gap:10px;
    }
    
.booking-actions .button
    {
        width:100%;

        text-align:center;
    }

 .booking-actions .button,
    .booking-actions button,
    .booking-actions input[type="submit"]
    {
        width:100%;

        min-height:44px;

        display:flex;

        align-items:center;

        justify-content:center;

        box-sizing:border-box;
    }

    .dashboard-hero
    {
        padding:25px;
    }

    .dashboard-hero h1
    {
        font-size:1.8rem;
        display:flex;
        flex-wrap:wrap;
        gap:8px;
        align-items:center;
    }

    .dashboard-hero p
    {
        font-size:.95rem;
    }



    .container
    {
        padding:10px;
        padding-left:10px;
        padding-right:10px;
    }

    .admin-card
    {
        padding:15px;
    }

    h1
    {
        font-size:1.8rem;
    }

    h2
    {
        font-size:1.4rem;
    }

    h3
    {
        font-size:1.2rem;
    }

    .form-grid
    {
        grid-template-columns:1fr;
    }

    .dashboard-grid
    {
        grid-template-columns:1fr;
    }

    .profile-grid
    {
        grid-template-columns:1fr;
    }

    .documents-grid
    {
        grid-template-columns:1fr;
    }

    .button-row
    {
        flex-direction:column;
    }

    .button-row .button,
    .button-row button
    {
        width:100%;
    }

    .top-actions
    {
        flex-direction:column;
    }

    .top-actions .button
    {
        width:100%;
        text-align:center;
        box-sizing:border-box;
    }

    table
    {
        min-width:700px;
    }

    th,
    td
    {
        white-space:nowrap;
    }

    .small-button
    {
        padding:10px 12px;
    }

    .page-content
    {
        width:100%;

        padding:0 10px;

        box-sizing:border-box;

        max-width:none;
    }

    }



/* ==========================================
   VERY SMALL PHONES
   ========================================== */

@media (max-width:480px)
{
    .container
    {
        padding:8px;
    }

    h1
    {
        font-size:1.5rem;
    }

    h2
    {
        font-size:1.25rem;
    }

    .admin-card
    {
        padding:12px;
    }
}


@media (max-width:768px)
{
    .header-nav
    {
        display:none !important;
    }

    .header-nav.show
    {
        display:flex !important;
    }
}