/* ============================================================
   Pickleball Management System - Global Styles
   ============================================================ */

:root {
    --pb-primary: #1a56db;
    --pb-success: #0e9f6e;
    --pb-card-shadow: 0 2px 12px rgba(0,0,0,.07);
}

body {
    background: #f4f6fb;
    font-family: 'Segoe UI', system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   STAT CARDS
   ============================================================ */
.stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--pb-card-shadow);
    transition: transform .15s, box-shadow .15s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.stat-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 26px; }

/* ============================================================
   CARD DEFAULTS
   ============================================================ */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--pb-card-shadow);
}
.card-header {
    border-radius: 12px 12px 0 0 !important;
    background: #fff;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

/* ============================================================
   TABLE
   ============================================================ */
.table-responsive { border-radius: 8px; }
.table th { background: #f8fafc; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; }
.table td { vertical-align: middle; }
.table tbody tr:hover { background: #f0f4ff; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-brand { font-size: 1.1rem; letter-spacing: -.01em; }
.nav-link.active { font-weight: 600; background: rgba(255,255,255,.12); border-radius: 6px; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a56db 0%, #0e9f6e 100%);
}
.auth-card { border-radius: 16px; box-shadow: 0 8px 40px rgba(0,0,0,.18); max-width: 420px; width: 100%; }
.auth-logo { font-size: 2.5rem; color: var(--pb-primary); }

/* ============================================================
   COURT CARDS
   ============================================================ */
.court-card { border-radius: 12px; overflow: hidden; transition: transform .15s; }
.court-card:hover { transform: translateY(-4px); }
.court-badge { position: absolute; top: 10px; right: 10px; }

/* ============================================================
   TIME SLOT PICKER
   ============================================================ */
.time-slot {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 80px; padding: 6px 10px; border-radius: 8px;
    border: 2px solid #e5e7eb; cursor: pointer; font-size: .82rem;
    font-weight: 500; transition: all .12s; margin: 3px; background: #fff;
}
.time-slot:hover:not(.booked) { border-color: var(--pb-primary); color: var(--pb-primary); }
.time-slot.selected { background: var(--pb-primary); border-color: var(--pb-primary); color: #fff; }
.time-slot.booked { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; cursor: not-allowed; }

/* ============================================================
   TOURNAMENT CARD
   ============================================================ */
.tournament-card { border-left: 4px solid var(--pb-primary); }

/* ============================================================
   BADGES & STATUS
   ============================================================ */
.badge { font-size: .72rem; padding: .35em .6em; border-radius: 6px; }

/* ============================================================
   SIDEBAR (admin)
   ============================================================ */
@media (min-width: 992px) {
    .admin-layout .sidebar { width: 220px; min-height: calc(100vh - 56px); background: #fff; border-right: 1px solid #eee; }
    .admin-layout .content-area { flex: 1; overflow: auto; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-main { font-size: .82rem; margin-top: auto; }

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.avatar-sm { font-weight: 700; }
.section-title { font-size: 1rem; font-weight: 700; color: #374151; border-left: 4px solid var(--pb-primary); padding-left: 10px; }
.empty-state { text-align: center; padding: 60px 20px; color: #9ca3af; }
.empty-state i { font-size: 3rem; display: block; margin-bottom: 12px; }
