/* ============================================================
   BOWLING CLUB APP – style.css
   Używa CSS custom properties ustawianych dynamicznie przez PHP
   ============================================================ */

:root {
    --primary:   #1a3a5c;
    --secondary: #e67e22;
    --primary-dark: color-mix(in srgb, var(--primary) 75%, black);
    --bg-light:  #f8f9fa;
}

/* ── Body & Layout ───────────────────────────────────────── */
body {
    background: var(--bg-light);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
}

/* ── Navbar ──────────────────────────────────────────────── */
.bc-navbar {
    background: var(--primary) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.bc-navbar .navbar-brand {
    font-weight: 700;
    letter-spacing: .3px;
}
.bc-navbar .nav-link {
    color: rgba(255,255,255,.8) !important;
    font-size: .93rem;
    padding: .5rem .85rem !important;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.bc-navbar .nav-link:hover,
.bc-navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,.12);
}
.bc-navbar .dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    border-radius: 10px;
    padding: .5rem;
}
.bc-navbar .dropdown-item {
    border-radius: 6px;
    font-size: .9rem;
    padding: .45rem .85rem;
}
.bc-navbar .dropdown-item:hover {
    background: rgba(0,0,0,.06);
}

/* ── Footer ──────────────────────────────────────────────── */
.bc-footer {
    border-top: 1px solid #e0e0e0;
    background: #fff;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
    border-radius: 12px;
    border: 1px solid #e8ecef;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: box-shadow .2s;
}
.card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,.1);
}

.bc-card-header {
    background: var(--primary) !important;
    color: #fff;
    border-radius: 11px 11px 0 0 !important;
    font-weight: 600;
    font-size: .92rem;
    padding: .75rem 1rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.bc-btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    font-weight: 500;
    border-radius: 8px;
    transition: filter .15s, transform .1s;
}
.bc-btn-primary:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.bc-btn-secondary {
    background: var(--secondary) !important;
    border-color: var(--secondary) !important;
    color: #fff !important;
    font-weight: 500;
    border-radius: 8px;
}
.bc-btn-secondary:hover {
    filter: brightness(1.1);
}

/* ── Badges ──────────────────────────────────────────────── */
.bc-badge {
    background: var(--secondary) !important;
    color: #fff;
}

.bc-icon {
    color: var(--secondary);
}

/* ── Section title ───────────────────────────────────────── */
.bc-section-title {
    color: var(--primary);
    font-weight: 700;
    border-left: 4px solid var(--secondary);
    padding-left: .75rem;
}

/* ── Stat cards ──────────────────────────────────────────── */
.bc-stat-card {
    border-radius: 12px;
    transition: transform .15s;
}
.bc-stat-card:hover {
    transform: translateY(-2px);
}
.bc-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}
.bc-stat-warning {
    border-color: #ffc107 !important;
    background: #fffbf0;
}

/* ── Lane cards ──────────────────────────────────────────── */
.bc-lane-card {
    border-radius: 10px;
    padding: .85rem .75rem;
    text-align: center;
    border: 2px solid transparent;
    transition: transform .15s, box-shadow .15s;
    min-height: 110px;
}
.bc-lane-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.bc-lane-free {
    background: #f0fdf4;
    border-color: #86efac;
}
.bc-lane-taken {
    background: #fef2f2;
    border-color: #fca5a5;
}
.bc-lane-mine {
    background: #eff6ff;
    border-color: #93c5fd;
}
.bc-lane-number {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #666;
    margin-bottom: .3rem;
}
.bc-lane-name {
    font-size: .88rem;
    font-weight: 600;
    color: #333;
    word-break: break-word;
}

/* ── Bar chart ───────────────────────────────────────────── */
.bc-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 100px;
    padding: 0 5px 0;
}
.bc-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.bc-bar {
    width: 100%;
    background: var(--secondary);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: height .3s;
}
.bc-bar-cancel {
    width: 100%;
    background: #ef4444;
    border-radius: 0;
    min-height: 0;
}
.bc-bar-label {
    font-size: .7rem;
    color: #888;
    margin-top: 4px;
    text-align: center;
}
.bc-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
}

/* ── Tables ──────────────────────────────────────────────── */
.table th {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: #666;
    font-weight: 600;
}
.table > :not(caption) > * > * {
    padding: .6rem .75rem;
}

/* ── Dashboard slot buttons ──────────────────────────────── */
.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 576px) {
    .bc-stat-number { font-size: 1.5rem; }
    .bc-lane-card   { min-height: auto; padding: .6rem; }
    .container-fluid { padding-left: 1rem; padding-right: 1rem; }
}

/* ── Login page ──────────────────────────────────────────── */
.bc-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: #f0f4ff;
    border-radius: 50%;
}

/* ── Alert tweaks ────────────────────────────────────────── */
.alert {
    border-radius: 10px;
    font-size: .92rem;
}

/* ── Modal ───────────────────────────────────────────────── */
.modal-header.bc-card-header {
    border-radius: 0 !important;
}

/* ── Sticky table header ─────────────────────────────────── */
.sticky-top { top: 0; z-index: 1; }

/* ── Badge slot (training config) ────────────────────────── */
.badge-slot {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 3px 6px;
}
