﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* ===================================================== */
/* GLOBAL                                                */
/* ===================================================== */

html {
    font-size: 75%;
}

:root {
    --wimbledon-green: #0f6b3c;
    --wimbledon-green-dark: #0c5a32;
    --wimbledon-purple: #5A3A88;
    --wimbledon-purple-dark: #4a3275;
    --wimbledon-bg: #f4f7f5;
}

html, body {
    font-family: 'Inter', sans-serif !important;
    background: var(--wimbledon-bg);
    margin: 0;
}

/* ===================================================== */
/* CONTENT WRAPPER                                       */
/* ===================================================== */

.page-section {
    padding: 0 0 4rem 0;
}

    .page-section > .container,
    .page-section > .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }

/* ===================================================== */
/* MAIN GRID                                             */
/* ===================================================== */

.booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 2.5rem;
    align-items: start;
}

.booking-layout__right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 1100px) {
    .booking-layout {
        grid-template-columns: 1fr;
    }
}

/* ===================================================== */
/* EVENT GRID                                            */
/* ===================================================== */

.event-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* ===================================================== */
/* EVENT TILE                                            */
/* ===================================================== */

.event-tile {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e3e6e8;
    box-shadow: 0 8px 25px rgba(0,0,0,.05);
    transition: .2s ease;
}

    .event-tile:hover {
        transform: translateY(-4px);
    }

    .event-tile.is-selected {
        border: 2px solid var(--wimbledon-green);
    }

.event-tile__header {
    background: var(--wimbledon-green);
    color: #fff;
    padding: 1.2rem;
    text-align: center;
}

.event-tile__day {
    font-size: 1rem;
    font-weight: 600;
}

.event-tile__body {
    padding: 1.2rem;
}

.event-stat__label {
    font-size: .85rem;
    margin-bottom: .45rem;
    color: #555;
}

.event-tile__cta {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: .85rem;
    color: var(--wimbledon-green);
    cursor: pointer;
    margin-top: .25rem;
}

/* PROGRESS */

.progress {
    height: 6px;
    border-radius: 999px;
    background: #edf1f3;
    margin-bottom: .8rem;
}

.progress-bar {
    background: var(--wimbledon-green);
}

/* ===================================================== */
/* REGISTRATION ROW                                      */
/* ===================================================== */

.reg-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: .5rem;
}

.reg-row__plate {
    font-weight: 500;
    font-size: .85rem;
}

.reg-row__actions {
    display: flex;
    gap: .35rem;
}

/* ===================================================== */
/* STICKY + CARD SYSTEM                                  */
/* ===================================================== */

.reg-sticky {
    position: sticky;
    top: 1.5rem;
}

.reg-card {
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
}

.reg-card--purple {
    background: linear-gradient(135deg, var(--wimbledon-purple), var(--wimbledon-purple-dark));
    color: #fff;
}

