/* AquaSport Zapisy v3.0 - UI/UX Pro Max Glassmorphism */

.aquasport-booking-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', system-ui, sans-serif;
}

@media (min-width: 1024px) {
    .aquasport-booking-container {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.dark .glass-card {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ==================
   TABELE MIEJSC
================== */
.aqzap-availability-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.aqzap-table-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dark .aqzap-table-title { color: #f8fafc; }

/* Location badges */
.aqzap-location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.aqzap-loc-newton {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.15));
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
}
.dark .aqzap-loc-newton {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(6, 182, 212, 0.25));
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.aqzap-loc-chwialka {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(34, 197, 94, 0.15));
    color: #0d9488;
    border: 1px solid rgba(20, 184, 166, 0.2);
}
.dark .aqzap-loc-chwialka {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.25), rgba(34, 197, 94, 0.25));
    color: #2dd4bf;
    border-color: rgba(20, 184, 166, 0.3);
}

.aqzap-table-responsive {
    overflow-x: auto;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: inset 0 2px 10px rgba(255,255,255,0.4), 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.dark .aqzap-table-responsive {
    border-color: rgba(255,255,255,0.1);
    box-shadow: inset 0 2px 10px rgba(255,255,255,0.05), 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    background: rgba(15, 23, 42, 0.4);
}

.aqzap-spots-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
    text-align: center;
}

.aqzap-spots-table th {
    background: rgba(248, 250, 252, 0.6);
    padding: 1rem 0.5rem;
    font-weight: 600;
    color: #334155;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}
.dark .aqzap-spots-table th {
    background: rgba(15, 23, 42, 0.4);
    color: #94a3b8;
    border-bottom-color: rgba(255,255,255,0.05);
}

.aqzap-spots-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    color: #334155;
    transition: all 0.2s ease;
    vertical-align: middle;
}
.dark .aqzap-spots-table td {
    border-bottom-color: rgba(255,255,255,0.02);
    color: #cbd5e1;
}

.aqzap-spots-table tr:last-child td { border-bottom: none; }
.aqzap-spots-table tbody tr {
    transition: transform 0.2s ease, background 0.2s ease;
}
.aqzap-spots-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-radius: 0.5rem;
}
.dark .aqzap-spots-table tbody tr:hover {
    background: rgba(30, 41, 59, 0.6);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Pierwsza kolumna (Godzina/Dzień) */
.aqzap-spots-table td strong {
    color: #0f172a;
    background: rgba(255,255,255,0.5);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(0,0,0,0.05);
}
.dark .aqzap-spots-table td strong {
    color: #f8fafc;
    background: rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.1);
}

/* Chwiałka card accent */
.aqzap-chwialka-card {
    border-left: 3px solid #14b8a6;
}
.dark .aqzap-chwialka-card {
    border-left-color: #2dd4bf;
}

/* Chwiałka table badges — show group name + spots */
.aqzap-chwialka-table .aqzap-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
    line-height: 1.2;
    min-width: 3rem;
}
.aqzap-chwialka-table .aqzap-badge strong {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.875rem;
    color: inherit;
}

/* Badges */
.aqzap-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 2rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.spot-ok {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.dark .spot-ok {
    background-color: rgba(5, 150, 105, 0.2);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}

.spot-low {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}
.dark .spot-low {
    background-color: rgba(217, 119, 6, 0.2);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

.spot-full {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
}
.dark .spot-full {
    background-color: rgba(220, 38, 38, 0.2);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

.spot-none {
    background-color: #f1f5f9;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    box-shadow: none;
}
.dark .spot-none {
    background-color: rgba(30, 41, 59, 0.5);
    color: #64748b;
    border-color: rgba(51, 65, 85, 0.5);
}

/* ==================
   FORMULARZ
================== */
.aquasport-form { width: 100%; }

.aqzap-section { margin-bottom: 1.5rem; }
.aqzap-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}
.aqzap-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dark .aqzap-section-title { color: #f8fafc; }

.aqzap-field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}
.aqzap-field {
    flex: 1 1 calc(50% - 0.5rem);
    display: flex;
    flex-direction: column;
}
.aqzap-field-full { flex: 1 1 100%; }
.aqzap-field-sm { flex: 0 1 80px; }

@media (max-width: 640px) {
    .aqzap-field { flex: 1 1 100%; }
}

.aqzap-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.5rem;
}
.dark .aqzap-field label { color: #94a3b8; }
.aqzap-req { color: #ef4444; }

.aqzap-field input, .aqzap-field select {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #0f172a;
    transition: all 0.2s;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}
.dark .aqzap-field input, .dark .aqzap-field select {
    background: rgba(15, 23, 42, 0.6);
    border-color: #334155;
    color: #f8fafc;
}

.aqzap-field input:focus, .aqzap-field select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.aqzap-field input:disabled, .aqzap-field select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f1f5f9;
}
.dark .aqzap-field input:disabled, .dark .aqzap-field select:disabled {
    background: #1e293b;
}

/* Lokalizacja select highlight */
.aqzap-lokalizacja-select {
    font-weight: 500;
}

.aqzap-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    color: #3b82f6;
    border: 1px dashed #3b82f6;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.dark .aqzap-add-btn {
    background: rgba(30, 41, 59, 0.6);
    color: #60a5fa;
    border-color: #60a5fa;
}
.aqzap-add-btn:hover { background: #eff6ff; }
.dark .aqzap-add-btn:hover { background: rgba(59, 130, 246, 0.1); }

.aqzap-remove-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: background 0.2s;
}
.aqzap-remove-btn:hover { background: #fee2e2; }
.dark .aqzap-remove-btn:hover { background: rgba(239, 68, 68, 0.1); }

.aqzap-rodo { margin-bottom: 1.5rem; }
.aqzap-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #475569;
    cursor: pointer;
}
.dark .aqzap-checkbox-label { color: #94a3b8; }
.aqzap-checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.aqzap-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
    position: relative;
    overflow: hidden;
}
.aqzap-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}
.aqzap-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
.aqzap-submit-text, .aqzap-submit-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.aqzap-spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: aqzap-spin 0.8s linear infinite;
}

@keyframes aqzap-spin { to { transform: rotate(360deg); } }

/* Success Message */
.aqzap-success {
    text-align: center;
    padding: 3rem 2rem;
}
.aqzap-success-icon {
    color: #10b981;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}
.aqzap-success h2 {
    color: #0f172a;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.dark .aqzap-success h2 { color: #f8fafc; }
.aqzap-success p {
    color: #475569;
    margin-bottom: 2rem;
}
.dark .aqzap-success p { color: #cbd5e1; }

.grecaptcha-badge {
    visibility: hidden;
}
