/* Turf Ready Web App - Complete CSS for Customer & Owner */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Consistent elevation for every customer action button. */
.btn.btn,
button {
    box-shadow: 0 7px 16px rgba(6, 40, 91, .14);
    transition: box-shadow .2s ease, transform .2s ease;
}

.btn.btn:hover,
button:hover:not(:disabled) {
    box-shadow: 0 10px 22px rgba(6, 40, 91, .2);
}

.btn.btn:disabled,
button:disabled {
    box-shadow: none;
}

/* Compact customer dashboard cards on small screens */
@media (max-width: 768px) {
    .stats-grid1 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.65rem !important;
        margin-bottom: 0.85rem !important;
    }

    .stats-grid1 .stat-card1:nth-child(3) {
        grid-column: 1 / -1;
    }

    .stats-grid1 .stat-card1 {
        min-height: 0 !important;
        height: auto !important;
        padding: 0.8rem 0.9rem !important;
        margin: 0 !important;
        border-radius: 14px;
    }

    .stats-grid1 .stat-icon1 {
        width: 38px;
        height: 38px;
        margin-bottom: 0.45rem;
        font-size: 1.05rem;
        border-radius: 10px;
    }

    .stats-grid1 .stat-label1 {
        margin-bottom: 0.15rem;
        font-size: 0.78rem;
    }

    .stats-grid1 .stat-value1 {
        margin: 0 0 0.25rem;
        font-size: 1.65rem;
        line-height: 1.1;
    }

    .stats-grid1 .stat-change1 {
        margin: 0;
        font-size: 0.72rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (min-width: 769px) {
    .navbar {
        padding-left: 2rem;
        padding-right: 2rem;
        overflow: hidden;
    }

    .navbar-brand {
        flex: 0 0 auto;
    }

    .navbar-menu {
        margin-left: auto;
        gap: 1.35rem;
        flex: 0 1 auto;
        white-space: nowrap;
    }

    .navbar-account {
        margin-left: 1.25rem;
        flex: 0 0 auto;
        gap: 0.85rem;
    }
}

:root {
    /* ---- Brand (logo-derived) ---- */
    --navy: #06285B;
    --turf-green: #16B864;
    --electric-blue: #1769E8;
    --sky-blue: #159FE5;
    --amber: #FFB800;

    /* ---- Legacy aliases kept so every existing var(--x) reference below still resolves ---- */
    --primary: var(--navy);
    --accent: var(--electric-blue);
    --gold: var(--amber);
    --success: var(--turf-green);

    /* ---- Surfaces & text ---- */
    --bg: #F5F9FF;
    --soft-green: #EAFBF2;
    --soft-blue: #EAF3FF;
    --card: #FFFFFF;
    --text: #0B2447;
    --text-light: #64748B;
    --border: #DCE7F3;
    --disabled-surface: #E9EFF6;

    /* ---- Semantic status ---- */
    --danger: #E5484D;
    --warning: #F59E0B;
    --success-solid: #16A765;

    /* ---- Gradients ---- */
    --gradient-brand: linear-gradient(135deg, #16B864 0%, #159FE5 52%, #1769E8 100%);
    --gradient-navy: linear-gradient(135deg, #06285B 0%, #0B3E88 100%);
    --gradient-soft: linear-gradient(135deg, #EAFBF2 0%, #EAF3FF 100%);

    /* ---- Shape & elevation ---- */
    --radius-card: 18px;
    --radius-input: 13px;
    --radius-pill: 999px;
    --shadow-card: 0 10px 30px rgba(6, 40, 91, 0.08);

    /* ---- Spacing (8pt system) ---- */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;

    /* ---- Motion ---- */
    --transition-fast: 180ms ease;
    --transition-base: 220ms ease;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.navbar-brand img {
    display: block;
    width: auto;
    height: 42px;
    object-fit: contain;
}

.navbar-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.navbar-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.22s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-menu a:hover {
    color: var(--accent);
}

.user-dropdown {
    position: relative;
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

/* Main Content */
.main-content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    flex-direction: column;
}

.page-header h1 {
    margin: 0;
    font-size: 32px;
}

.page-header p {
    margin: 5px 0 0;
    color: #777;
}

/* Stats Grid */
.stats-grid1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card1 {
    background: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.stat-card1:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.stat-icon1 {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Icon Colors */
.stat-card1:nth-child(1) .stat-icon1 { 
    background: rgba(23,105,232,0.1); 
    color: var(--accent); 
}

.stat-card1:nth-child(2) .stat-icon1 { 
    background: rgba(255,184,0,0.1); 
    color: var(--gold); 
}

.stat-card1:nth-child(3) .stat-icon1 { 
    background: rgba(22,184,100,0.1); 
    color: var(--success); 
}

.stat-card1:nth-child(4) .stat-icon1 { 
    background: rgba(6,40,91,0.1); 
    color: var(--primary); 
}

.stat-label1 {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.stat-value1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-change1 {
    font-size: 0.875rem;
    color: var(--success);
}
/* Card */
.card {
    background: white;
    padding: 2rem;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(6, 40, 91, 0.08);
    margin-bottom: 2rem;
}

.card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Turf Grid */
.turf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.turf-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.22s;
    cursor: pointer;
    background: white;
}

.turf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(6, 40, 91, 0.12);
}

.turf-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.turf-content {
    padding: 1.5rem;
}

.turf-content h4 {
    margin-bottom: 0.5rem;
}

.turf-meta {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.turf-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

table th {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.875rem;
    text-transform: uppercase;
}

table tr:hover {
    background: var(--bg);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.22s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    width: auto;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: #125BC0;
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Badge */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.confirmed { background: rgba(22,184,100,0.2); color: var(--success); }
.badge.completed {
    background: rgba(33, 150, 243, 0.15);  /* Light blue background */
    color: #1769E8;                        /* Modern blue */
}
.badge.pending { background: rgba(255,184,0,0.2); color: var(--gold); }
.badge.cancelled { background: rgba(229,72,77,0.15); color: var(--danger); }

/* Login Page */
.login-container {
    display: flex;
    min-height: 100vh;
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), #0B2447);
    padding: 4rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background:
        radial-gradient(circle at 18% 22%, transparent 0 52px, rgba(255,255,255,0.7) 53px 54px, transparent 55px),
        radial-gradient(circle at 82% 78%, transparent 0 78px, rgba(255,255,255,0.55) 79px 80px, transparent 81px),
        linear-gradient(90deg, transparent 49.7%, rgba(255,255,255,0.45) 49.8% 50.2%, transparent 50.3%),
        linear-gradient(0deg, transparent 49.7%, rgba(255,255,255,0.35) 49.8% 50.2%, transparent 50.3%);
    background-size: 220px 220px, 300px 300px, 180px 180px, 180px 180px;
    transform: rotate(-8deg) scale(1.25);
    pointer-events: none;
}

.login-left::after {
    content: "⚽   🏏   🏸";
    position: absolute;
    right: 7%;
    top: 10%;
    color: rgba(255,255,255,0.2);
    font-size: 2.2rem;
    letter-spacing: 0.55rem;
    transform: rotate(10deg);
    pointer-events: none;
}

.login-right {
    flex: 1;
    background: white;
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    width: 100%;
    max-width: 400px;
}

.login-mobile-logo {
    display: block;
    width: min(220px, 70%);
    height: auto;
    margin: 0 auto 1.25rem;
    object-fit: contain;
}

.login-left-logo {
    display: none;
}

.login-left > div {
    position: relative;
    z-index: 1;
    width: min(100%, 720px);
}

.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.role-btn {
    padding: 1rem;
    border: 2px solid var(--border);
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.22s;
    text-align: center;
}

.role-btn:hover {
    border-color: var(--accent);
    background: #EAF3FF;
}

.role-btn.active {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}

.role-btn i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.25rem;
    }

    .navbar-toggle {
        display: flex !important;
    }

    .navbar-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(78vw, 320px);
        background: white;
        box-shadow: -8px 0 30px rgba(0,0,0,0.15);
        padding: 5rem 1.5rem 2rem;
        gap: 0.25rem;
        align-items: stretch;
        transform: translateX(100%);
        transition: transform 0.22s ease;
        z-index: 999;
        overflow-y: auto;
    }

    .navbar-menu.mobile-open {
        transform: translateX(0);
    }

    .navbar-menu li {
        width: 100%;
    }

    .navbar-menu a {
        padding: 0.85rem 0.5rem;
        border-radius: 10px;
        width: 100%;
    }

    .navbar-menu a:hover {
        background: var(--bg, #F5F9FF);
    }

    .navbar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 998;
    }

    .navbar-overlay.mobile-open {
        display: block;
    }

    .stats-grid1 {
        grid-template-columns: 1fr !important;
    }

    .card {
        padding: 1.25rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .card table {
        min-width: 560px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .turf-grid {
        grid-template-columns: 1fr;
    }

    .login-container {
        flex-direction: column;
    }
}

/* Hamburger toggle button — hidden on desktop, shown via the media query above */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
    padding: 0;
}

.navbar-toggle span {
    display: block;
    height: 2.5px;
    width: 100%;
    background: var(--navy, #06285B);
    border-radius: 3px;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.navbar-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* The legacy pages render the menu without a hamburger/overlay element.
   Keep every navigation link directly accessible on small screens. */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        row-gap: 0.5rem;
    }

    .navbar-menu {
        position: static;
        order: 3;
        width: 100%;
        height: auto;
        min-height: 0;
        flex-direction: row;
        align-items: center;
        gap: 0.25rem;
        padding: 0.5rem 0 0;
        overflow-x: auto;
        overflow-y: hidden;
        background: transparent;
        box-shadow: none;
        transform: none;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .navbar-menu li {
        width: auto;
        flex: 0 0 auto;
    }

    .navbar-menu a {
        width: auto;
        padding: 0.65rem 0.75rem;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: sticky;
        flex-wrap: nowrap;
        z-index: 1001;
    }

    .navbar-toggle {
        display: flex !important;
        margin-left: auto;
        position: relative;
        z-index: 1003;
    }

    .navbar-menu {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1001;
        display: flex;
        width: min(82vw, 320px);
        height: 100vh;
        min-height: 100vh;
        padding: 5rem 1.25rem 2rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        overflow-y: auto;
        overflow-x: hidden;
        background: #fff;
        box-shadow: -8px 0 30px rgba(0,0,0,0.18);
        transform: translateX(100%);
        transition: transform 0.22s ease;
    }

    .navbar-menu.mobile-open {
        transform: translateX(0);
    }

    .navbar-menu li,
    .navbar-menu a {
        width: 100%;
    }

    .navbar-menu a {
        padding: 0.85rem 0.5rem;
    }

    .navbar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 1000;
        background: rgba(0,0,0,0.42);
    }

    .navbar-overlay.mobile-open {
        display: block;
    }
}

.navbar-account {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.navbar-account a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

@media (max-width: 768px) {
    .navbar-toggle,
    .navbar-overlay {
        display: none !important;
    }

    .navbar {
        padding: 0.75rem 1rem;
        flex-wrap: nowrap;
    }

    .navbar-account {
        margin-left: auto;
        gap: 0.25rem;
    }

    .navbar-account a {
        padding: 0.35rem;
        font-size: 0;
    }

    .navbar-account a i {
        font-size: 1.1rem;
    }

    .navbar-menu {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        top: auto;
        z-index: 1001;
        width: auto;
        height: auto;
        min-height: 0;
        padding: 0.55rem 0.35rem;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        gap: 0.15rem;
        overflow: hidden;
        border: 1px solid rgba(6, 40, 91, 0.08);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 10px 28px rgba(6, 40, 91, 0.18);
        transform: none !important;
    }

    .navbar-menu li,
    .navbar-menu a {
        width: auto;
        flex: 1 1 0;
    }

    .navbar-menu a {
        justify-content: center;
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.4rem 0.2rem;
        border-radius: 16px;
        font-size: 0.68rem;
        white-space: nowrap;
    }

    .navbar-menu a i {
        font-size: 1.05rem;
    }

    .main-content {
        padding-bottom: 5.5rem;
    }

    /* Convert data tables into vertically stacked cards on mobile. */
    .card {
        overflow: visible;
    }

    .card table {
        display: block;
        width: 100%;
        min-width: 0 !important;
        table-layout: fixed;
    }

    .card table thead {
        display: none;
    }

    .card table tbody,
    .card table tr,
    .card table td {
        display: block;
        width: 100%;
    }

    .card table tr {
        margin-bottom: 0.75rem;
        padding: 0.65rem 0.8rem;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 4px 14px rgba(6, 40, 91, 0.06);
    }

    .card table td {
        padding: 0.45rem 0;
        border: 0;
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

/* Final compact mobile spacing. */
@media (max-width: 768px) {
    .navbar {
        min-height: 56px;
        padding: 0.55rem 0.85rem;
    }

    .navbar-brand img {
        height: 34px;
    }

    .main-content {
        width: 100%;
        padding: 0.85rem 0.85rem 5.25rem;
    }

    .page-header {
        margin-bottom: 0.75rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .page-header p {
        margin-top: 0.25rem;
        font-size: 0.88rem;
    }

    .stats-grid,
    .stats-grid1,
    .turf-grid {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .stat-card1,
    .card {
        padding: 1rem;
        margin-bottom: 0.85rem;
        border-radius: 16px;
    }

    .card h3 {
        margin-bottom: 0.85rem;
        font-size: 1.2rem;
    }

    .form-group {
        margin-bottom: 0.85rem;
    }

    .form-group label {
        margin-bottom: 0.3rem;
        font-size: 0.88rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.92rem;
    }
}

@media (max-width: 480px) {
    .navbar-menu {
        width: 100vw;
    }
}

/* Status Toggle Container */
.turf-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E5484D; /* Red (Inactive default) */
    transition: 0.22s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.22s;
    border-radius: 50%;
}

/* Active (Green) */
input:checked + .slider {
    background-color: #16A765;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Status Text */
.status-text {
    font-weight: 600;
}

.status-text.active {
    color: #16A765;
}

.status-text.inactive {
    color: #E5484D;
}
/* ===== EDIT TURF MODAL ===== */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background: #ffffff;
    padding: 30px;
    width: 400px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.close {
    position: absolute;
    right: 18px;
    top: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #000;
}

/* ===== FORM DESIGN ===== */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1769E8;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* ===== UPDATE BUTTON ===== */

.btn-success {
    width: 100%;
    padding: 10px;
    background: #16A765;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-success:hover {
    background: #16B864;
}
/* ===== ADD TURF BUTTON ===== */

.btn-add-turf {
    margin-top: 15px;
    padding: 10px 18px;
    background: #1769E8;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-add-turf i {
    margin-right: 6px;
}

.btn-add-turf:hover {
    background: #0B3E88;
}

/* ===== ADD TURF MODAL (reuses .modal + .modal-content) ===== */

#addModal .modal-content h2 {
    margin-bottom: 20px;
}

/* ===== CREATE BUTTON ===== */

.btn-create {
    width: 100%;
    padding: 10px;
    background: #16A765;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-create:hover {
    background: #16B864;
}
/* ===== IMAGE UPLOAD SECTION ===== */

input[type="file"] {
    display: block;
    width: 100%;
    padding: 8px;
    border: 1px dashed #ccc;
    border-radius: 8px;
    background: #F5F9FF;
    cursor: pointer;
    transition: 0.2s ease;
}

input[type="file"]:hover {
    border-color: #1769E8;
    background: #EAF3FF;
}

/* Preview Container */

.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

/* Preview Image */

.image-preview img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 15px;
}

.section-header h3 {
    margin: 0;
}

.view-more-btn {
    background-color: #1769E8;
    color: #fff;
    padding: 6px 14px;
    font-size: 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: 0.22s ease;
}

.view-more-btn:hover {
    background-color: #125BC0;
}
/* Booking Page Specific Styles */

.booking-container {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 2rem;
    margin-top: 2rem;
}

/* Turf Details Section */
.turf-details-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.turf-header {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.turf-image-large {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #06285B, #1769E8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.turf-image-large i {
    font-size: 5rem;
    color: white;
}

.turf-header-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #06285B;
}

.turf-meta-large {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    color: #64748B;
    font-size: 0.95rem;
}

.turf-meta-large i {
    margin-right: 0.5rem;
}

.turf-description {
    color: #64748B;
    line-height: 1.8;
    font-size: 1rem;
}

/* Facilities Section */
.facilities-section {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.facilities-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #06285B;
}

.facilities-section h3 i {
    color: #16B864;
    margin-right: 0.5rem;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.facility-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #F5F9FF;
    border-radius: 10px;
    transition: all 0.22s;
}

.facility-item:hover {
    background: #FDECEC;
    transform: translateY(-2px);
}

.facility-item i {
    font-size: 1.5rem;
    color: #1769E8;
}

/* Pricing Section */
.pricing-section {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.pricing-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #06285B;
}

.pricing-section h3 i {
    color: #FFB800;
    margin-right: 0.5rem;
}

.pricing-table {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #F5F9FF;
    border-radius: 10px;
}

.pricing-row span {
    color: #64748B;
}

.pricing-row strong {
    color: #1769E8;
    font-size: 1.1rem;
}

/* Booking Form Section */
.booking-form-section {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.booking-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.booking-card h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #06285B;
}

.booking-card h3 i {
    color: #1769E8;
    margin-right: 0.5rem;
}

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.time-slot {
    padding: 0.75rem;
    border: 2px solid #DCE7F3;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.22s;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
}

.time-slot:hover:not(.disabled) {
    border-color: #1769E8;
    background: #EAF3FF;
    transform: translateY(-2px);
}

.time-slot.selected {
    border-color: #1769E8;
    background: #1769E8;
    color: white;
}

.time-slot.peak {
    border-color: #FFB800;
}

.time-slot.peak:hover {
    background: #FFFBEB;
}

.time-slot.disabled {
    background: #E9EFF6;
    color: #CCCCCC;
    cursor: not-allowed;
    border-color: #DCE7F3;
}

.peak-badge {
    display: block;
    font-size: 0.7rem;
    color: #FFB800;
    margin-top: 0.25rem;
}

.time-slot.selected .peak-badge {
    color: white;
}

.booked-badge {
    display: block;
    font-size: 0.7rem;
    color: #999;
    margin-top: 0.25rem;
}

/* Price Summary */
.price-summary {
    background: #F5F9FF;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #DCE7F3;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row span {
    color: #64748B;
}

.summary-row strong {
    color: #0B2447;
    font-size: 1.1rem;
}

.summary-row.discount strong {
    color: #16B864;
}

.summary-row.total {
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid #DCE7F3;
}

.summary-row.total span {
    color: #0B2447;
    font-weight: 600;
    font-size: 1.1rem;
}

.summary-row.total strong {
    color: #1769E8;
    font-size: 1.5rem;
}

/* Button Large */
/* Find this section and replace it with this code */

.page-header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}
.btn-large i {
    margin-right: 0.5rem;
}

/* Payment Methods */
.payment-methods {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-align: center;
}

.payment-methods h4 {
    margin-bottom: 1rem;
    color: #64748B;
    font-size: 0.9rem;
    font-weight: 500;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 2rem;
    color: #64748B;
}

/* Responsive */
@media (max-width: 1024px) {
    .booking-container {
        grid-template-columns: 1fr;
    }

    .booking-form-section {
        position: relative;
        top: 0;
    }

    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .facilities-grid {
        grid-template-columns: 1fr;
    }

    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }

    .booking-card {
        padding: 1.5rem;
    }

    .turf-meta-large {
        flex-direction: column;
        gap: 0.5rem;
    }
}
/* Booking View Page Styles */

.back-button {
    margin-bottom: 1.5rem;
}

/* Status Banner */
.status-banner {
    background: linear-gradient(135deg, #16B864, #16A765);
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 8px 30px rgba(22, 184, 100, 0.3);
}

.status-banner.confirmed {
    background: linear-gradient(135deg, #16B864, #16A765);
}

.status-banner.pending {
    background: linear-gradient(135deg, #FFB800, #F59E0B);
}

.status-banner.cancelled {
    background: linear-gradient(135deg, #E5484D, #C0392B);
}

.status-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.status-content {
    flex: 1;
}

.status-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.status-content p {
    opacity: 0.9;
    font-size: 1rem;
}

.booking-id {
    text-align: right;
}

.booking-id span {
    display: block;
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.booking-id strong {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Main Container */
.booking-details-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

/* Detail Cards */
.detail-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.detail-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #06285B;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-card h3 i {
    color: #1769E8;
}

/* Turf Info Block */
.turf-info-block {
    display: flex;
    gap: 2rem;
}

.turf-image-preview {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #06285B, #1769E8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.turf-image-preview i {
    font-size: 4rem;
    color: white;
}

.turf-details {
    flex: 1;
}

.turf-details h4 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #06285B;
}

.turf-meta-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #64748B;
}

.turf-meta-info i {
    margin-right: 0.5rem;
}

.turf-desc {
    color: #64748B;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Booking Info Grid */
.booking-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #F5F9FF;
    border-radius: 12px;
    transition: all 0.22s;
}

.info-item:hover {
    background: #EAF3FF;
    transform: translateY(-2px);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1769E8, #FFB800);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.875rem;
    color: #64748B;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1.1rem;
    color: #06285B;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.info-subtext {
    font-size: 0.875rem;
    color: #64748B;
}

/* Payment Breakdown */
.payment-breakdown {
    background: #F5F9FF;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #DCE7F3;
}

.payment-row:last-child {
    border-bottom: none;
}

.payment-row span {
    color: #64748B;
}

.payment-row strong {
    color: #0B2447;
    font-weight: 600;
}

.payment-row.discount strong {
    color: #16B864;
}

.payment-row.total {
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid #DCE7F3;
}

.payment-row.total span {
    font-size: 1.1rem;
    color: #06285B;
    font-weight: 600;
}

.payment-row.total strong {
    font-size: 1.5rem;
    color: #1769E8;
}

.payment-method-used {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #EAF3FF;
    border-radius: 8px;
    color: #64748B;
}

.payment-method-used i {
    font-size: 1.5rem;
    color: #1769E8;
}

.payment-method-used span {
    flex: 1;
}

.payment-method-used strong {
    color: #0B2447;
}

/* Customer Info */
.customer-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.customer-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: #F5F9FF;
    border-radius: 8px;
}

.customer-row span {
    color: #64748B;
}

.customer-row strong {
    color: #0B2447;
}

/* Services List */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #F5F9FF;
    border-radius: 8px;
}

.service-item i {
    color: #16B864;
    font-size: 1.2rem;
}

/* Sidebar */
.details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.action-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.action-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #06285B;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #DCE7F3;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.22s;
    font-weight: 500;
}

.action-btn:hover {
    transform: translateX(5px);
    border-color: #1769E8;
    background: #EAF3FF;
}

.action-btn i {
    font-size: 1.25rem;
}

.action-btn.reschedule i {
    color: #FFB800;
}

.action-btn.cancel i {
    color: #1769E8;
}

.action-btn.download i {
    color: #16B864;
}

.action-btn.share i {
    color: #06285B;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: #DCE7F3;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -1.5rem;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #DCE7F3;
    border: 3px solid white;
}

.timeline-item.completed .timeline-dot {
    background: #16B864;
}

.timeline-item.pending .timeline-dot {
    background: #FFB800;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 184, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 184, 0, 0);
    }
}

.timeline-content strong {
    display: block;
    color: #06285B;
    margin-bottom: 0.25rem;
}

.timeline-content span {
    font-size: 0.875rem;
    color: #64748B;
}

/* Support Card */
.support-card {
    background: linear-gradient(135deg, #1769E8, #FFB800);
    color: white;
}

.support-card h3 {
    color: white;
}

.support-card p {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.support-card .btn {
    background: white;
    color: #1769E8;
}

.support-card .btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Policy Card */
.policy-card {
    background: #EAF3FF;
}

.policy-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.policy-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #64748B;
    font-size: 0.9rem;
}

.policy-list li::before {
    content: '•';
    color: #1769E8;
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .booking-details-container {
        grid-template-columns: 1fr;
    }

    .booking-info-grid {
        grid-template-columns: 1fr;
    }

    .turf-info-block {
        flex-direction: column;
    }

    .turf-image-preview {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .status-banner {
        flex-direction: column;
        text-align: center;
    }

    .booking-id {
        text-align: center;
    }

    .detail-card {
        padding: 1.5rem;
    }
}
/* Review Page Styles */

.review-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Booking Summary Sidebar */
.booking-summary {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.summary-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.summary-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #06285B;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-card h3 i {
    color: #1769E8;
}

.turf-preview {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #F5F9FF;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.turf-image-small {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #06285B, #1769E8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.turf-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #06285B;
}

.turf-info p {
    font-size: 0.875rem;
    color: #64748B;
}

.turf-info i {
    margin-right: 0.25rem;
}

.booking-info-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: #F5F9FF;
    border-radius: 8px;
}

.info-row span {
    color: #64748B;
    font-size: 0.9rem;
}

.info-row span i {
    margin-right: 0.5rem;
}

.info-row strong {
    color: #06285B;
    font-weight: 600;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #FFB800, #F59E0B);
    padding: 1.5rem;
    border-radius: 16px;
    color: #06285B;
}

.info-box h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-box li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.info-box li::before {
    content: '✓';
    font-weight: bold;
    font-size: 1.2rem;
}

/* Review Form Section */
.review-form-section {
    max-width: 800px;
}

.review-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.review-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #F5F9FF;
}

.review-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #06285B;
}

.review-header p {
    color: #64748B;
    font-size: 1rem;
}

/* Rating Sections */
.rating-section {
    margin-bottom: 3rem;
}

.rating-section h3,
.detailed-ratings h3,
.review-text-section h3,
.tags-section h3,
.photo-upload-section h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #06285B;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-subtitle {
    color: #64748B;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 1rem;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.star-rating i {
    color: #FFB800;
    cursor: pointer;
    transition: all 0.22s;
}

.star-rating i:hover {
    transform: scale(1.2);
}

.star-rating i.far {
    color: #DCE7F3;
}

.rating-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1769E8;
    text-align: center;
    padding: 0.5rem;
    background: #EAF3FF;
    border-radius: 8px;
}

/* Detailed Ratings */
.detailed-ratings {
    margin-bottom: 3rem;
}

.rating-item {
    margin-bottom: 2rem;
}

.rating-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #06285B;
}

.slider-rating {
    display: flex;
    flex-direction: column;
}

.rating-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, #1769E8 0%, #FFB800 50%, #16B864 100%);
    outline: none;
    margin-bottom: 0.5rem;
}

