@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand Colors - Manchester City Theme */
    --primary: #6CADDF;
    /* Manchester City Sky Blue */
    --primary-dark: #1C2C5B;
    /* Navy Blue */
    --accent: #FFFFFF;
    /* White */

    /* Semantic */
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;

    /* Surface */
    --bg-app: #F8FAFC;
    /* Slate 50 */
    --surface: #FFFFFF;

    /* Text */
    --text-head: #0F172A;
    --text-body: #334155;
    --text-muted: #64748B;

    /* Effects */
    --radius-sm: 8px;
    --radius-md: 12px;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-card: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);

    --border-light: #E2E8F0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #FAFAFA;
    color: var(--text-body);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    color: var(--text-head);
    font-weight: 700;
    margin-top: 0;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* --- Layout --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* --- Navbar --- */
.navbar {
    background: linear-gradient(135deg, #6CADDF 0%, #1C2C5B 100%);
    border-bottom: 3px solid #FFFFFF;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 12px rgba(108, 173, 223, 0.3);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.4rem;
    font-weight: 900;
    color: #FFFFFF;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar .btn-ghost {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.navbar .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.user-menu span {
    color: #FFD700;
    font-weight: 700;
}

/* --- Cards --- */
.card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #6CADDF, #1C2C5B);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5A9FD4, #0F1B3D);
    box-shadow: 0 6px 20px rgba(108, 173, 223, 0.4);
}

.btn-danger {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

.btn-danger:hover {
    background: #fecaca;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border-light);
}

.btn-ghost:hover {
    background: #f1f5f9;
    color: var(--text-head);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

/* --- Forms --- */
.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-head);
    font-weight: 600;
    font-size: 0.9rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: white;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-head);
    box-sizing: border-box;
    transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #6CADDF;
    box-shadow: 0 0 0 3px rgba(108, 173, 223, 0.1);
}

/* --- Tables --- */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #1C2C5B;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
    background: #E8F4FA;
    font-weight: 800;
}

td {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
}

/* --- Badges --- */
.status {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.status-pending {
    background: #FFF3E0;
    color: #E65100;
    border: 1px solid #FFB74D;
}

.status-confirmed {
    background: #f0fdf4;
    color: #15803d;
}

.status-cancelled {
    background: #fef2f2;
    color: #b91c1c;
}

/* --- Auth Split --- */
.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 50-50 Balance by default */
    min-height: 100vh;
    background: white;
}

.auth-form-container {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Center form */
    background: white;
}

.auth-form-container>div {
    width: 100%;
    max-width: 400px;
    /* Limit width */
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Cards & Glass --- */
.card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    border: 1px solid var(--border-light);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    border-color: rgba(108, 173, 223, 0.3);
}

/* --- Auth Page Styles --- */
.auth-bg {
    background: linear-gradient(135deg, #0F172A 0%, #1e293b 100%);
    position: relative;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 40px;
}

/* Decorative Circle Animation in Auth */
.auth-bg::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #6CADDF, #FFFFFF);
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
    top: -50px;
    left: -50px;
    z-index: 0;
}

.glass-panel {
    position: relative;
    z-index: 1;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(10deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.glass-panel {
    text-align: center;
    max-width: 500px;
}

/* --- Utilities --- */
.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .auth-split {
        grid-template-columns: 1fr;
    }

    .dashboard-grid,
    .booking-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .auth-bg {
        display: none;
    }

    .container {
        padding: 20px 15px;
    }

    /* Mobile Navbar adjustment */
    .nav-content {
        flex-direction: column;
        gap: 15px;
    }

    .brand {
        font-size: 1.2rem;
    }

    .user-menu {
        width: 100%;
        justify-content: space-between;
        font-size: 0.9rem;
    }
}

/* --- Table Responsiveness --- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 15px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

.table-responsive table {
    margin-bottom: 0;
    min-width: 600px;
    /* Force minimum width to trigger scroll */
}

/* Fix card padding on very small screens */
@media (max-width: 480px) {
    .card {
        padding: 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    h3 {
        font-size: 1.1rem;
    }
}

/* --- Footer --- */
.footer {
    background: linear-gradient(180deg, #FFFFFF 0%, #E8F4FA 100%);
    border-top: 3px solid #6CADDF;
    padding: 30px 0;
    margin-top: 50px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.footer h4 {
    color: #1C2C5B;
    margin-bottom: 15px;
    font-weight: 800;
}

.footer p {
    margin: 5px 0;
}