/* Lab Profile Page Styles */

.page-container-fluid {
    width: 100%;
    max-width: 100%;
    padding: 2rem 2rem;
    background: #ffffff;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .page-container-fluid {
        padding: 1.25rem 1rem !important;
    }
}

.btn-clean-back {
    background: none;
    border: none;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    text-decoration: none;
}

.btn-clean-back:hover {
    color: #1e293b;
    transform: translateX(-4px);
}

/* Profile Header - Lab Theme (Indigo) */
.profile-header-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #ffffff;
    position: relative;
}

.profile-cover {
    /* height defined in lab-profile-premium.css */
    background: linear-gradient(120deg, #4f46e5, #2563eb);
    width: 100%;
    position: relative;
}

.profile-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.2));
}

.profile-main-info {
    padding: 0 2.5rem 2rem 2.5rem;
    display: flex;
    align-items: flex-end;
    gap: 2.5rem;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.avatar-container {
    position: relative;
}

.lab-avatar-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 40px;
    border: 6px solid #fff;
    background: #e0e7ff;
    color: #2563eb;
    font-size: 3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .verified-tick is defined in lab-profile-premium.css */

.info-text {
    flex: 1;
    padding-bottom: 4px;
}

.profile-name {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 6px 0;
    line-height: 1.25;
}

.profile-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.p-badge {
    background: #e0e7ff;
    color: #2563eb;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
}

.p-badge-outline {
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
}

.profile-actions {
    padding-bottom: 15px;
    display: flex;
    gap: 10px;
}

.btn-action-primary {
    background: #111;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
}

.btn-action-primary:hover {
    background: #000;
    transform: translateY(-2px);
}

.btn-action-secondary {
    background: #fff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
}

.btn-action-secondary:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.profile-stats-bar {
    border-top: 1px solid #ffffff;
    padding: 1.5rem 2.5rem;
    display: flex;
    gap: 5rem;
    background: #fcfcfc;
}

@media (max-width: 768px) {
    .profile-stats-bar {
        padding: 1.25rem;
        gap: 1rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
    }
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
}

.stat-lbl {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Navigation Tabs (Standardized DNA) */
.profile-nav-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 2rem;
    background: #fff;
    padding: 8px;
    border-radius: 16px;
    width: fit-content;
    border: 1px solid #ffffff;
}

.tab-btn {
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748b;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
}

.tab-btn.active {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.tab-btn:not(.active):hover {
    background: #ffffff;
    color: #1e293b;
}

/* Overview Layout */
.overview-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-card {
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.06);
    border-color: #f8fafc;
}

.sc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sc-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.sc-text {
    color: #475569;
    line-height: 1.7;
    font-size: 1rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tech-item {
    background: #ffffff;
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.tech-item i {
    font-size: 1.5rem;
    color: #2563eb;
}

.tech-item span {
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-list li i {
    font-size: 1.2rem;
    margin-top: 4px;
}

.icon-indigo {
    color: #2563eb;
}

.info-list li div {
    display: flex;
    flex-direction: column;
}

.info-list li strong {
    color: #1e293b;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.info-list li span {
    color: #64748b;
    font-size: 0.85rem;
}
/* --- Shared Services/Tests Grid (Classes in service_card.css) --- */

/* Review Wall */
.masonry-profile-grid {
    column-count: 3;
    column-gap: 20px;
    width: 100%;
    margin: 0 auto;
}

.reviews-hero {
    background: #1e293b;
    border-radius: 20px;
    padding: 2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.reviews-hero.lab-hero {
    background: #2563eb;
}

.reviews-hero::after {
    content: "";
    position: absolute;
    right: -20px;
    top: -50%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.rh-score {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: #fbbf24;
}

.rh-text h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.rh-text p {
    opacity: 0.7;
    margin: 0;
    font-size: 0.9rem;
}

.rh-stars {
    margin-left: auto;
    font-size: 1.2rem;
}

.review-wall-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    margin-bottom: 20px;
    break-inside: avoid;
}

.rw-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.rw-avatar-initials {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e0e7ff;
    color: #2563eb;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rw-meta {
    display: flex;
    flex-direction: column;
}

.rw-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
}

.rw-verified {
    font-size: 0.7rem;
    color: #2563eb;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rw-rating {
    color: #f59e0b;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.rw-body {
    position: relative;
    margin-bottom: 12px;
}

.rw-quote-icon {
    color: #e2e8f0;
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
}

.rw-body p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

.rw-footer {
    border-top: 1px solid #ffffff;
    padding-top: 10px;
    text-align: right;
}

.rw-date {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1200px) {
    .masonry-profile-grid {
        column-count: 2;
    }
}

@media (max-width: 900px) {
    .overview-grid-layout {
        grid-template-columns: 1fr;
    }

    .services-modern-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Booking Choice Modal (Handled globally by shared_components.css) */
#bookingChoiceModal .modal-dialog {
    max-width: 440px;
}


@media (max-width: 768px) {
    /* ── Lab-specific mobile rules only ──
       Cover/avatar sizing, responsive layout, stats bar grid,
       profile-name, profile-badges, profile-actions, and nav tabs scroll
       are all defined in lab-profile-premium.css.
       Only lab-specific overrides live here. */

    .masonry-profile-grid {
        column-count: 1;
    }

    /* ⚠️  Lab avatar SHAPE is preserved here — shared CSS never touches border-radius */
    .lab-avatar-placeholder,
    .avatar-container img {
        border-radius: 28px !important;
    }

    /* Lab-specific: reviews hero stacks vertically */
    .reviews-hero {
        flex-direction: column;
        text-align: center;
    }

    .rh-stars {
        margin: 0;
    }
}

/* Client-side Tab Logic */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* --- MODERN FACILITY OVERVIEW COMPONENTS --- */
/* --- MODERN FACILITY OVERVIEW COMPONENTS --- */
.overview-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.overview-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-card {
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.06);
    border-color: #f8fafc;
}

.sc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sc-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

/* Specialty Highlights */
.treatment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.treatment-item-v2 {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 16px;
    transition: 0.2s;
    border: 1px solid #f1f5f9;
}

.treatment-item-v2:hover {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.t-icon-v2 {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.treatment-item-v2 span {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
}

/* Icon Color Themes (Standardized Platform Blue) */
.icon-theme-blue-primary {
    background: #eff6ff;
    color: #2563eb;
}

.icon-theme-blue-indigo {
    background: #eff6ff;
    color: #2563eb;
}

.icon-theme-blue-sky {
    background: #eff6ff;
    color: #2563eb;
}

.icon-theme-blue-slate {
    background: #eff6ff;
    color: #2563eb;
}

.icon-theme-blue-teal {
    background: #eff6ff;
    color: #2563eb;
}

.skill-tag {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Timeline refinements */
.pro-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.timeline-item {
    display: flex;
    gap: 1.25rem;
    padding: 1rem;
    border-radius: 16px;
    transition: 0.2s;
    align-items: flex-start;
}

.timeline-item:hover {
    background: #f8fafc;
}

.tm-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.tm-content {
    flex: 1;
}

.tm-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.tm-subtitle {
    font-size: 0.95rem;
    color: #475569;
    margin: 0 0 4px 0;
    font-weight: 500;
}

.tm-date {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
}

/* Language Badges */
.lang-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lang-pill-v2 {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-pill-v2:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

/* Enhanced Clinic Map Card */
.clinic-map-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.clinic-map-visual {
    height: 140px;
    background: #e2e8f0 url('https://images.unsplash.com/photo-1526778548025-fa2f459cd5c1?w=600&q=80') center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-overlay-pin {
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 18px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    color: #1e293b;
    font-size: 0.9rem;
    z-index: 5;
}

.map-overlay-pin i {
    color: #ef4444;
}

.pulse-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(239, 68, 68, 0.2);
    border-radius: 50%;
    animation: mapPulse 2s infinite;
}

@keyframes mapPulse {
    0% {
        transform: scale(0.6);
        opacity: 1;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.clinic-map-info {
    padding: 1.5rem;
}

.location-tag {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.clinic-name-v2 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.clinic-address-v2 {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.map-actions {
    display: flex;
    gap: 8px;
}

/* Booking Dashboard Card (Matching Doctor Identity) */
.booking-dashboard-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.bdc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
}

.bdc-status-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
}

.bdc-status-dot.pulse {
    box-shadow: 0 0 0 rgba(34, 197, 94, 0.4);
    animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.bdc-status-text {
    font-size: 0.75rem;
    font-weight: 800;
    color: #166534;
    text-transform: uppercase;
}

.bdc-next-slot {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    text-align: center;
}

.bdc-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    color: #94a3b8;
    margin-bottom: 4px;
}

.bdc-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: #2563eb;
}

.bdc-hours {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bdc-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.bdc-row span {
    color: #64748b;
}

.bdc-row strong {
    color: #1e293b;
}

@media (max-width: 992px) {
    .overview-grid-layout {
        display: flex;
        flex-direction: column-reverse;
        /* Map/Booking on top for mobile */
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .section-card {
        padding: 1.25rem !important;
    }
}

/* ═══════════════════════════════════════════════════
   Extracted from: Views/LabDashboard\Profile.cshtml
═══════════════════════════════════════════════════ */
.modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 23, 42, 0.6);
            backdrop-filter: blur(8px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10005;
            padding: 20px;
        }
        .question-creation-modal {
            background: white;
            width: 100%;
            max-width: 800px;
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            animation: modalSlideUp 0.3s ease-out;
        }
        @keyframes modalSlideUp {
            from { transform: translateY(30px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        .modal-header {
            padding: 24px 32px;
            display: flex;
            align-items: center;
            gap: 20px;
            border-bottom: 1px solid #f1f5f9;
        }
        .modal-header-icon {
            width: 56px;
            height: 56px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            flex-shrink: 0;
        }
        .modal-title-group h3 {
            font-family: 'Outfit', sans-serif;
            font-weight: 800;
            margin: 0;
            color: #0f172a;
        }
        .modal-title-group p {
            margin: 4px 0 0;
            color: #64748b;
            font-size: 0.9rem;
        }

/* RTL Adaptations for Lab Profile */
[dir="rtl"] .btn-clean-back i {
    transform: scaleX(-1);
    display: inline-block;
}

[dir="rtl"] .btn-clean-back:hover {
    transform: translateX(4px);
}