/* RezPoint Color Palette */
:root {
    --primary-purple: #6b66c6;
    --primary-pink: #5450a8;
    --white: #FFFFFF;
    --black: #000000;
    --gradient-primary: linear-gradient(135deg, #6b66c6 0%, #8f8bd4 100%);
    --gradient-hover: linear-gradient(135deg, #5450a8 0%, #7b77c2 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding-bottom: 2rem;
}

/* Navbar styling with RezPoint gradient */
.navbar {
    background: var(--gradient-primary) !important;
    box-shadow: 0 2px 10px rgba(107, 102, 198, 0.3);
}
/* Padding treści przy zalogowanym sidebarze */
.app-content > main {
    padding: 1.5rem;
}
@media (max-width: 991.98px) {
    .app-content > main {
        padding: 1rem;
    }
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand:hover {
    opacity: 0.9;
}

.navbar-nav .nav-link {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--white) !important;
    transform: translateY(-2px);
}

/* Buttons with gradient */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(107, 102, 198, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    font-weight: 600;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-purple);
}

/* Cards */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(107, 102, 198, 0.2);
}

.card-header {
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 600;
}

/* Badges */
.badge.bg-success {
    background: linear-gradient(135deg, #00C851 0%, #007E33 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffbb33 0%, #ff8800 100%) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #ff4444 0%, #CC0000 100%) !important;
}

.badge.bg-primary {
    background: var(--gradient-primary) !important;
}

/* Text colors */
.text-primary {
    color: var(--primary-purple) !important;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Links */
a {
    color: var(--primary-purple);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-pink);
}

/* Forms */
.form-label {
    font-weight: 600;
    color: var(--primary-purple);
}

.form-control:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 0.2rem rgba(107, 102, 198, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-purple);
    border-color: var(--primary-purple);
}

/* Tables */
.table th {
    font-weight: 600;
    background: linear-gradient(135deg, rgba(107, 102, 198, 0.1) 0%, rgba(143, 139, 212, 0.1) 100%);
    color: var(--primary-purple);
}

/* Footer */
footer {
    margin-top: auto;
    background: linear-gradient(135deg, rgba(107, 102, 198, 0.05) 0%, rgba(143, 139, 212, 0.05) 100%);
    color: #666;
}

/* Alerts */

/* ===== SERVICE SELECTOR CARDS ===== */
.service-card {
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    border-radius: 10px !important;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(107,102,198,0.18) !important;
}

.service-card--selected {
    border-width: 2px !important;
}

.service-card-img {
    height: 80px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}
/* Placeholder gdy brak obrazu usługi */
div.service-card-img {
    height: 80px;
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid var(--bs-border-color);
}

.service-card-title {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* ===== END SERVICE CARDS ===== */

/* ===== PUBLIC PROVIDER — BANNER HEADER ===== */
.provider-banner {
    width: 100%;
    min-height: 260px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.provider-banner-overlay {
    width: 100%;
    min-height: 260px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.provider-identity-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 14px;
    padding: 14px 20px;
    max-width: 100%;
}

.provider-identity-logo {
    height: 64px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255,255,255,0.9);
    padding: 4px;
    flex-shrink: 0;
}

.provider-identity-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    line-height: 1.2;
}

.provider-identity-sub {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

@media (max-width: 576px) {
    .provider-banner { min-height: 200px; border-radius: 0; }
    .provider-banner-overlay { min-height: 200px; padding: 16px; }
    .provider-identity-name { font-size: 1.3rem; }
    .provider-identity-logo { height: 48px; }
}
/* ===== END PROVIDER BANNER ===== */

.hero-section {
    /*background: var(--gradient-primary);*/
    background: darkslateblue;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        inset: 0;
        /*    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");*/
        pointer-events: none;
        
    }

.hero-search-wrapper {
    max-width: 860px;
}

/* Karuzela wyników */
.results-carousel-wrapper {
    padding: 0 44px;
}

.results-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 8px;
}

.results-carousel::-webkit-scrollbar {
    display: none;
}

.result-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    cursor: pointer;
}

.result-card-inner {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 12px !important;
    overflow: hidden;
}

.result-card:hover .result-card-inner {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(107, 102, 198, 0.2) !important;
}

.result-card-banner {
    height: 120px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.result-card-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    background: white;
}

.result-card-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: box-shadow 0.2s;
    padding: 0;
}

.carousel-nav-btn:hover {
    box-shadow: 0 4px 14px rgba(107, 102, 198, 0.3);
}

.carousel-nav-prev { left: 0; }
.carousel-nav-next { right: 0; }
/* ===== END INDEX PAGE ===== */

.alert-success {
    background: linear-gradient(135deg, rgba(0, 200, 81, 0.1) 0%, rgba(0, 126, 51, 0.1) 100%);
    border-left: 4px solid #00C851;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.1) 0%, rgba(204, 0, 0, 0.1) 100%);
    border-left: 4px solid #ff4444;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 187, 51, 0.1) 0%, rgba(255, 136, 0, 0.1) 100%);
    border-left: 4px solid #ffbb33;
}

