:root {
    --brand: #ff6b6b;
    --brand-2: #d63384;
    --primary: var(--brand);
    --secondary: #6c757d;
    --success: #198754;
    --info: #0dcaf0;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #212529;
    --border-radius: 0.375rem;
    --border-radius-sm: 0.25rem;
    --border-radius-lg: 0.5rem;
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 1rem;
    --spacing-4: 1.5rem;
    --spacing-5: 3rem;
    --font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

html {
    font-size: 1rem;
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    background: linear-gradient(135deg, rgba(111,66,193,.05), rgba(214,51,132,.05));
}


.nav-link.active {
    font-weight: 600;
    color: var(--brand) !important;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ========== Layout Styles ========== */

.glass {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgb(8 8 60);
    border: 1px solid rgba(255,255,255,.35);
    /* border-radius: 16px;*/
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: .5px;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start;
    height: auto;
    margin: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0;
    padding-right: 1rem;
    line-height: 1;
}

.navbar-brand img {
    vertical-align: middle;
    margin: 0;
}

/* Responsive Logo Styling */
.logo-responsive {
    height: 45px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: height 0.3s ease;
    vertical-align: middle;
    margin: 0;
    padding: 0;
}

/* Tablet and smaller screens */
@media (max-width: 991.98px) {
    .logo-responsive {
        height: 40px;
    }
}

/* Mobile screens */
@media (max-width: 767.98px) {
    .logo-responsive {
        height: 35px;
    }
    
    .navbar-brand {
        padding: 0 !important;
        margin-right: 0.5rem !important;
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
    }
    
    /* Ensure navbar items don't overlap on mobile */
    .navbar .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .navbar .d-flex {
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.375rem !important;
    }
    
    .navbar .btn-sm {
        font-size: 0.8rem !important;
        padding: 0.3rem 0.6rem !important;
        white-space: nowrap;
    }
    
    .nav-profile-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        flex-shrink: 0 !important;
    }
    
    .nav-avatar-img {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
    }
}

/* Extra small mobile screens */
@media (max-width: 575.98px) {
    .logo-responsive {
        height: 30px;
    }
    
    .nav-profile-btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
    }
    
    .nav-avatar-img {
        width: 32px !important;
        height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
    }
}

.btn-brand {
    background: #ff6b6b;
    color: #fff;
}

    .btn-brand:hover {
        background: #ff6b6b;
        color: #fff;
    }

.hero {
        background: radial-gradient(circle at 10% 20%, rgba(111,66,193,.15), transparent 40%), radial-gradient(circle at 90% 10%, rgba(214,51,132,.15), transparent 40%), radial-gradient(circle at 50% 100%, rgba(111,66,193,.12), transparent 50%);
}

.layout-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* Ensure navbar items are vertically centered */
.navbar {
    display: flex;
    align-items: center;
    min-height: 56px;
}

.navbar .container {
    display: flex;
    align-items: center;
}

.navbar-light .navbar-brand {
    color: rgb(250 245 251);
    transition: color 0.3s ease;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0;
    padding-right: 1rem;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start;
    margin: 0;
    line-height: 1;
}

.navbar-light .navbar-brand img {
    vertical-align: middle;
    margin: 0;
}

.nav-profile-btn {
    background-color: #28a745 !important;
    color: white !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.nav-avatar-img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure navbar container aligns items vertically */
.navbar > .container,
.navbar > .container-fluid {
    display: flex;
    align-items: center;
    min-height: 56px;
}

    .navbar-light .navbar-brand:hover {
        color: #ff6b6b !important;
    }

.navbar-light .navbar-nav .nav-link {
    color: rgb(250 245 251);
    transition: color 0.3s ease;
}

    .navbar-light .navbar-nav .nav-link:hover {
        color: #ff6b6b !important;
    }

/* Fix navbar toggler icon visibility */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.25rem 0.5rem;
}

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

/* Mobile-specific navbar toggler improvements */
@media (max-width: 991.98px) {
    .navbar-toggler {
        border: 2px solid rgba(255, 255, 255, 0.5);
        padding: 0.4rem 0.6rem;
        background-color: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }

        .navbar-toggler:hover {
            border-color: rgba(255, 255, 255, 0.8);
            background-color: rgba(255, 255, 255, 0.2);
        }

    .navbar-toggler-icon {
        width: 1.8em;
        height: 1.8em;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ff6b6b' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
    
    /* Fix mobile dropdown positioning to prevent overlap */
    .dropdown-menu {
        position: absolute !important;
        right: 0 !important;
        left: auto !important;
        transform: none !important;
        margin-top: 0.125rem !important;
        z-index: 1050 !important;
    }
    
    /* Ensure dropdown doesn't overlap with other elements */
    .navbar-nav .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        min-width: 200px !important;
        max-width: 250px !important;
    }
    
    /* Specific fix for user profile dropdown in navbar */
    .navbar .dropdown-menu {
        position: absolute !important;
        top: calc(100% + 0.25rem) !important;
        right: 0 !important;
        left: auto !important;
        transform: none !important;
        margin: 0 !important;
        z-index: 1050 !important;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
        border: 1px solid rgba(0, 0, 0, 0.15) !important;
        border-radius: 0.375rem !important;
    }
    
    /* Mobile dropdown fix - prevent overlap with Book Service button */
    .navbar .d-flex .dropdown {
        position: relative !important;
    }
    
    .navbar .d-flex .dropdown .dropdown-menu {
        position: absolute !important;
        top: calc(100% + 0.5rem) !important;
        right: 0 !important;
        left: auto !important;
        transform: none !important;
        margin: 0 !important;
        z-index: 1050 !important;
        width: 200px !important;
        max-width: calc(100vw - 2rem) !important;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
        border: 1px solid rgba(0, 0, 0, 0.15) !important;
        border-radius: 0.375rem !important;
    }
    
    /* Ensure proper spacing between navbar elements */
    .navbar .d-flex {
        gap: 0.5rem !important;
        align-items: center !important;
    }
    
    /* Adjust button sizes on mobile to prevent overlap */
    .navbar .btn-sm {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
    }
}

.bg-dark {
    background: linear-gradient(135deg, #12267c, #340e5a);
}

.home-hero-section {
    background: linear-gradient(135deg, #6f42c1 0%, #5a38a4 100%);
    background-size: cover;
    background-position: center;
    text-align: center;
    border-radius: 25px;
}

/* ===== Minimal Bootstrap-like fallbacks to avoid blink before Bootstrap loads ===== */
.list-inline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.list-inline-item {
    display: inline-block;
}

.btn {
    display: inline-block;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: .5rem 1rem;
    font-size: 1rem;
    border-radius: .5rem;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

    .btn:disabled {
        opacity: .65;
    }


.badge {
    display: inline-block;
    padding: .35rem .6rem;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .5rem;
}

.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.bg-info {
    background-color: #0dcaf0 !important;
    color: #0b2239 !important;
}
