/* ========================================
   SURGICARE INNER PAGES CSS
   Fixed layout for doctors, services, departments, etc.
   ======================================== */

/* ========================================
   INNER PAGE CONTAINER - Fixed App Layout
   ======================================== */
@media (max-width: 991px) {
    /* Lock body scroll for inner pages */
    body.inner-page-active {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    .mobile-app-container.inner-page {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    /* ========================================
       INNER PAGE HEADER - Fixed at Top
       ======================================== */
    .mobile-app-container.inner-page .mobile-page-header {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        padding: 14px 16px 0px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1;
        overflow: visible;
    }

    .mobile-app-container.inner-page .mobile-page-header-content {
        display: flex;
        align-items: center;
        gap: 12px;
        position: relative;
        z-index: 2;
    }

    .mobile-app-container.inner-page .mobile-back-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.18);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: all 0.2s ease;
        flex-shrink: 0;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .mobile-app-container.inner-page .mobile-back-btn:hover {
        background: rgba(255, 255, 255, 0.28);
        color: white;
    }

    .mobile-app-container.inner-page .mobile-page-title {
        color: white;
        font-size: 1.25rem;
        font-weight: 700;
        margin: 0;
        line-height: 1.2;
    }

    .mobile-app-container.inner-page .mobile-page-subtitle {
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.8rem;
        margin: 2px 0 0;
        display: block;
    }

    /* ========================================
       INNER PAGE BACKGROUND CONTAINER
       ======================================== */
    .mobile-app-container.inner-page .mobile-page-header .background-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 300%;
        overflow: visible;
        z-index: 0;
        pointer-events: none;
    }

    /* ========================================
       INNER PAGE MAIN CONTENT - Fixed & Scrollable
       ======================================== */
    .mobile-app-container.inner-page .mobile-main-content {
        background: #f5f7f9;
        border-radius: 0;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 20px 16px 100px;
        margin-top: 0;
        min-height: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    }

    /* Hide scrollbar but keep functionality */
    .mobile-app-container.inner-page .mobile-main-content::-webkit-scrollbar {
        display: none;
    }

    .mobile-app-container.inner-page .mobile-main-content {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* ========================================
       BREADCRUMB STYLING
       ======================================== */
    .mobile-app-container.inner-page .mobile-breadcrumb {
        display: flex;
        align-items: center;
        gap: 5px;
        margin-bottom: 4px;
        flex-wrap: wrap;
    }

    .mobile-app-container.inner-page .mobile-breadcrumb a,
    .mobile-app-container.inner-page .mobile-breadcrumb span {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.7rem;
        text-decoration: none;
        font-weight: 500;
    }

    .mobile-app-container.inner-page .mobile-breadcrumb a:hover {
        color: white;
    }

    .mobile-app-container.inner-page .mobile-breadcrumb i {
        font-size: 0.5rem;
        color: rgba(255, 255, 255, 0.6);
    }
}
