/* 
 * PPS Sports Club Stylesheet
 * Brand: Premium White, Charcoal Matte Black, Harmonious Accents
 */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f9f9f9;
    --bg-tertiary: #f1f1f1;
    --text-primary: #111111;
    --text-secondary: #555555;
    --text-muted: #888888;
    --border-color: #e0e0e0;
    --border-dark: #111111;
    --accent-color: #000000;
    --accent-hover: #333333;
    
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-round: 50%;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    height: 100%;
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Main Layout Wrapper */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1 0 auto;
    padding-top: 70px; /* Header space */
}

/* Header */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(10px);
    height: 70px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.logo-bold {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    margin-right: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* Footer */
.main-footer {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    padding: 50px 20px 20px;
    flex-shrink: 0;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    border-bottom: 1px solid #2d2d2d;
    padding-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.footer-brand p {
    color: #999;
    max-width: 380px;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #eee;
}

.footer-links a {
    display: block;
    color: #999;
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--bg-primary);
}

.footer-contact p {
    color: #999;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    gap: 8px;
}

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

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

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-dark);
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
    border-color: var(--success-color);
}
.btn-success:hover {
    filter: brightness(0.95);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
}
.btn-danger:hover {
    filter: brightness(0.95);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Hero Section */
.hero-banner {
    background: linear-gradient(135deg, #f9f9f9 0%, #eaeaea 100%);
    padding: 100px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.hero-banner h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.04em;
}

.hero-banner p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Headings with underlines */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
}

/* Category Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.category-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px 15px;
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
}

.category-card i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    display: block;
}

.category-card:hover {
    border-color: var(--border-dark);
    transform: translateY(-5px);
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-md);
}

/* Sports Dynamic Cards Grid */
.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.sport-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.sport-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--border-dark);
}

.sport-img-wrapper {
    position: relative;
    height: 200px;
    background-color: var(--bg-tertiary);
}

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

.sport-price-tag {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    padding: 4px 10px;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
}

.sport-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sport-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.sport-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.sport-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    align-items: center;
}