.rating-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: 3px solid #1769E8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.rating-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: 3px solid #1769E8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #64748B;
}

.slider-value {
    font-weight: 600;
    color: #1769E8;
    font-size: 1rem;
}

/* Review Text */
.review-text-section {
    margin-bottom: 3rem;
}

.review-text-section textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #DCE7F3;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.22s;
}

.review-text-section textarea:focus {
    outline: none;
    border-color: #1769E8;
    box-shadow: 0 0 0 3px rgba(23, 105, 232, 0.1);
}

.character-count {
    text-align: right;
    font-size: 0.875rem;
    color: #64748B;
    margin-top: 0.5rem;
}

.character-count span {
    font-weight: 600;
    color: #1769E8;
}

/* Tags Section */
.tags-section {
    margin-bottom: 3rem;
}

.tag-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag-btn {
    padding: 0.75rem 1.25rem;
    border: 2px solid #DCE7F3;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.22s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tag-btn:hover {
    border-color: #1769E8;
    background: #EAF3FF;
    transform: translateY(-2px);
}

.tag-btn.active {
    border-color: #1769E8;
    background: #1769E8;
    color: white;
}

.tag-btn i {
    font-size: 1rem;
}

/* Photo Upload */
.photo-upload-section {
    margin-bottom: 3rem;
}

