/* LabCare Elite — PWA Installation Modal & Components Styling */
.lc-pwa-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    box-sizing: border-box;
}

.lc-pwa-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.lc-pwa-modal-card {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(226, 232, 240, 0.8);
    position: relative;
    padding: 28px 24px 24px;
    box-sizing: border-box;
    transform: scale(0.94) translateY(12px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #0f172a;
}

.lc-pwa-modal-backdrop.active .lc-pwa-modal-card {
    transform: scale(1) translateY(0);
}

.lc-pwa-close-btn {
    position: absolute;
    top: 16px;
    right: 18px;
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.lc-pwa-close-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.lc-pwa-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.lc-pwa-app-badge {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px -4px rgba(79, 70, 229, 0.35);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-sizing: border-box;
}

.lc-pwa-app-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lc-pwa-modal-header h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 750;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
}

.lc-pwa-modal-header p {
    margin: 0;
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.45;
}

.lc-pwa-steps-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

.lc-modal-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.lc-step-num {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.lc-step-text {
    font-size: 13px;
    color: #334155;
    line-height: 1.45;
    flex: 1;
}

.lc-step-text strong {
    color: #0f172a;
}

.lc-chip-icon {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    background: #e2e8f0;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 2px;
}

.lc-pwa-modal-footer {
    display: flex;
    gap: 10px;
}

.lc-pwa-btn-primary {
    flex: 1;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 11px 16px;
    font-size: 13.5px;
    font-weight: 650;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.lc-pwa-btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.lc-pwa-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 11px 18px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lc-pwa-btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Dark mode compatibility */
.login-shell.dark .lc-pwa-modal-card {
    background: #0f172a;
    border-color: rgba(56, 189, 248, 0.2);
    color: #f1f5f9;
}

.login-shell.dark .lc-pwa-modal-header h3 {
    color: #f8fafc;
}

.login-shell.dark .lc-pwa-modal-header p {
    color: #94a3b8;
}

.login-shell.dark .lc-pwa-steps-container {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

.login-shell.dark .lc-step-text {
    color: #cbd5e1;
}

.login-shell.dark .lc-step-text strong {
    color: #ffffff;
}

.login-shell.dark .lc-chip-icon {
    background: rgba(255, 255, 255, 0.15);
    color: #f8fafc;
}

.login-shell.dark .lc-pwa-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
}

/* ── Login Card In-Form Install Banner ── */
.login-install-banner {
    margin-top: 10px;
    margin-bottom: 6px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.06);
}

.login-install-banner:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15);
    transform: translateY(-1px);
}

.lib-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.lib-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

.lib-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.lib-title {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.lib-desc {
    font-size: 10.5px;
    color: #64748b;
    line-height: 1.25;
}

.lib-action-btn {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: 7px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 650;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
    transition: all 0.2s ease;
}

.login-install-banner:hover .lib-action-btn {
    transform: scale(1.04);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
}

/* Dark mode for banner */
.login-shell.dark .login-install-banner {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(56, 189, 248, 0.25);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.login-shell.dark .login-install-banner:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(56, 189, 248, 0.5);
}

.login-shell.dark .lib-title {
    color: #f1f5f9;
}

.login-shell.dark .lib-desc {
    color: #94a3b8;
}