/* How It Works List */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-num {
    width: 45px;
    height: 45px;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-radius: var(--radius-round);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.step-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* User Account Forms */
.auth-container {
    max-width: 450px;
    margin: 50px auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md);
    background-color: var(--bg-primary);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.form-control:focus {
    border-color: var(--border-dark);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-footer a {
    font-weight: 600;
    text-decoration: underline;
    color: var(--text-primary);
}

/* Tabs switcher for Password vs OTP Login */
.tab-switcher {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.tab-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.tab-btn.active {
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-color);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-lg {
    max-width: 750px;
}

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

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal {
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

.close-modal:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Booking Modal Steps */
.booking-steps {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
    padding-bottom: 10px;
    gap: 10px;
}

.booking-steps .step {
    flex: 1;
    font-size: 0.8rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-muted);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.booking-steps .step.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-color);
}

/* Calendar Days */
.calendar-days {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.day-btn {
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    border-radius: var(--radius-sm);
    padding: 10px 5px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.day-btn:hover {
    border-color: var(--border-dark);
    background-color: var(--bg-secondary);
}

.day-btn.active {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.day-btn .day-name {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
}

.day-btn.active .day-name {
    color: #ccc;
}

.day-btn .day-date {
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
}

/* Slots Grid */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.slot-card {
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--bg-primary);
}

.slot-card:hover {
    border-color: var(--border-dark);
    box-shadow: var(--shadow-sm);
}

.slot-card.active {
    border-color: var(--border-dark);
    background-color: #fafafa;
    box-shadow: 0 0 0 2px var(--border-dark) inset;
}

.slot-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.slot-time {
    font-weight: 700;
    font-size: 1rem;
    display: block;
    margin-bottom: 4px;
}

.slot-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.slot-capacity {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Visual Seat Grid (BookMyShow style) */
.seat-layout-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    margin-bottom: 25px;
}

.screen-indicator {
    background-color: var(--text-muted);
    color: white;
    font-size: 0.75rem;
    text-align: center;
    padding: 4px;
    margin-bottom: 40px;
    letter-spacing: 0.1em;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.seat-grid {
    display: grid;
    grid-template-columns: repeat(5, 45px);
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.seat {
    width: 45px;
    height: 40px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.seat.available:hover {
    border-color: var(--border-dark);
    transform: scale(1.1);
}

.seat.selected {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.seat.reserved {
    background-color: var(--bg-tertiary);
    color: var(--text-muted);
    border-color: var(--border-color);
    background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(0,0,0,0.03) 5px, rgba(0,0,0,0.03) 10px);
    cursor: not-allowed;
}

.seat.booked {
    background-color: #333333;
    color: #888888;
    border-color: #333333;
    cursor: not-allowed;
}

.seat-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.85rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-box {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    border: 1px solid var(--border-color);
}

.legend-box.available { background-color: var(--bg-primary); }
.legend-box.selected { background-color: var(--text-primary); }
.legend-box.reserved { background-color: var(--bg-tertiary); }
.legend-box.booked { background-color: #333333; }

/* Dashboard layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

.dashboard-sidebar {
    border-right: 1px solid var(--border-color);
    padding-right: 20px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.sidebar-link:hover, .sidebar-link.active {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    font-weight: 600;
}

.sidebar-link i {
    font-size: 1.1rem;
    width: 20px;
}

/* Stats Cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--radius-md);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-value-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Profile Styles */
.profile-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.profile-avatar-section {
    text-align: center;
    flex-shrink: 0;
}

.profile-avatar-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 15px;
    border-radius: var(--radius-round);
    overflow: hidden;
    border: 2px solid var(--border-dark);
}

.profile-avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info-section {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-item label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
}

.info-item span {
    font-weight: 600;
    font-size: 1.05rem;
}

/* User profile Dropdown */
.user-profile-menu {
    position: relative;
}

.profile-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-round);
    border: 1px solid var(--border-dark);
    object-fit: cover;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    display: none;
    z-index: 200;
}

.profile-dropdown.open {
    display: block;
}

.dropdown-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-header h5 {
    font-size: 0.95rem;
    font-weight: 700;
}

.badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-top: 4px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    font-size: 0.9rem;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: var(--bg-secondary);
}

/* Tables styling */
.table-responsive {
    overflow-x: auto;
    width: 100%;
    margin-bottom: 20px;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: left;
}

.custom-table th {
    background-color: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    padding: 12px 15px;
    font-weight: 700;
}

.custom-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

.custom-table tr:hover {
    background-color: rgba(0, 0, 0, 0.01);
}

/* Toast Alerts styling */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--bg-primary);
    border-left: 4px solid var(--accent-color);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    min-width: 280px;
    max-width: 400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success { border-left-color: var(--success-color); }
.toast.danger { border-left-color: var(--danger-color); }
.toast.warning { border-left-color: var(--warning-color); }

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast-close {
    cursor: pointer;
    color: var(--text-muted);
}

/* Global Loader spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.spinner-box {
    text-align: center;
}

.spinner-circle {
    width: 45px;
    height: 45px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: var(--radius-round);
    animation: spinnerRotate 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spinnerRotate {
    to { transform: rotate(360deg); }
}

/* Developer Mailbox Drawer & Trigger */
.dev-mailbox-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1a1a1a;
    color: #ffffff;
    border: 1px solid #333333;
    padding: 12px 18px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.dev-mailbox-trigger:hover {
    background-color: #000000;
    transform: translateY(-2px);
}

.dev-mailbox-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100%;
    background-color: #111111;
    color: #e0e0e0;
    z-index: 2000;
    box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dev-mailbox-drawer.open {
    right: 0;
}

.drawer-header {
    padding: 20px;
    border-bottom: 1px solid #222222;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    font-size: 1.15rem;
    color: #ffffff;
    font-family: var(--font-heading);
}

.close-drawer {
    font-size: 1.8rem;
    cursor: pointer;
    color: #888888;
}

.close-drawer:hover {
    color: #ffffff;
}

.drawer-actions {
    padding: 10px 20px;
    background-color: #161616;
    border-bottom: 1px solid #222222;
    display: flex;
    justify-content: space-between;
}

.drawer-actions .btn {
    border-color: #333;
    color: #ccc;
    background: none;
    font-size: 0.75rem;
}

.drawer-actions .btn:hover {
    background-color: #222;
    color: white;
}

.drawer-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.email-item {
    background-color: #1a1a1a;
    border: 1px solid #222222;
    border-radius: var(--radius-sm);
    padding: 15px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.email-item:hover {
    border-color: #444444;
}

.email-to {
    font-size: 0.75rem;
    color: #888888;
    margin-bottom: 4px;
}

.email-subject {
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.email-body {
    background-color: #0f0f0f;
    border: 1px solid #1a1a1a;
    padding: 10px;
    font-family: monospace;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 200px;
    overflow-y: auto;
}

.email-date {
    font-size: 0.7rem;
    color: #555555;
    text-align: right;
    margin-top: 8px;
}

/* Friend booking fields layout */
.friend-form-box {
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    background-color: var(--bg-secondary);
}

.friend-form-box h6 {
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Scanner staff view */
.scanner-pane {
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.scanner-feedback {
    margin-top: 25px;
    padding: 20px;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid transparent;
}

.scanner-feedback.valid {
    background-color: rgba(16, 185, 129, 0.08);
    border-color: var(--success-color);
    color: #065f46;
}

.scanner-feedback.invalid, .scanner-feedback.used, .scanner-feedback.cancelled, .scanner-feedback.expired {
    background-color: rgba(239, 68, 68, 0.08);
    border-color: var(--danger-color);
    color: #991b1b;
}

.scanner-feedback.future {
    background-color: rgba(245, 158, 11, 0.08);
    border-color: var(--warning-color);
    color: #92400e;
}

.scanner-feedback-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.scanner-details-table {
    width: 100%;
    margin-top: 15px;
    text-align: left;
    border-collapse: collapse;
}

.scanner-details-table td {
    padding: 6px 10px;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}

/* Grid helper utilities */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.mt-4 { margin-top: 1.5rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mt-3 { margin-top: 1rem !important; }
.pt-3 { padding-top: 1rem !important; }
.border-top { border-top: 1px solid var(--border-color) !important; }
.border-bottom { border-bottom: 1px solid var(--border-color) !important; }
.text-center { text-align: center !important; }
.text-danger { color: var(--danger-color) !important; }
.font-bold { font-weight: 700 !important; }
.flex-grow { flex-grow: 1 !important; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
        gap: 1.2rem;
        box-shadow: var(--shadow-md);
        z-index: 1000;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-links.open {
        display: flex;
    }

    /* Stack inner spans in nav vertically on mobile */
    #nav-guest-links, #nav-student-links, #nav-staff-links, #nav-admin-links {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 1rem !important;
        padding-top: 10px;
        border-top: 1px solid var(--border-color);
    }

    #nav-guest-links .btn, #nav-student-links .btn {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .user-profile-menu {
        width: 100%;
        margin-top: 10px;
        border-top: 1px solid var(--border-color);
        padding-top: 10px;
    }

    .profile-btn {
        width: 100%;
        justify-content: space-between;
        padding: 10px 0;
    }

    .profile-dropdown {
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        padding: 10px 0 0 15px !important;
        background-color: transparent !important;
        display: none;
    }

    .profile-dropdown.open {
        display: block !important;
    }

    .profile-dropdown .dropdown-item {
        padding: 8px 0;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .dashboard-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dashboard-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 15px;
        margin-bottom: 15px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .user-sidebar-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        padding: 10px 15px !important;
        margin-bottom: 12px !important;
        gap: 15px;
        background-color: var(--bg-secondary) !important;
    }
    
    .user-sidebar-card img {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 0 !important;
    }
    
    .user-sidebar-card h4 {
        font-size: 1rem !important;
        margin-bottom: 2px !important;
    }
    
    .sidebar-menu {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto;
        white-space: nowrap;
        gap: 8px !important;
        padding-bottom: 8px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .sidebar-menu::-webkit-scrollbar {
        display: none;
    }
    
    .sidebar-menu li {
        margin-bottom: 0 !important;
        flex: 0 0 auto;
    }
    
    .sidebar-link {
        padding: 8px 12px !important;
        font-size: 0.85rem;
    }
    
    .profile-card {
        flex-direction: column;
        align-items: center;
        gap: 20px !important;
    }
    
    .profile-info-section {
        grid-template-columns: 1fr;
    }
    
    .calendar-days {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .grid-2, .grid-3, .form-row, .sports-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}

/* ==========================================================================
   Homepage Hero Slider
   ========================================================================== */
.hero-slider-container {
    position: relative;
    height: calc(100vh - 70px);
    overflow: hidden;
    background-color: #000;
    margin-bottom: 40px;
    width: 100%;
    border-radius: 0;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
    z-index: 2;
}

.hero-slide .hero-container {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.hero-slide h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    font-family: var(--font-heading);
}

.hero-slide p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    color: rgba(255,255,255,0.9);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255,255,255,0.2);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
    z-index: 10;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.05);
}

.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }

.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.slider-dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

/* ==========================================================================
   Gallery (Photos & Videos)
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.gallery-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.gallery-img-wrapper {
    position: relative;
    padding-bottom: 66.67%; /* 3:2 Ratio */
    overflow: hidden;
    cursor: pointer;
}

.gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .gallery-img {
    transform: scale(1.06);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.8rem;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gallery-img-wrapper:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.gallery-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.gallery-info p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.45;
}

.gallery-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.gallery-video-iframe, 
.gallery-video-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   Lightbox Gallery Modal
   ========================================================================== */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(8px);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
    z-index: 100000;
}

.lightbox-close:hover {
    color: var(--danger-color, #ef4444);
}

.lightbox-content-box {
    max-width: 90%;
    max-height: 85%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.lightbox-caption {
    color: #ffffff;
    margin-top: 20px;
    max-width: 600px;
}

.lightbox-caption h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: var(--font-heading);
}

.lightbox-caption p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

/* ==========================================================================
   Blogs & Articles
   ========================================================================== */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.blog-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-img-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    overflow: hidden;
}

.blog-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-date {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 12px 0;
    color: var(--text-primary);
}

.blog-info p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
    flex-grow: 1;
}

/* Blog Detail View */
.blog-detail-view {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg, 12px);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 50px;
}