.upload-area {
    border: 2px dashed #DCE7F3;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.22s;
    background: #F5F9FF;
}

.upload-area:hover {
    border-color: #1769E8;
    background: #EAF3FF;
}

.upload-area i {
    font-size: 3rem;
    color: #1769E8;
    margin-bottom: 1rem;
    display: block;
}

.upload-area p {
    font-weight: 600;
    color: #06285B;
    margin-bottom: 0.5rem;
}

.upload-area span {
    font-size: 0.875rem;
    color: #64748B;
}

.uploaded-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.uploaded-photo {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
}

.uploaded-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-photo {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(23, 105, 232, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 2px solid #F5F9FF;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
    justify-content: center; /* Centers text/icons inside the large button */
}

.btn-large i {
    margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .review-container {
        grid-template-columns: 1fr;
    }

    .booking-summary {
        order: 2;
    }

    .review-form-section {
        order: 1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .review-card {
        padding: 1.5rem;
    }

    .star-rating {
        gap: 0.5rem;
        font-size: 2.5rem;
    }

    .tag-buttons {
        gap: 0.5rem;
    }

    .tag-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .uploaded-photos {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}
/* Cancelled Booking View Styles */

.back-button {
    margin-bottom: 1.5rem;
}

/* Cancelled Status Banner */
.status-banner.cancelled {
    background: linear-gradient(135deg, #E5484D, #C0392B);
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 8px 30px rgba(23, 105, 232, 0.3);
}

.status-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.status-content {
    flex: 1;
}

.status-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.status-content p {
    opacity: 0.9;
    font-size: 1rem;
}

.booking-id {
    text-align: right;
}

.booking-id span {
    display: block;
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.booking-id strong {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Main Container */
.booking-details-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

/* Detail Cards */
.detail-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.detail-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #06285B;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-card h3 i {
    color: #1769E8;
}

/* Cancellation Card */
.cancellation-card {
    border-left: 4px solid #1769E8;
}

.cancellation-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cancellation-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #EAF3FF;
    border-radius: 12px;
}

.cancellation-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #E5484D, #C0392B);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cancellation-content {
    display: flex;
    flex-direction: column;
}

.cancellation-content .label {
    font-size: 0.875rem;
    color: #64748B;
    margin-bottom: 0.25rem;
}

.cancellation-content strong {
    font-size: 1.1rem;
    color: #06285B;
    margin-bottom: 0.25rem;
}

.cancellation-content .subtext {
    font-size: 0.875rem;
    color: #64748B;
}

/* Refund Card */
.refund-card {
    border-left: 4px solid #16B864;
}

.refund-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #EAFBF2;
    color: #16B864;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.refund-status-badge i {
    font-size: 1.2rem;
}

.refund-breakdown {
    background: #F5F9FF;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.refund-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #DCE7F3;
}

.refund-row:last-child {
    border-bottom: none;
}

.refund-row span {
    color: #64748B;
}

.refund-row strong {
    color: #0B2447;
    font-weight: 600;
}

.refund-row strong.negative {
    color: #1769E8;
}

.refund-row strong.positive {
    color: #16B864;
}

.refund-row.total {
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid #DCE7F3;
}

.refund-row.total span {
    font-size: 1.1rem;
    color: #06285B;
    font-weight: 600;
}

.refund-row.total strong {
    font-size: 1.5rem;
    color: #16B864;
}

/* Refund Timeline */
.refund-timeline {
    position: relative;
    padding: 1.5rem 0 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

.refund-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: #16B864;
}

.timeline-step {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.step-dot {
    position: absolute;
    left: -1.5rem;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #16B864;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(22, 184, 100, 0.3);
}

.step-content strong {
    display: block;
    color: #06285B;
    margin-bottom: 0.25rem;
}

.step-content span {
    font-size: 0.875rem;
    color: #64748B;
}

.refund-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #EAFBF2;
    border-radius: 12px;
    color: #16B864;
}

.refund-method i {
    font-size: 1.5rem;
}

.refund-method span {
    flex: 1;
    color: #64748B;
}

.refund-method strong {
    color: #06285B;
}

/* Turf Info Block */
.turf-info-block {
    display: flex;
    gap: 2rem;
}

.turf-image-preview {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #06285B, #1769E8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.6;
}

.turf-image-preview i {
    font-size: 4rem;
    color: white;
}

.turf-details h4 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #64748B;
}

.turf-meta-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #64748B;
}

