/**
 * Pixel Booking System - Styles
 * 
 * Wszystkie style dla strony rezerwacji
 */

body { 
    font-family: 'Sora', sans-serif; 
    background-color: #0d0d0f; 
    color: #e2e8f0; 
    -webkit-tap-highlight-color: transparent; 
    line-height: 1.5;
}

.px-ambient-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.px-blob { position: absolute; width: 500px; height: 500px; background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, rgba(0,0,0,0) 70%); border-radius: 50%; filter: blur(80px); }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Custom UI States */
.btn-choice {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}
.btn-choice:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); }
.btn-choice.active { 
    background: rgba(37, 99, 235, 0.15); 
    border-color: #3b82f6; 
    color: #fff;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
}

.filter-btn {
    transition: all 0.2s;
}
.filter-btn.active {
    background: #2563eb;
    color: white;
}

@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.animate-slide-up { animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

@keyframes slideUpBanner {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.px-hidden { display: none !important; }

/* Banner promocyjny – tydzień testów (jak w konto) */
.px-rezerwacja-promo-banner .px-promo-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(0, 255, 163, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.15);
}
.px-rezerwacja-promo-banner .px-promo-banner__text { display: block; text-align: center; }
.px-rezerwacja-promo-banner .px-promo-banner__title,
.px-rezerwacja-promo-banner .px-promo-banner__subtitle { display: block; }
.px-rezerwacja-promo-banner .px-promo-banner__title {
    font-size: 1.05rem; font-weight: 700; color: #fff; letter-spacing: 0.02em;
}
.px-rezerwacja-promo-banner .px-promo-banner__subtitle {
    font-size: 0.95rem; font-weight: 600; color: #00ffa3; margin-top: 0.25rem;
}
@media (max-width: 480px) {
    .px-rezerwacja-promo-banner .px-promo-banner { padding: 0.875rem 1rem; gap: 0.75rem; }
    .px-rezerwacja-promo-banner .px-promo-banner__title { font-size: 0.98rem; }
    .px-rezerwacja-promo-banner .px-promo-banner__subtitle { font-size: 0.9rem; }
}

/* Override section padding from pixel-components.css */
main section {
    padding: 20px 0 !important;
}

/* Add padding-top to main to account for fixed header */
main {
    padding-top: 80px !important;
}

@media (min-width: 640px) {
    main {
        padding-top: 90px !important;
    }
}

/* Container dla globalnego bannera - przed main */
body > #px-notification-banner {
    padding-top: 80px;
}

@media (min-width: 640px) {
    body > #px-notification-banner {
        padding-top: 90px;
    }
}

/* Error messages styling */
.error-message {
    display: block;
    color: #ef4444;
    font-size: 11px;
    margin-top: 4px;
    font-weight: 500;
    background: transparent !important;
    background-color: transparent !important;
    padding: 0;
    border: none;
}

.error-message.hidden {
    display: none;
}

/* Notification Banner Styles - Push-down (nie fixed) */
#px-notification-banner {
    animation: slideDownFade 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#px-notification-banner.px-hidden {
    display: none !important;
}

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

/* Inline Error Banners w sekcjach */
#tickets-error-banner,
#time-error-banner {
    animation: slideDownFade 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#tickets-error-banner.px-hidden,
#time-error-banner.px-hidden {
    display: none !important;
}

#px-notification-content.error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    backdrop-filter: blur(12px);
}

#px-notification-content.success {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    backdrop-filter: blur(12px);
}

#px-notification-content.info {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(12px);
}

#px-notification-icon.error svg {
    color: #ef4444;
}

#px-notification-icon.success svg {
    color: #22c55e;
}

#px-notification-icon.info svg {
    color: #3b82f6;
}

/* Error border for inputs and containers */
.error-border {
    border-color: #ef4444 !important;
    border-width: 2px !important;
}

/* Error state for sections */
section.has-error {
    animation: shake 0.3s ease-in-out;
    background: transparent !important;
    background-color: transparent !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* Attention state for sections needing action */
section.needs-attention {
    position: relative;
}

section.needs-attention::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    border-radius: 2px;
    animation: pulse-attention 2s ease-in-out infinite;
}

@keyframes pulse-attention {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Error state for people section */
section#people-selection.has-error {
    animation: shake 0.3s ease-in-out;
}

/* Material Design Form Inputs */
.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.form-input:hover:not(:focus):not(:disabled) {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(37, 99, 235, 0.05);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1),
                0 2px 6px rgba(0, 0, 0, 0.16);
    transform: translateY(-1px);
}

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

.form-input.error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.05) !important;
}

.form-input.error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1),
                0 2px 6px rgba(0, 0, 0, 0.16) !important;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.form-label.required::after {
    content: ' *';
    color: #3b82f6;
}

/* Custom Checkboxes */
.custom-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.custom-checkbox-wrapper:hover {
    opacity: 0.9;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 2px;
    flex-shrink: 0;
}

.custom-checkbox:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    margin: 0;
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkmark {
    display: block;
}

.custom-checkbox:has(input[type="checkbox"]:checked) {
    background: #3b82f6;
    border-color: #3b82f6;
}

.custom-checkbox:has(input[type="checkbox"]:checked) .checkmark {
    display: block;
}

.checkmark {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    pointer-events: none;
}

.custom-checkbox-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    flex: 1;
    user-select: none;
}

.custom-checkbox.error {
    border-color: #ef4444;
}

/* Form Container Enhancement */
.form-container-enhanced {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.form-group:last-child {
    margin-bottom: 0;
}

/* Mini Calendar - Material Design */
.mini-calendar {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 12px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 4px;
}

.calendar-header button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-header button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.calendar-header button:active {
    transform: scale(0.95);
}

.month-year {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-transform: capitalize;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.calendar-weekday {
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    padding: 4px 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.date-cell {
    aspect-ratio: 1;
    min-height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 4px;
}

.date-cell:hover:not(.unavailable):not(.selected):not(.other-month) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.date-cell.selected {
    background: rgba(37, 99, 235, 0.15);
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.date-cell.today:not(.selected) {
    border: 2px solid #3b82f6;
    background: rgba(37, 99, 235, 0.1);
    position: relative;
}

.date-cell.today:not(.selected)::before {
    content: 'DZIŚ';
    position: absolute;
    top: -6px;
    right: -2px;
    font-size: 7px;
    font-weight: 700;
    color: #3b82f6;
    background: #0d0d0f;
    padding: 1px 3px;
    border-radius: 3px;
    line-height: 1;
    z-index: 1;
}

.date-cell.weekend:not(.unavailable):not(.selected) {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.06);
}

.date-cell.unavailable {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}

.date-cell.unavailable::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(-45deg);
}

.date-cell.other-month {
    opacity: 0.15;
    pointer-events: none;
}

.date-number {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    line-height: 1;
}

.date-cell.today .date-number {
    color: #3b82f6;
    font-weight: 700;
}

.date-cell.selected .date-number {
    color: #fff;
    font-weight: 700;
}

.availability-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    margin-top: 2px;
}

.availability-dot.available {
    background: #10b981;
}

.availability-dot.limited {
    background: #f59e0b;
}

.availability-dot.unavailable {
    background: #6b7280;
}

/* Ripple effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.date-cell::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    width: 20px;
    height: 20px;
    transform: scale(0);
    opacity: 0;
}

.date-cell:active::after {
    animation: ripple 0.4s ease-out;
}

/* Quick actions */
.calendar-quick-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.quick-action-btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