.blog-detail-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.blog-detail-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 10px;
    font-family: var(--font-heading);
}

.blog-detail-img-box {
    width: 100%;
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.blog-detail-img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
}

.blog-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
}

/* Responsive slider and blog detail */
@media (max-width: 768px) {
    .hero-slider-container {
        height: calc(100vh - 70px);
        border-radius: 0;
    }
    .hero-slide h1 {
        font-size: 1.8rem;
    }
    .hero-slide p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    .hero-slide .hero-container {
        margin: 0 auto;
        padding: 0 20px;
        text-align: center;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .hero-buttons .btn {
        width: 100%;
    }
    .slider-arrow {
        display: none !important;
    }
    .blog-detail-header h1 {
        font-size: 1.8rem;
    }
    .blog-detail-view {
        padding: 20px;
    }
}

/* WYSIWYG Editor Styles */
.editor-toolbar {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}
.editor-toolbar .tb-btn {
    border: 1px solid transparent;
    background: none;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    min-width: 32px;
    height: 32px;
}
.editor-toolbar .tb-btn:hover {
    background-color: var(--bg-tertiary);
    border-color: #ccc;
}
.editor-toolbar .tb-btn.active {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}
#crud-blog-editor {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    outline: none;
}
#crud-blog-editor:focus {
    border-color: var(--border-dark);
}
#crud-blog-editor[placeholder]:empty:before {
    content: attr(placeholder);
    color: var(--text-muted);
}