.alert-info {
    background: linear-gradient(135deg, rgba(107, 102, 198, 0.1) 0%, rgba(143, 139, 212, 0.1) 100%);
    border-left: 4px solid var(--primary-purple);
}

/* Spinner/Loading */
.spinner-border.text-primary {
    color: var(--primary-purple) !important;
}

/* Progress bars */
.progress-bar {
    background: var(--gradient-primary);
}

/* Calendar/Schedule specific */
.bg-primary {
    background: var(--gradient-primary) !important;
}

.border-primary {
    border-color: var(--primary-purple) !important;
}

/* ===== BOOKING TOAST ===== */
.booking-toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1080;
    display: flex;
    flex-direction: column-reverse;
    gap: .75rem;
    pointer-events: none;
}
.booking-toast {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: #fff;
    border-left: 4px solid #6b66c6;
    border-radius: .5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    padding: .75rem 1rem;
    min-width: 280px;
    max-width: 360px;
    pointer-events: all;
    animation: bookingSlideIn .35s ease;
}
.booking-toast-icon { font-size: 1.5rem; color: #6b66c6; flex-shrink: 0; }
.booking-toast-body { flex: 1; min-width: 0; }
.booking-toast-title { font-weight: 700; font-size: .85rem; color: #6b66c6; }
.booking-toast-text  { font-size: .82rem; line-height: 1.4; }
.booking-toast-close { background: none; border: none; color: #aaa; cursor: pointer; font-size: 1rem; padding: 0 .25rem; flex-shrink: 0; }
.booking-toast-close:hover { color: #333; }
@keyframes bookingSlideIn { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== COOKIE CONSENT ===== */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(28,28,38,.97);
    color: #f0f0f0;
    z-index: 2000;
    padding: 1rem 2rem;
    box-shadow: 0 -4px 24px rgba(0,0,0,.35);
    animation: cookieSlideUp .4s ease;
}
@keyframes cookieSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ===== ADMIN SIDEBAR ===== */
.admin-sidebar {
    width: 220px;
    min-width: 220px;
    background: linear-gradient(180deg, #2d2b55 0%, #1e1d3a 100%);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: transform .28s ease;
    z-index: 1040;
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,.65);
    border-radius: 6px;
    padding: .45rem .75rem;
    font-size: .875rem;
    transition: background .15s, color .15s;
}
.admin-sidebar .nav-link:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}
.admin-sidebar .nav-link.active {
    background: rgba(107,102,198,.55);
    color: #fff;
    font-weight: 600;
}
.admin-section-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.35);
    padding: .25rem .75rem 0;
}
.admin-divider {
    border-color: rgba(255,255,255,.1);
    margin: .35rem 0;
}

/* ===== USER SIDEBAR ===== */
.user-sidebar {
    width: 240px;
    min-width: 240px;
    background: linear-gradient(180deg, #2d2b55 0%, #1e1d3a 100%);
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform .28s ease;
    flex-shrink: 0;
}
.user-sidebar .nav-link {
    color: rgba(255,255,255,.70);
    border-radius: 6px;
    padding: .5rem .85rem;
    font-size: .9rem;
    transition: background .15s, color .15s;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.user-sidebar .nav-link:hover,
.user-sidebar .nav-link.active {
    background: rgba(107,102,198,.5);
    color: #fff;
}
.user-sidebar .nav-link.active {
    font-weight: 600;
}
.user-sidebar .sidebar-section {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.35);
    padding: .5rem .85rem .15rem;
}
.user-sidebar hr {
    border-color: rgba(255,255,255,.1);
    margin: .3rem 0;
}

/* ===== SHARED LAYOUT ===== */
.app-layout {
    display: flex;
    min-height: 100vh;
}
.app-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Topbar (tylko na mobile gdy sidebar jest ukryty) */
.app-topbar {
    background: linear-gradient(90deg, #2d2b55 0%, #6b66c6 100%);
    display: none;
    align-items: center;
    gap: .75rem;
    padding: .6rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.app-topbar .brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .4rem;
    flex: 1;
}
.app-topbar .btn-hamburger {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    padding: .1rem .3rem;
    cursor: pointer;
}

/* Sidebar overlay (mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1039;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .app-topbar {
        display: flex !important;
    }
    .user-sidebar,
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        transform: translateX(-100%);
    }
    .user-sidebar.sidebar-open,
    .admin-sidebar.sidebar-open {
        transform: translateX(0);
    }
    .sidebar-overlay.sidebar-open {
        display: block;
    }
    /* Usuń górny navbar Bootstrap na mobile */
    .app-navbar-bootstrap {
        display: none !important;
    }
}
@media (min-width: 992px) {
    .app-topbar {
        display: none !important;
    }
    .app-navbar-bootstrap {
        display: none !important;
    }
}

