:root {
    --primary-color: #0f172a; /* Dark slate from landing */
    --secondary-color: #0ea5e9; /* Primary blue from landing */
    --accent-color: #f8fafc; /* Light background from landing */
    --highlight-color: #0284c7; /* Darker blue active state */
    --gold: #0ea5e9; /* Replaced gold with primary blue */
}


body {
    background-color: var(--accent-color);
    font-family: 'Inter', sans-serif;
    color: #334155;
    line-height: 1.6;
}

.bg-navy {
    background-color: var(--primary-color) !important;
}

.text-navy {
    color: var(--primary-color) !important;
}

.text-gold {
    color: var(--gold) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #06b6d4 100%);
    color: white;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.3);
    border-radius: 12px;
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(14, 165, 233, 0.4);
    background: linear-gradient(135deg, var(--secondary-color) 0%, #06b6d4 100%);
    color: white;
}

.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-in-out;
    border-radius: 12px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 100px 0;
    margin-bottom: 2rem;
    border-bottom-right-radius: 50px;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

/* Glassmorphism for modals */
.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.practitioner-card .card-img-top {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* --- Navigation Overhaul --- */

/* Wrapper to handle layout adjustments */
body {
    transition: padding-left 0.3s ease;
}

/* Sidebar (Desktop) */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    background-color: var(--primary-color);
    color: white;
    transition: width 0.3s ease;
    z-index: 1000;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar-header {
    padding: 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
}

.sidebar-logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    opacity: 1;
    transition: opacity 0.2s;
}

.sidebar.collapsed .sidebar-logo {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.sidebar .nav-links {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.nav-item-link {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    width: 100%;
}

.nav-item-link:hover,
.nav-item-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--secondary-color);
}

.nav-item-link i {
    font-size: 1.2rem;
    min-width: 30px;
}

.nav-text {
    margin-left: 10px;
    opacity: 1;
    transition: opacity 0.2s;
}

.sidebar.collapsed .nav-text {
    opacity: 0;
    display: none;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom Nav (Mobile) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.75rem;
}

.bottom-nav-item i {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

/* Mobile Header */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 999;
}

/* Responsive adjustments */
@media (min-width: 992px) {
    body {
        padding-left: 260px;
        /* Sidebar width */
        padding-bottom: 0;
    }

    body.sidebar-collapsed {
        padding-left: 80px;
    }

    .bottom-nav,
    .mobile-header {
        display: none !important;
    }

    .sidebar {
        display: flex !important;
    }
}

@media (max-width: 991.98px) {
    body {
        padding-left: 0;
        padding-bottom: 70px;
        /* Space for bottom nav */
        padding-top: 60px;
        /* Space for mobile header */
    }

    .sidebar {
        display: none !important;
    }

    .bottom-nav {
        display: flex !important;
    }

    /* Adjust containers */
    .container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}