@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* =============================================
   DESIGN SYSTEM — Rezerwacja Boisk
   Spójny z pomo_zjazd
   ============================================= */

:root {
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --primary-dark: #152c6b;
    --primary-glow: rgba(59, 130, 246, 0.15);
    --accent: #d97706;
    --accent-hover: #b45309;
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --success: #10b981;
    --success-bg: #d1fae5;
    --success-border: #34d399;
    --danger: #ef4444;
    --danger-bg: #fee2e2;
    --danger-border: #f87171;
    --warning: #f59e0b;
    --warning-bg: #fef3c7;
    --warning-border: #fbbf24;
    --info: #3b82f6;
    --info-bg: #dbeafe;
    --info-border: #60a5fa;
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 50%, #e8edf5 100%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.25);
}

.navbar .brand {
    color: white;
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: opacity var(--transition);
}

.navbar .brand:hover {
    opacity: 0.9;
}

.navbar .brand img {
    height: 36px;
}

.navbar .brand-icon {
    font-size: 1.5rem;
}

.navbar .nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    align-items: center;
}

.navbar .nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
}

.navbar .nav-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.navbar .nav-links a.active {
    color: var(--accent);
    background: rgba(217, 119, 6, 0.12);
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    flex: 1;
}

.container-narrow {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* =============================================
   CARDS
   ============================================= */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.5s ease-out;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.card-header h2 {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 40%, #3b82f6 100%);
    color: white;
    padding: 3.5rem 2rem;
    text-align: center;
    border-radius: var(--radius-2xl);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(59, 130, 246, 0.15);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero h1 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.hero p {
    color: #e2e8f0;
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
    position: relative;
    z-index: 1;
}

.hero .hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.hero .hero-stat {
    text-align: center;
}

.hero .hero-stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.hero .hero-stat-label {
    font-size: 0.85rem;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4 {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 2.25rem; margin-bottom: 1.5rem; }
h2 { font-size: 1.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }

p { color: var(--text-muted); margin-bottom: 0.75rem; }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.btn:hover::after {
    opacity: 1;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.35);
}

.btn-accent {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--border);
}

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

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
}

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

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

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
}

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

.btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* =============================================
   FORMS
   ============================================= */
.form-group {
    margin-bottom: 1.25rem;
}

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

.form-group .form-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    background: white;
    transition: all var(--transition);
    color: var(--text-main);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-control::placeholder {
    color: var(--text-light);
}

select.form-control {
    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='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

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

.form-inline {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

/* =============================================
   ALERTS
   ============================================= */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInDown 0.4s ease-out;
}

.alert-success {
    background: var(--success-bg);
    color: #065f46;
    border: 1px solid var(--success-border);
}

.alert-danger {
    background: var(--danger-bg);
    color: #991b1b;
    border: 1px solid var(--danger-border);
}

.alert-warning {
    background: var(--warning-bg);
    color: #92400e;
    border: 1px solid var(--warning-border);
}

.alert-info {
    background: var(--info-bg);
    color: #1e40af;
    border: 1px solid var(--info-border);
}

/* =============================================
   TABLE
   ============================================= */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    text-align: left;
    font-size: 0.9rem;
}

th, td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
}

th {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: sticky;
    top: 0;
}