.turf-meta-info i {
    margin-right: 0.5rem;
}

.turf-desc {
    color: #64748B;
    line-height: 1.6;
}

/* Booking Info Grid */
.booking-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #F5F9FF;
    border-radius: 12px;
    opacity: 0.7;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #64748B, #999);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.875rem;
    color: #64748B;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1.1rem;
    color: #64748B;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.info-subtext {
    font-size: 0.875rem;
    color: #64748B;
}

.strikethrough {
    text-decoration: line-through;
}

/* Payment Breakdown */
.payment-breakdown {
    background: #F5F9FF;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #DCE7F3;
}

.payment-row:last-child {
    border-bottom: none;
}

.payment-row span {
    color: #64748B;
}

.payment-row strong {
    color: #0B2447;
    font-weight: 600;
}

.payment-row.total {
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid #DCE7F3;
}

.payment-row.total span {
    font-size: 1.1rem;
    color: #06285B;
    font-weight: 600;
}

.payment-row.total strong {
    font-size: 1.5rem;
    color: #1769E8;
    text-decoration: line-through;
}

.payment-method-used {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #EAF3FF;
    border-radius: 8px;
    color: #64748B;
}

.payment-method-used i {
    font-size: 1.5rem;
    color: #1769E8;
}

.payment-method-used span {
    flex: 1;
}

