/* ==========================================================================
   Lusaka Eye Hospital - Website Under Construction / Planned Maintenance
   Design Language: Lusaka Eye Hospital Portal Standard
   Palette: Slate-50 (#f8fafc), Sky-500/600 (#0ea5e9 / #0284c7), Slate-200 (#e2e8f0)
   Standard: Inter typography, 24px dot pattern, rounded-2xl cards, watermark icons
   Mobile-First, Pure Visitor Facing (Zero Public Admin Controls)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. OVERLAY CANVAS & PORTAL BACKGROUND
   -------------------------------------------------------------------------- */
#leh-under-construction-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    width: 100%;
    min-height: 100vh;
    overflow-y: auto;
    background-color: #f8fafc;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
    color: #1e293b;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-font-smoothing: antialiased;
}

#leh-under-construction-overlay.uc-hidden {
    opacity: 0;
    pointer-events: none;
    display: none !important;
}

/* --------------------------------------------------------------------------
   2. PORTAL TOP BAR (Exact Logbook / Portal Hub Standard)
   -------------------------------------------------------------------------- */
.uc-portal-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

.uc-portal-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 64px;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.uc-portal-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.uc-portal-brand-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.uc-portal-brand-divider {
    height: 22px;
    width: 1px;
    background-color: #e2e8f0;
}

.uc-portal-brand-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.uc-portal-brand-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    background-color: #f1f5f9;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    margin-left: 0.25rem;
}

.uc-portal-header-badges {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.uc-portal-badge-secure {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
}

.uc-portal-badge-secure i {
    color: #10b981;
    font-size: 0.95rem;
}

.uc-portal-badge-status {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0369a1;
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
}

.uc-portal-status-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #0ea5e9;
    box-shadow: 0 0 8px #0ea5e9;
    animation: uc-portal-pulse 2s infinite ease-in-out;
}

@keyframes uc-portal-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* --------------------------------------------------------------------------
   3. MAIN PORTAL BODY & HERO ANNOUNCEMENT CARD
   -------------------------------------------------------------------------- */
.uc-portal-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.25rem 4rem 1.25rem;
    max-width: 1040px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Primary Announcement Card (Portal Standard rounded-2xl Card) */
.uc-portal-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
    padding: 2.75rem 2.25rem;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    box-sizing: border-box;
}

/* Watermark in Card Background (Portal Signature) */
.uc-card-watermark {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 9rem;
    color: #0f172a;
    opacity: 0.025;
    pointer-events: none;
    line-height: 1;
}

/* Icon Container */
.uc-portal-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    color: #0284c7;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem auto;
    box-shadow: inset 0 2px 4px rgba(14, 165, 233, 0.06);
}

/* Kicker Badge */
.uc-portal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0284c7;
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 0.35rem 0.95rem;
    border-radius: 9999px;
    margin-bottom: 1.25rem;
}

/* Card Heading */
.uc-portal-title {
    font-size: 2.15rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin: 0 0 1rem 0;
}

.uc-portal-highlight {
    color: #0284c7;
}

/* Card Description */
.uc-portal-desc {
    font-size: 1rem;
    line-height: 1.65;
    color: #475569;
    max-width: 620px;
    margin: 0 auto 2rem auto;
}

/* Portal Clinical Notice Alert Box */
.uc-portal-alert {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 1.15rem 1.35rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    text-align: left;
    max-width: 720px;
    margin: 0 auto;
    box-sizing: border-box;
}

.uc-portal-alert i {
    font-size: 1.5rem;
    color: #16a34a;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.uc-portal-alert-text {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #166534;
}

.uc-portal-alert-text strong {
    color: #14532d;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   4. PATIENT TRIAGE & EMERGENCY CARDS (Portal Module Card Standard)
   -------------------------------------------------------------------------- */
.uc-portal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .uc-portal-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.uc-portal-module-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.65rem 1.4rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    text-align: left;
}

.uc-portal-module-card:hover {
    transform: translateY(-3px);
    border-color: #bae6fd;
    box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.08);
}

.uc-module-watermark {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 5.5rem;
    color: #0f172a;
    opacity: 0.035;
    pointer-events: none;
    line-height: 1;
}

/* Module Icon Box */
.uc-module-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 1.15rem;
    transition: transform 0.25s ease;
}

.uc-portal-module-card:hover .uc-module-icon-wrap {
    transform: scale(1.08);
}

.uc-icon-red {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fee2e2;
}

.uc-icon-sky {
    background-color: #f0f9ff;
    color: #0284c7;
    border: 1px solid #e0f2fe;
}

.uc-icon-emerald {
    background-color: #ecfdf5;
    color: #059669;
    border: 1px solid #d1fae5;
}

.uc-module-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.35rem 0;
}

.uc-module-desc {
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 1.35rem 0;
    flex-grow: 1;
}

/* Action Buttons (Portal standard rounded-xl) */
.uc-portal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.uc-btn-danger {
    background-color: #dc2626;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.uc-btn-danger:hover {
    background-color: #b91c1c;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.uc-btn-sky {
    background-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.2);
}

.uc-btn-sky:hover {
    background-color: #0369a1;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.uc-btn-whatsapp {
    background-color: #059669;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
}

.uc-btn-whatsapp:hover {
    background-color: #047857;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* --------------------------------------------------------------------------
   5. PORTAL FOOTER (Exact Portal Hub Standard)
   -------------------------------------------------------------------------- */
.uc-portal-footer {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 1.5rem 1.25rem;
    width: 100%;
    box-sizing: border-box;
}

.uc-portal-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: #94a3b8;
    text-align: center;
}

@media (min-width: 640px) {
    .uc-portal-footer-inner {
        flex-direction: row;
        text-align: left;
    }
}

.uc-portal-footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.uc-portal-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.uc-portal-footer-links a:hover {
    color: #0284c7;
}

/* --------------------------------------------------------------------------
   6. RESPONSIVE MOBILE BREAKPOINTS (< 640px)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    .uc-portal-header-inner {
        height: 58px;
        padding: 0 1rem;
    }

    .uc-portal-badge-secure {
        display: none !important;
    }

    .uc-portal-main {
        padding: 2rem 1rem 3rem 1rem;
    }

    .uc-portal-card {
        padding: 2rem 1.25rem;
        border-radius: 18px;
    }

    .uc-portal-title {
        font-size: 1.65rem;
    }

    .uc-portal-desc {
        font-size: 0.92rem;
    }

    .uc-portal-alert {
        padding: 1rem;
    }
}