tr:nth-child(even) { background-color: #f8fafc; }
tr:hover { background-color: #f1f5f9; }

/* =============================================
   CALENDAR — Widok tygodnia
   ============================================= */
.calendar-wrapper {
    margin-bottom: 2rem;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.calendar-nav h2 {
    margin: 0;
    font-size: 1.35rem;
}

.calendar-nav-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: 80px repeat(var(--cols, 7), 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.calendar-header-cell {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.calendar-header-cell .cal-date {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
    margin-top: 0.25rem;
}

.calendar-header-cell.today {
    background: linear-gradient(180deg, var(--accent), var(--accent-hover));
}

.calendar-time-cell {
    background: #f8fafc;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.calendar-slot {
    background: white;
    padding: 0.35rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    position: relative;
}

.calendar-slot.available {
    cursor: pointer;
}

.calendar-slot.available:hover {
    background: var(--success-bg);
    transform: scale(1.02);
    z-index: 2;
    box-shadow: 0 0 0 2px var(--success);
}

.calendar-slot.available::before {
    content: '✓';
    font-size: 1.2rem;
    color: var(--success);
    opacity: 0.4;
}

.calendar-slot.available:hover::before {
    opacity: 1;
}

.calendar-slot.booked {
    cursor: not-allowed;
}

.calendar-slot.booked .slot-pill {
    background: linear-gradient(135deg, var(--slot-color, var(--primary-light)), color-mix(in srgb, var(--slot-color, var(--primary-light)), black 15%));
    color: white;
    padding: 0.3rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
    line-height: 1.3;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.calendar-slot.blocked {
    background: repeating-linear-gradient(
        45deg,
        #f8fafc,
        #f8fafc 5px,
        #f1f5f9 5px,
        #f1f5f9 10px
    );
    cursor: not-allowed;
}

.calendar-slot.no-slot {
    background: #f8fafc;
}

/* =============================================
   BOISKO CARD (na stronie głównej)
   ============================================= */
.boisko-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.boisko-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.boisko-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.boisko-card.selected {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px var(--primary-glow), var(--shadow-lg);
}

.boisko-card-header {
    padding: 1.25rem 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.boisko-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.boisko-card-header h3 {
    color: white;
    margin: 0;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.boisko-card-body {
    padding: 1rem 1.5rem;
}

.boisko-card-body p {
    font-size: 0.9rem;
    margin: 0;
}

.boisko-card-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.boisko-card-stat .stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

.boisko-card-stat .stat-value {
    font-weight: 700;
    color: var(--success);
    font-size: 1rem;
}

/* =============================================
   RESERVATION FORM
   ============================================= */
.reservation-summary {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #bae6fd;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.reservation-summary h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reservation-summary .summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.reservation-summary .summary-item {
    display: flex;
    flex-direction: column;
}

.reservation-summary .summary-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.15rem;
}

.reservation-summary .summary-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
}

/* =============================================
   BADGE / STATUS
   ============================================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success { background: var(--success-bg); color: #065f46; }
.badge-danger { background: var(--danger-bg); color: #991b1b; }
.badge-warning { background: var(--warning-bg); color: #92400e; }
.badge-info { background: var(--info-bg); color: #1e40af; }
.badge-neutral { background: #f1f5f9; color: var(--text-muted); }

/* =============================================
   ADMIN SIDEBAR LAYOUT
   ============================================= */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 56px);
}

.admin-sidebar {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    padding: 1.5rem 0;
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
}

.admin-sidebar-header {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
}

.admin-sidebar-header h3 {
    color: white;
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-nav {
    list-style: none;
    padding: 0;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.admin-nav a.active {
    color: white;
    background: rgba(59, 130, 246, 0.15);
    border-left-color: var(--primary-light);
}

.admin-nav a .nav-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.admin-content {
    padding: 2rem;
    background: var(--bg-color);
}

/* =============================================
   STATS CARDS (Admin Dashboard)
   ============================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition);
}

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

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-card .stat-info h4 {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.15rem;
}

.stat-card .stat-info .stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state p {
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.25s ease-out;
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: scaleIn 0.3s ease-out;
}

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

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--danger-bg);
    color: var(--danger);
}

.modal-body {
    padding: 1.5rem 2rem;
}

.modal-footer {
    padding: 1rem 2rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* =============================================
   COLOR PICKER
   ============================================= */
.color-picker-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.color-option {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.color-option:hover {
    transform: scale(1.15);
}

.color-option.selected {
    border-color: var(--text-main);
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--text-main);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    text-align: center;
    padding: 2rem 1.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: auto;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.animate-pulse { animation: pulse 2s infinite; }

/* =============================================
   UTILITIES
   ============================================= */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        position: relative;
        top: 0;
        height: auto;
    }
    .admin-nav {
        display: flex;
        overflow-x: auto;
        padding: 0 1rem;
    }
    .admin-nav a {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 0.75rem 1rem;
    }
    .admin-nav a.active {
        border-bottom-color: var(--primary-light);
        border-left-color: transparent;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }
    .navbar .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.15rem;
    }
    .hero h1 { font-size: 2rem; }
    .hero { padding: 2.5rem 1.5rem; }
    .hero .hero-stats { gap: 1.5rem; }
    .card { padding: 1.5rem; }
    .calendar-grid {
        grid-template-columns: 60px repeat(var(--cols, 1), 1fr);
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .modal-body { padding: 1rem 1.25rem; }
    .boisko-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .calendar-header-cell .cal-date {
        font-size: 1.1rem;
    }
    .btn-group {
        flex-direction: column;
    }
    .btn-group .btn {
        width: 100%;
    }
}

/* =============================================
   MONTHLY CALENDAR
   ============================================= */
.month-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.month-calendar-day {
    background: white;
    min-height: 110px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition);
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.month-calendar-day:hover {
    background: var(--border-light);
    z-index: 1;
}

.month-calendar-day.empty {
    background: #f8fafc;
    cursor: default;
}

.month-calendar-day.today {
    background: #eff6ff;
    box-shadow: inset 0 0 0 2px var(--primary-light);
}

.month-calendar-day.selected {
    background: #fffbeb;
    box-shadow: inset 0 0 0 2px var(--accent);
}

.month-calendar-day.past {
    opacity: 0.6;
    background: #f8fafc;
}

.month-day-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: right;
}

.month-calendar-day.today .month-day-number {
    color: var(--primary);
}

.month-day-indicators {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.month-indicator-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.35rem;
    border-radius: var(--radius-sm);
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Day details styling */
.day-details-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    animation: fadeInUp 0.4s ease-out;
}

.day-details-title {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.day-slots-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.day-slot-item {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition);
}

.day-slot-item.available {
    background: var(--success-bg);
    border-color: var(--success-border);
    color: #065f46;
    text-decoration: none;
    font-weight: 600;
}

.day-slot-item.available:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    background: #a7f3d0;
}

.day-slot-item.booked {
    background: var(--border-light);
    color: var(--text-muted);
}

.day-slot-item.blocked {
    background: #f1f5f9;
    border-style: dashed;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .month-calendar-day {
        min-height: 80px;
        padding: 0.25rem;
    }
    .month-day-number {
        font-size: 0.9rem;
    }
    .month-indicator-badge {
        font-size: 0.6rem;
        padding: 0.05rem 0.2rem;
    }
}