.payment-method-used strong {
    color: #0B2447;
}

/* Sidebar */
.details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.action-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.action-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #06285B;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #DCE7F3;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.22s;
    font-weight: 500;
}

.action-btn:hover {
    transform: translateX(5px);
}

.action-btn i {
    font-size: 1.25rem;
}

.action-btn.rebook {
    border-color: #16B864;
    color: #16B864;
}

.action-btn.rebook:hover {
    background: #EAFBF2;
}

.action-btn.download i {
    color: #FFB800;
}

.action-btn.share i {
    color: #06285B;
}

/* Policy Card */
.policy-card {
    background: #EAF3FF;
}

.policy-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.policy-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.policy-item i {
    font-size: 1.2rem;
    margin-top: 0.25rem;
}

.policy-item i.fa-check-circle {
    color: #16B864;
}

.policy-item i.fa-exclamation-circle {
    color: #FFB800;
}

.policy-item i.fa-times-circle {
    color: #1769E8;
}

.policy-item div {
    display: flex;
    flex-direction: column;
}

.policy-item strong {
    color: #06285B;
    margin-bottom: 0.25rem;
}

.policy-item span {
    font-size: 0.875rem;
    color: #64748B;
}

.policy-note {
    padding: 1rem;
    background: #EAFBF2;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #16B864;
    display: flex;
    gap: 0.5rem;
}