.reg-card__header {
    padding: 1.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.reg-card__title {
    font-size: 1.1rem;
    font-weight: 600;
}

.reg-card__subtitle {
    font-size: .85rem;
    opacity: .9;
}

.reg-card__body {
    background: #fff;
    padding: 2rem;
    color: #1f2933;
}

.reg-empty {
    color: #6c757d;
    font-size: .9rem;
}

.reg-hint {
    font-size: .8rem;
    color: #6c757d;
}

.reg-card__header .btn-outline-light {
    border: 1px solid rgba(255,255,255,0.9);
    color: #fff;
    background: rgba(255,255,255,0.22);
    font-weight: 600;
    border-radius: 999px;
    padding: .35rem .8rem;
}

    .reg-card__header .btn-outline-light:hover {
        background: #fff;
        color: var(--wimbledon-purple);
        border-color: #fff;
    }

/* ===================================================== */
/* CLEAN FORM CONTROLS                                   */
/* ===================================================== */

.form-label-clean {
    font-size: .85rem;
    font-weight: 600;
    color: #2b2b2b;
}

.form-control-clean {
    border-radius: 16px;
    border: 1px solid #e3e6e8;
    min-height: 46px;
    font-size: .95rem;
}

    .form-control-clean:focus {
        border-color: var(--wimbledon-green);
        box-shadow: 0 0 0 3px rgba(15,107,60,.12);
    }

/* ===================================================== */
/* SUBMIT BUTTONS                                        */
/* ===================================================== */

.reg-submit {
    background: var(--wimbledon-green);
    border: none;
    font-weight: 600;
    min-height: 42px;
    border-radius: 18px;
    transition: .2s ease;
    color: #fff;
}

    .reg-submit:hover {
        background: var(--wimbledon-green-dark);
        color: #fff;
    }

/* ===================================================== */
/* CHECKOUT CARD                                         */
/* ===================================================== */

.checkout-card {
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 30px 70px rgba(0,0,0,0.08);
    overflow: hidden;
}

.checkout-card__header {
    background: linear-gradient(135deg, var(--wimbledon-green), var(--wimbledon-green-dark));
    color: #fff;
    padding: 1.6rem 2rem;
    font-weight: 700;
    letter-spacing: .5px;
}

.checkout-card__body {
    padding: 2.5rem;
}

.checkout-card .form-control,
.checkout-card .form-select {
    border-radius: 16px;
    border: 1px solid #e3e6e8;
    min-height: 48px;
    font-size: .95rem;
}

    .checkout-card .form-control:focus,
    .checkout-card .form-select:focus {
        border-color: var(--wimbledon-green);
        box-shadow: 0 0 0 3px rgba(15,107,60,.15);
    }

.checkout-submit {
    background: var(--wimbledon-green);
    border: none;
    font-weight: 700;
    min-height: 54px;
    border-radius: 18px;
    transition: .2s ease;
    color: #ffffff;
    letter-spacing: 0.3px;
    font-size: 1rem;
}

    .checkout-submit:hover {
        background: var(--wimbledon-green-dark);
        color: #ffffff;
    }

/* ===================================================== */
/* ACTION ICONS                                          */
/* ===================================================== */

.icon-action {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #777;
    transition: .15s ease;
}

    .icon-action:hover {
        transform: scale(1.08);
    }

.icon-action--delete:hover {
    color: #c62828;
}

.icon-action--edit:hover {
    color: #2f6fed;
}

.icon-action--resend:hover {
    color: var(--wimbledon-green);
}

/* ===================================================== */
/* PAYMENT RESULT PAGE                                   */
/* ===================================================== */

.payment-result {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.payment-result__card {
    background: #ffffff;
    border-radius: 2rem;
    box-shadow: 0 30px 70px rgba(0,0,0,0.08);
    padding: 3rem 3rem 2.5rem 3rem;
    text-align: center;
    max-width: 520px;
    width: 100%;
}

.payment-result__icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.8rem;
}

.payment-result__check {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wimbledon-green), var(--wimbledon-green-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(15,107,60,0.25), inset 0 2px 6px rgba(255,255,255,0.15);
}

.payment-result__title {
    font-weight: 700;
    margin-bottom: .5rem;
}

.payment-result__subtitle {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* ===================================================== */
/* HERO BANNER                                           */
/* ===================================================== */

.wimbledon-banner {
    width: 100%;
    height: 360px;
    overflow: hidden;
}

    .wimbledon-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* ===================================================== */
/* ANPR EDIT PAGE                                        */
/* ===================================================== */

.anpr-edit-wrapper {
    max-width: 720px;
    margin: 60px auto 80px auto;
}

.anpr-edit-card {
    border-radius: 20px;
    padding: 10px;
}

    .anpr-edit-card .form-control {
        border-radius: 14px;
        min-height: 48px;
    }

/* ===================================================== */
/* WIMBLEDON TABLE HEADER                                */
/* ===================================================== */

.table-primary,
.table-primary th {
    background: var(--wimbledon-green) !important;
    color: #ffffff !important;
    border-color: var(--wimbledon-green) !important;
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: 0;
}

    .table-primary th {
        padding: 12px 16px;
        vertical-align: middle;
    }

        .table-primary th:hover {
            background: var(--wimbledon-green) !important;
            cursor: pointer;
        }

.table tbody tr:hover {
    background-color: #f3f8f5;
}

/* ===================================================== */
/* ADMIN MENU – WIMBLEDON PURPLE CARDS                   */
/* ===================================================== */

.card.bg-info {
    background: var(--wimbledon-purple) !important;
    border: none !important;
}

    .card.bg-info .card-body {
        padding: 2rem;
    }

    .card.bg-info h4 {
        color: #ffffff !important;
        font-weight: 600;
    }

    .card.bg-info:hover {
        background: var(--wimbledon-purple-dark) !important;
    }

/* Fix: make MDI <i> have a real box so ::before can render */

.widget-icon.mdi {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px;
    height: 24px;
    line-height: 1 !important;
}

    .widget-icon.mdi::before {
        line-height: 1 !important;
        font-size: 24px !important;
    }