.policy-note i {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* Support Card */
.support-card {
    background: linear-gradient(135deg, #1769E8, #FFB800);
    color: white;
}

.support-card h3 {
    color: white;
}

.support-card p {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.support-card .btn {
    background: white;
    color: #1769E8;
}

.support-card .btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.support-info {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.support-method {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.9;
    font-size: 0.9rem;
}

.support-method i {
    font-size: 1rem;
}

/* Rebook Suggestion */
.rebook-suggestion {
    background: #EAFBF2;
}

.rebook-suggestion h3 {
    color: #16B864;
}

.rebook-suggestion p {
    color: #64748B;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .booking-details-container {
        grid-template-columns: 1fr;
    }

    .booking-info-grid {
        grid-template-columns: 1fr;
    }

    .turf-info-block {
        flex-direction: column;
    }

    .turf-image-preview {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .status-banner.cancelled {
        flex-direction: column;
        text-align: center;
    }

    .booking-id {
        text-align: center;
    }

    .detail-card {
        padding: 1.5rem;
    }

    .cancellation-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
/* Owner Revenue Page Styles */

.section-title {
    font-size: 1.5rem;
    margin: 3rem 0 1.5rem;
    color: #06285B;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: #1769E8;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #DCE7F3;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.22s;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: #1769E8;
    background: #EAF3FF;
}

.filter-btn.active {
    border-color: #1769E8;
    background: #1769E8;
    color: white;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.date-range input {
    padding: 0.75rem;
    border: 2px solid #DCE7F3;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
}

/* Revenue Stats Grid */
.revenue-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.revenue-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 1.5rem;
    transition: all 0.22s;
    position: relative;
    overflow: hidden;
}

.revenue-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.2;
}

.revenue-card.today::before {
    background: #1769E8;
}

.revenue-card.week::before {
    background: #FFB800;
}

.revenue-card.month::before {
    background: #16B864;
}

.revenue-card.total::before {
    background: #06285B;
}

.revenue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.revenue-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.revenue-card.today .revenue-icon {
    background: linear-gradient(135deg, rgba(23, 105, 232, 0.2), rgba(23, 105, 232, 0.1));
    color: #1769E8;
}

.revenue-card.week .revenue-icon {
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.2), rgba(255, 184, 0, 0.1));
    color: #FFB800;
}

.revenue-card.month .revenue-icon {
    background: linear-gradient(135deg, rgba(22, 184, 100, 0.2), rgba(22, 184, 100, 0.1));
    color: #16B864;
}

.revenue-card.total .revenue-icon {
    background: linear-gradient(135deg, rgba(6, 40, 91, 0.2), rgba(6, 40, 91, 0.1));
    color: #06285B;
}

.revenue-content {
    flex: 1;
}

.revenue-label {
    font-size: 0.875rem;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.5rem;
}

.revenue-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: #06285B;
    margin-bottom: 0.5rem;
}

.revenue-change {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.revenue-change.positive {
    color: #16B864;
}

.revenue-change i {
    font-size: 1rem;
}

/* Bookings Stats Grid */
.bookings-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.booking-stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 1rem;
    transition: all 0.22s;
}

.booking-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.booking-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.booking-stat-icon.today {
    background: linear-gradient(135deg, #1769E8, #FFB800);
    color: white;
}

.booking-stat-icon.week {
    background: linear-gradient(135deg, #FFB800, #16B864);
    color: white;
}

.booking-stat-icon.month {
    background: linear-gradient(135deg, #16B864, #06285B);
    color: white;
}

.booking-stat-icon.total {
    background: linear-gradient(135deg, #06285B, #1769E8);
    color: white;
}

.booking-stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.booking-stat-content .label {
    font-size: 0.875rem;
    color: #64748B;
    margin-bottom: 0.5rem;
}

.booking-stat-content .value {
    font-size: 2rem;
    font-weight: 700;
    color: #06285B;
    margin-bottom: 0.25rem;
}

.booking-stat-content .subtext {
    font-size: 0.875rem;
    color: #64748B;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.chart-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.chart-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #06285B;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-card h3 i {
    color: #1769E8;
}

.chart-container {
    height: 300px;
    position: relative;
}

/* Transaction Summary */
.transaction-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.transaction-stat {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.transaction-stat i {
    font-size: 2rem;
    color: #1769E8;
}

.transaction-stat div {
    display: flex;
    flex-direction: column;
}

.transaction-stat span {
    font-size: 0.875rem;
    color: #64748B;
    margin-bottom: 0.25rem;
}

.transaction-stat strong {
    font-size: 1.5rem;
    color: #06285B;
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.card-header h3 {
    font-size: 1.5rem;
    color: #06285B;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header h3 i {
    color: #1769E8;
}

/* Performance Metrics */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.metric-card {
    background: linear-gradient(135deg, #1769E8, #FFB800);
    padding: 1.5rem;
    border-radius: 16px;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-card:nth-child(2) {
    background: linear-gradient(135deg, #FFB800, #16B864);
}

.metric-card:nth-child(3) {
    background: linear-gradient(135deg, #16B864, #06285B);
}

.metric-card:nth-child(4) {
    background: linear-gradient(135deg, #06285B, #1769E8);
}

.metric-card i {
    font-size: 2rem;
    opacity: 0.8;
}

.metric-card div {
    display: flex;
    flex-direction: column;
}

.metric-card span {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.metric-card strong {
    font-size: 1.25rem;
}

/* Responsive */
@media (max-width: 1400px) {
    .revenue-stats-grid,
    .bookings-stats-grid,
    .transaction-summary,
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .revenue-stats-grid,
    .bookings-stats-grid,
    .transaction-summary,
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }

    .date-range {
        flex-direction: column;
    }

    .revenue-card,
    .booking-stat-card {
        flex-direction: column;
    }

    .revenue-icon,
    .booking-stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .revenue-value,
    .booking-stat-content .value {
        font-size: 1.5rem;
    }
}
/* My Turfs Page Styles */

/* Page Header with Action */
.page-header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
/* Turfs Stats Grid */
.turfs-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.turf-stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.22s;
}

.turf-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.total {
    background: linear-gradient(135deg, #06285B, #0B2447);
    color: white;
}

.stat-icon.active {
    background: linear-gradient(135deg, #16B864, #16A765);
    color: white;
}

.stat-icon.inactive {
    background: linear-gradient(135deg, #E5484D, #C0392B);
    color: white;
}

.stat-icon.bookings {
    background: linear-gradient(135deg, #FFB800, #F59E0B);
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-content .label {
    font-size: 0.875rem;
    color: #64748B;
    display: block;
    margin-bottom: 0.25rem;
}

.stat-content .value {
    font-size: 2rem;
    font-weight: 700;
    color: #06285B;
}

/* Filter Bar */
.filter-bar {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
}

.search-box input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid #DCE7F3;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    transition: all 0.22s;
}

.search-box input:focus {
    outline: none;
    border-color: #1769E8;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.875rem 1.5rem;
    border: 2px solid #DCE7F3;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.22s;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: #1769E8;
    background: #EAF3FF;
}

.filter-btn.active {
    border-color: #1769E8;
    background: #1769E8;
    color: white;
}

/* Turfs Grid */
.turfs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Turf Card */
.turf-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.22s;
}

.turf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Turf Image */
.turf-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #06285B, #1769E8);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.turf-image.inactive-image {
    opacity: 0.5;
    filter: grayscale(100%);
}

.turf-image i {
    font-size: 4rem;
    color: white;
}

.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: #16B864;
    color: white;
}

.status-badge.inactive {
    background: #1769E8;
    color: white;
}

/* Turf Content */
.turf-content {
    padding: 1.5rem;
}

.turf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.turf-header h3 {
    font-size: 1.5rem;
    color: #06285B;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: #EAF3FF;
    border-radius: 20px;
}

.rating i {
    color: #FFB800;
}

.rating span {
    font-weight: 600;
    color: #06285B;
}

/* Turf Meta */
.turf-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.turf-meta span {
    font-size: 0.9rem;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.turf-meta i {
    font-size: 1rem;
}

/* Turf Stats */
.turf-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #F5F9FF;
    border-radius: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-item i {
    font-size: 1.5rem;
    color: #1769E8;
}

.stat-item div {
    display: flex;
    flex-direction: column;
}

.stat-item strong {
    font-size: 1.1rem;
    color: #06285B;
}

.stat-item span {
    font-size: 0.75rem;
    color: #64748B;
}

/* Turf Pricing */
.turf-pricing {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #EAF3FF;
    border-radius: 12px;
}

.price-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.price-item span {
    font-size: 0.875rem;
    color: #64748B;
}

.price-item strong {
    font-size: 1.1rem;
    color: #1769E8;
}

/* Turf Actions */
.turf-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #DCE7F3;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.22s;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.action-btn.view:hover {
    border-color: #06285B;
    background: #06285B;
    color: white;
}

.action-btn.edit:hover {
    border-color: #FFB800;
    background: #FFB800;
    color: #06285B;
}

.action-btn.toggle:hover {
    border-color: #1769E8;
    background: #1769E8;
    color: white;
}

.action-btn.toggle.activate:hover {
    border-color: #16B864;
    background: #16B864;
    color: white;
}

/* Responsive */
@media (max-width: 1200px) {
    .turfs-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .turfs-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-header-with-action {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .turfs-stats-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: 100%;
    }

    .filter-buttons {
        flex-wrap: wrap;
    }

    .turfs-grid {
        grid-template-columns: 1fr;
    }

    .turf-actions {
        flex-direction: column;
    }
}
/* Turf Form Pages - Single CSS for Add & Edit */

.back-button {
    margin-bottom: 2rem;
}

/* Page Header */
.form-page-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16B864, #16A765);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    flex-shrink: 0;
}

.header-icon.edit {
    background: linear-gradient(135deg, #FFB800, #F59E0B);
}

.form-page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #06285B;
    font-family: 'Playfair Display', serif;
}

.form-page-header p {
    color: #64748B;
    font-size: 1rem;
}

/* Form Container */
.form-container {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
}

/* Form Sections */
.form-section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid #F5F9FF;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #06285B;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-section h2 i {
    color: #1769E8;
}

/* Form Elements */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #06285B;
    font-size: 0.95rem;
}

.required {
    color: #1769E8;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #DCE7F3;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.22s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1769E8;
    box-shadow: 0 0 0 3px rgba(23, 105, 232, 0.1);
}

.character-count {
    text-align: right;
    font-size: 0.875rem;
    color: #64748B;
    margin-top: 0.5rem;
}

.character-count span {
    font-weight: 600;
    color: #1769E8;
}

/* Pricing Note */
.pricing-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #EAF3FF;
    border-radius: 12px;
    color: #1769E8;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Image Upload */
.upload-area {
    border: 2px dashed #DCE7F3;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.22s;
    background: #F5F9FF;
}

.upload-area:hover {
    border-color: #1769E8;
    background: #EAF3FF;
}

.upload-area i {
    font-size: 3rem;
    color: #1769E8;
    margin-bottom: 1rem;
    display: block;
}

.upload-area p {
    font-weight: 600;
    color: #06285B;
    margin-bottom: 0.5rem;
}

.upload-area span {
    font-size: 0.875rem;
    color: #64748B;
}

.current-images h4 {
    margin-bottom: 1rem;
    color: #06285B;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.preview-image {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #DCE7F3;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(23, 105, 232, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.22s;
}

.remove-image:hover {
    background: #1769E8;
    transform: scale(1.1);
}

/* Facilities Grid */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.facility-checkbox {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #DCE7F3;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.22s;
}

.facility-checkbox:hover {
    border-color: #1769E8;
    background: #EAF3FF;
}

.facility-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.facility-checkbox input:checked + span {
    color: #1769E8;
    font-weight: 600;
}

.facility-checkbox span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.75rem;
    font-size: 0.95rem;
}

.facility-checkbox i {
    font-size: 1.2rem;
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Status Options */
.status-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.status-option {
    cursor: pointer;
}

.status-option input {
    position: absolute;
    opacity: 0;
}

.status-card {
    padding: 2rem;
    border: 2px solid #DCE7F3;
    border-radius: 12px;
    text-align: center;
    transition: all 0.22s;
}

.status-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.status-card strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #06285B;
}

.status-card span {
    font-size: 0.875rem;
    color: #64748B;
}

.status-card.active {
    border-color: #16B864;
}

.status-card.active i {
    color: #16B864;
}

.status-card.inactive {
    border-color: #1769E8;
}

.status-card.inactive i {
    color: #1769E8;
}

.status-option input:checked + .status-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.status-option input:checked + .status-card.active {
    background: linear-gradient(135deg, rgba(22, 184, 100, 0.1), rgba(76, 175, 80, 0.05));
    border-color: #16B864;
}

.status-option input:checked + .status-card.inactive {
    background: linear-gradient(135deg, rgba(23, 105, 232, 0.1), rgba(244, 67, 54, 0.05));
    border-color: #1769E8;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 2px solid #F5F9FF;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
}

.btn-large i {
    margin-right: 0.5rem;
}

.btn-danger {
    background: linear-gradient(135deg, #E5484D, #C0392B);
    color: white;
    border: none;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 72, 77, 0.3);
}

.profile-logout {
    width: 100%;
    margin-top: 0.55rem;
    justify-content: center;
    gap: 0.45rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .form-container {
        padding: 2rem;
    }

    .form-page-header {
        flex-direction: column;
        text-align: center;
    }

    .status-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .form-container {
        padding: 1.5rem;
    }

    .form-page-header h1 {
        font-size: 1.75rem;
    }

    .header-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .facilities-grid {
        grid-template-columns: 1fr;
    }

    .image-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions > div {
        flex-direction: column;
        width: 100%;
    }
}
        /*Owner Dashboard Styles*/

        /* Welcome Header */
        .welcome-header {
            background: white;
            padding: 2rem;
            border-radius: 16px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            margin-bottom: 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .welcome-content h1 {
            font-size: 2.5rem;
            margin-bottom: 0.5rem;
            color: #06285B;
            font-family: 'Playfair Display', serif;
        }

        .welcome-content p {
            color: #64748B;
            font-size: 1rem;
        }

        .quick-actions {
            display: flex;
            gap: 1rem;
        }

        .quick-action-btn {
            padding: 1rem 1.5rem;
            border: 2px solid #1769E8;
            background: white;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.22s;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-weight: 600;
            color: #1769E8;
        }

        .quick-action-btn:hover {
            background: #1769E8;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(23, 105, 232, 0.3);
        }

        .quick-action-btn i {
            font-size: 1.2rem;
        }

        /* Section Title */
        .section-title {
            font-size: 1.5rem;
            margin: 3rem 0 1.5rem;
            color: #06285B;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .section-title i {
            color: #1769E8;
        }

        /* Section Header with View All */
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .section-header .section-title {
            margin: 0;
        }

        .view-all-link {
            color: #1769E8;
            text-decoration: none;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.22s;
        }

        .view-all-link:hover {
            gap: 0.75rem;
        }

        /* Stats Grid - Enhanced */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
            margin-bottom: 3rem;
        }

        .stat-card {
            background: white;
            padding: 2rem;
            border-radius: 16px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            display: flex;
            gap: 1.5rem;
            transition: all 0.22s;
            position: relative;
            overflow: hidden;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 120px;
            height: 120px;
            border-radius: 50%;
            filter: blur(40px);
            opacity: 0.2;
        }

        .stat-card.today::before {
            background: #1769E8;
        }

        .stat-card.week::before {
            background: #FFB800;
        }

        .stat-card.month::before {
            background: #16B864;
        }

        .stat-card.bookings::before {
            background: #06285B;
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
        }

        .stat-icon {
            width: 70px;
            height: 70px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            flex-shrink: 0;
        }

        .stat-card.today .stat-icon {
            background: linear-gradient(135deg, rgba(23, 105, 232, 0.2), rgba(23, 105, 232, 0.1));
            color: #1769E8;
        }

        .stat-card.week .stat-icon {
            background: linear-gradient(135deg, rgba(255, 184, 0, 0.2), rgba(255, 184, 0, 0.1));
            color: #FFB800;
        }

        .stat-card.month .stat-icon {
            background: linear-gradient(135deg, rgba(22, 184, 100, 0.2), rgba(22, 184, 100, 0.1));
            color: #16B864;
        }

        .stat-card.bookings .stat-icon {
            background: linear-gradient(135deg, rgba(6, 40, 91, 0.2), rgba(6, 40, 91, 0.1));
            color: #06285B;
        }

        .stat-content {
            flex: 1;
        }

        .stat-label {
            font-size: 0.875rem;
            color: #64748B;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: block;
            margin-bottom: 0.5rem;
        }

        .stat-value {
            font-size: 2rem;
            font-weight: 700;
            font-family: 'Playfair Display', serif;
            color: #06285B;
            margin-bottom: 0.5rem;
        }

        .stat-change {
            font-size: 0.875rem;
            color: #64748B;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .stat-change.positive {
            color: #16B864;
        }

        .stat-change i {
            font-size: 1rem;
        }

        /* Quick Stats Grid */
        .quick-stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
            margin-bottom: 3rem;
        }

        .quick-stat-card {
            background: linear-gradient(135deg, #1769E8, #FFB800);
            padding: 1.5rem;
            border-radius: 16px;
            color: white;
            display: flex;
            align-items: center;
            gap: 1rem;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            transition: all 0.22s;
        }

        .quick-stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        }

        .quick-stat-card:nth-child(2) {
            background: linear-gradient(135deg, #FFB800, #16B864);
        }

        .quick-stat-card:nth-child(3) {
            background: linear-gradient(135deg, #16B864, #06285B);
        }

        .quick-stat-card:nth-child(4) {
            background: linear-gradient(135deg, #06285B, #1769E8);
        }

        .quick-stat-card i {
            font-size: 2rem;
            opacity: 0.8;
        }

        .quick-stat-card div {
            display: flex;
            flex-direction: column;
        }

        .quick-stat-card span {
            font-size: 0.875rem;
            opacity: 0.9;
            margin-bottom: 0.25rem;
        }

        .quick-stat-card strong {
            font-size: 1.5rem;
        }

        /* Turf Status Toggle Switch */
        .turf-status {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin: 1rem 0;
        }

        .switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 26px;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: 0.22s;
            border-radius: 34px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: 0.22s;
            border-radius: 50%;
        }

        input:checked + .slider {
            background-color: #16B864;
        }

        input:checked + .slider:before {
            transform: translateX(24px);
        }

        .status-text {
            font-size: 0.875rem;
            font-weight: 600;
        }

        .status-text.active {
            color: #16B864;
        }

        .status-text.inactive {
            color: #1769E8;
        }

        /* Add Turf Card */
        .turf-card.add-turf {
            cursor: pointer;
        }

        .add-image {
            background: linear-gradient(135deg, #16B864, #16A765) !important;
        }

        .add-turf-btn {
            background: linear-gradient(135deg, #16B864, #16A765);
        }

        .add-turf-btn:hover {
            background: linear-gradient(135deg, #16A765, #16B864);
        }

        /* Button Small */
        .btn-sm {
            padding: 0.5rem 1rem;
            font-size: 0.875rem;
        }

        /* Responsive */
        @media (max-width: 1200px) {
            .stats-grid,
            .quick-stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .welcome-header {
                flex-direction: column;
                align-items: stretch;
                gap: 1.5rem;
            }

            .quick-actions {
                flex-direction: column;
            }

            .quick-action-btn {
                justify-content: center;
            }

            .welcome-content h1 {
                font-size: 1.75rem;
            }

            .stats-grid,
            .quick-stats-grid {
                grid-template-columns: 1fr;
            }

            .section-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }

            .stat-card {
                flex-direction: column;
            }

            .stat-icon {
                width: 60px;
                height: 60px;
                font-size: 1.5rem;
            }

            .stat-value {
                font-size: 1.5rem;
            }
        }
/* ============================================================
   REGISTER PAGE ADDITIONS — append to webapp-style.css
   ============================================================ */

/* Allow the right panel to scroll on shorter viewports */
.register-right {
    overflow-y: auto;
}

.register-box {
    padding: 2rem 2.5rem;
}

/* ── Feature bullets on the left panel ── */
.register-features {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
}

.feature-item i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

/* ── Two-column row inside forms ── */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ── Input with prefix / icon ── */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon input,
.input-with-icon select {
    width: 100%;
}

.input-prefix {
    position: absolute;
    left: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748B;
    pointer-events: none;
    z-index: 1;
}

/* Push text right when prefix exists */
.input-with-icon .input-prefix ~ input {
    padding-left: 2.75rem;
}

.toggle-password {
    position: absolute;
    right: 12px;
    color: #64748B;
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #1769E8;
}

/* ── Select styling ── */
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #DCE7F3;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #0B2447;
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237F8C8D' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group select:focus {
    outline: none;
    border-color: #1769E8;
    box-shadow: 0 0 0 3px rgba(23, 105, 232, 0.12);
}

/* ── Password strength bar ── */
.password-strength {
    margin: 0.4rem 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.strength-track {
    flex: 1;
    height: 5px;
    background: #E9EFF6;
    border-radius: 99px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    transition: width 0.22s ease, background 0.22s ease;
}

.strength-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748B;
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
    transition: color 0.22s;
}

/* ── Checkbox / terms ── */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: #64748B;
    line-height: 1.5;
}

.form-check input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #1769E8;
    cursor: pointer;
    flex-shrink: 0;
}

.link-accent {
    color: #1769E8;
    text-decoration: none;
    font-weight: 600;
}

.link-accent:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .navbar {
        height: 56px;
        min-height: 56px;
        padding: 0.45rem 0.8rem;
    }

    .navbar-menu {
        bottom: calc(10px + env(safe-area-inset-bottom));
        padding: 0.45rem 0.3rem;
        border-radius: 22px;
    }

    .main-content {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0.75rem 0.75rem calc(5.2rem + env(safe-area-inset-bottom));
    }

    .page-header {
        margin-bottom: 0.7rem;
    }

    .page-header h1 {
        margin: 0;
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .card,
    .stat-card1 {
        width: 100%;
        margin-bottom: 0.8rem;
        padding: 1rem;
        border-radius: 16px;
    }

    .btn,
    .btn-block {
        min-height: 42px;
    }
}

@media (max-width: 768px) {
    .login-container {
        min-height: 100svh;
        display: block;
    }

    .login-left {
        display: none !important;
    }

    .login-right {
        min-height: 100svh;
        width: 100%;
        padding: 1.25rem 1rem;
    }

    .login-box {
        max-width: 100%;
    }

    .login-mobile-logo {
        display: block;
        width: min(190px, 70%);
        height: auto;
        margin: 0 auto 1.15rem;
        object-fit: contain;
    }

    .navbar-account a[href*="logout"] {
        display: none !important;
    }

    .navbar-menu {
        left: 12px !important;
        right: 12px !important;
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
        box-sizing: border-box;
    }

    .stats-grid1 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .stats-grid1 .stat-card1:nth-child(3) {
        grid-column: 1 / -1;
    }

    .booking-container .turf-header {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 0.75rem;
        align-items: start;
        padding: 0.9rem;
        margin: 0;
    }

    .booking-container .turf-image-large {
        width: 96px;
        height: 96px;
        margin: 0;
        border-radius: 10px;
    }

    .booking-container .turf-image-large i {
        font-size: 2.7rem;
    }

    .booking-container .turf-header-info {
        min-width: 0;
    }

    .booking-container .turf-header-info h2 {
        margin: 0 0 0.45rem;
        font-size: 1.35rem;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .booking-container .turf-meta-large {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        margin: 0 0 0.45rem;
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .booking-container .turf-description {
        margin: 0;
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .booking-detail-card {
        width: 100%;
        margin: 0.85rem auto !important;
        padding: 1rem !important;
        border-radius: 14px;
    }

    .booking-detail-card h2 {
        margin: 0 0 0.25rem;
        font-size: 1.2rem;
        line-height: 1.25;
    }

    .booking-detail-card p {
        margin: 0.28rem 0;
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .booking-detail-card hr {
        margin: 0.55rem 0;
        border: 0;
        border-top: 1px solid #dce7f3;
    }

    .booking-detail-card code {
        display: block;
        margin-top: 0.2rem;
        font-size: 0.65rem;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .booking-detail-card .btn {
        margin-top: 0.45rem;
        min-height: 38px;
        padding: 0.55rem 0.8rem;
    }

    .booking-filter-card {
        padding: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }

    .booking-filter-card > div {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem !important;
    }

    .booking-filter-card .tab-btn {
        min-height: 36px;
        padding: 0.45rem 0.35rem;
        font-size: 0.72rem;
    }
}

@media (min-width: 769px) {
    .login-left {
        padding: 2.5rem 4.5rem;
    }

    .login-right {
        padding: 1.75rem 4rem;
    }

    .login-mobile-logo {
        width: min(190px, 62%);
        margin-bottom: 0.7rem;
    }

    .login-right .login-box h2 {
        margin-bottom: 0.25rem !important;
    }

    .login-right .login-box > p {
        margin-bottom: 1rem !important;
    }

    .login-right .role-selector {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .login-right .form-group {
        margin-bottom: 0.85rem;
    }

    .navbar {
        overflow: hidden;
    }

    .navbar-menu {
        margin-left: auto !important;
        gap: 1.35rem;
        flex: 0 1 auto;
        white-space: nowrap;
    }

    .navbar-account {
        margin-left: 1.25rem !important;
        flex: 0 0 auto;
        gap: 0.85rem;
    }
}

/* Shared admin visual theme for customer pages */
body {
    font-family: 'DM Sans', 'Inter', sans-serif;
    background:
        radial-gradient(circle at 18% 48%, rgba(23, 105, 232, 0.08), transparent 38%),
        radial-gradient(circle at 82% 82%, rgba(255, 184, 0, 0.06), transparent 34%),
        linear-gradient(135deg, #F5F9FF 0%, #FFFFFF 100%);
}

.navbar {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 18px rgba(6, 40, 91, 0.06);
}

.main-content {
    position: relative;
    z-index: 1;
}

.card,
.stat-card1 {
    border: 1px solid rgba(220, 231, 243, 0.9);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.btn-primary {
    background: linear-gradient(135deg, #1769E8 0%, #159FE5 100%);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(23, 105, 232, 0.18);
}

.btn-secondary {
    border-radius: 12px;
    border-color: var(--border);
}

.page-header h1,
.card h2,
.card h3 {
    color: var(--navy);
}

/* Final responsive hardening shared by all customer pages. */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

.main-content,
.card,
.stat-card1,
.turf-card,
.booking-container,
.payment-summary-section,
.table-responsive {
    min-width: 0;
    max-width: 100%;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .main-content {
        width: 100%;
        max-width: 100%;
        padding-inline: 0.75rem !important;
    }

    .page-header,
    .section-header {
        min-width: 0;
        gap: 0.55rem;
        flex-wrap: wrap;
    }

    .page-header h1,
    .section-header h2,
    .section-header h3 {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .card,
    .stat-card1 {
        margin-inline: 0;
        max-width: 100%;
    }

    .btn,
    button,
    input,
    select,
    textarea {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding-inline: 0.65rem !important;
    }
}

/* Notification bell and targeted notification dropdown. */
.notification-bell {
    position: relative;
    flex: 0 0 auto;
    margin-left: auto;
    z-index: 120;
}

.navbar:has(.notification-bell) {
    overflow: visible !important;
}

.notification-bell-button {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--soft-blue);
    color: var(--navy);
    cursor: pointer;
    font-size: 1rem;
}

.notification-unread-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 8px;
    height: 8px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #e5484d;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(360px, calc(100vw - 24px));
    max-height: min(480px, calc(100vh - 90px));
    display: none;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(6, 40, 91, .16);
}

.notification-bell.open .notification-dropdown {
    display: block;
}

.notification-dropdown-title {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--navy);
    font-weight: 700;
}

.notification-items {
    max-height: 390px;
    overflow-y: auto;
}

.notification-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: .75rem 1rem;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.notification-item:hover,
.notification-item.unread {
    background: var(--soft-blue);
}

.notification-item strong { color: var(--navy); font-size: .85rem; }
.notification-item span { font-size: .78rem; line-height: 1.35; }
.notification-item small { color: var(--text-light); font-size: .68rem; }
.notification-empty { padding: 1rem; margin: 0; color: var(--text-light); font-size: .8rem; text-align: center; }

.navbar-menu a.active {
    color: var(--electric-blue);
    background: var(--soft-blue);
    font-weight: 700;
}

.navbar-menu a.active i { color: var(--electric-blue); }

@media (max-width: 768px) {
    .navbar {
        display: flex;
        align-items: center;
        gap: .35rem;
    }

    .navbar-brand {
        flex: 1 1 auto;
        min-width: 0;
        display: inline-flex;
        align-items: center;
        overflow: hidden;
    }

    .navbar-brand img {
        max-width: 100%;
        height: 34px !important;
    }

    .notification-bell {
        margin-left: 0;
        margin-right: 0;
        flex: 0 0 36px;
    }

    .notification-bell-button {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .notification-dropdown {
        position: fixed;
        top: 64px;
        right: 12px;
        width: min(360px, calc(100vw - 24px));
    }

    .navbar-account {
        margin-left: .1rem;
        flex: 0 0 auto;
    }
}

@media (min-width: 769px) {
    .navbar {
        min-height: 72px;
        padding: .85rem 2rem;
        overflow: visible !important;
    }

    .navbar-brand { order: 1; }
    .notification-bell { order: 2; margin-left: auto; margin-right: 0; }
    .navbar-account { display: none !important; }

    .navbar-menu {
        position: fixed;
        left: 50%;
        bottom: 18px;
        z-index: 1001;
        width: min(920px, calc(100% - 48px));
        margin: 0 !important;
        padding: .55rem .7rem;
        display: flex;
        align-items: center;
        justify-content: space-around;
        gap: .25rem;
        transform: translateX(-50%);
        border: 1px solid rgba(6, 40, 91, .1);
        border-radius: 22px;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 12px 30px rgba(6, 40, 91, .18);
    }

    .navbar-menu li { flex: 1 1 0; min-width: 0; }
    .navbar-menu a {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: .25rem;
        padding: .5rem .35rem;
        border-radius: 14px;
        font-size: .78rem;
        white-space: nowrap;
    }

    .navbar-menu a i { font-size: 1.05rem; }
    .main-content { padding-bottom: 7rem !important; }
}
