/* -*-*-*- IpXoR Company -*-*-*- */
:root {
    --bg-page: #FAF6F0;
    --bg-alt: #F3EDE2;
    --bg-card: #FFFFFF;
    --bg-card-glass: rgba(255, 255, 255, 0.85);
    --primary-teal: #0F4C5C;
    --teal-dark: #072831;
    --primary-rose: #D4A373;
    --rose-soft: #F9EBE0;
    --accent-terracotta: #E29578;
    --accent-gold: #E7B788;
    --accent-green: #2A9D8F;
    --accent-red: #E63946;
    --text-main: #264653;
    --text-muted: #6C757D;
    --border-soft: rgba(212, 163, 115, 0.25);
    --border-light: #ECE5DB;

    /* Semantic Lux Aliases */
    --lux-primary: #0F4C5C;
    --lux-secondary: #D4A373;
    --lux-warm-bg: #FAF6F0;
    --lux-card-bg: #FFFFFF;
    --lux-border: rgba(212, 163, 115, 0.25);
    --lux-dark: #264653;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-pill: 999px;
    --shadow-soft: 0 10px 30px rgba(15, 76, 92, 0.04);
    --shadow-hover: 0 16px 36px rgba(212, 163, 115, 0.16);
    --shadow-card: 0 12px 32px rgba(38, 70, 83, 0.06);
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: 'Cairo', 'Tajawal', sans-serif;
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Glassmorphic Luxury Cards */
.glass-card {
    background: var(--bg-card-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-rose);
}

/* Custom Buttons */
.btn-luxury-primary {
    background: linear-gradient(135deg, var(--primary-teal) 0%, #166072 100%);
    color: #FFFFFF !important;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-pill);
    padding: 12px 28px;
    box-shadow: 0 8px 24px rgba(15, 76, 92, 0.25);
    transition: all 0.3s ease;
}

.btn-luxury-primary:hover {
    background: linear-gradient(135deg, #166072 0%, var(--teal-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 76, 92, 0.35);
}

.btn-luxury-rose {
    background: linear-gradient(135deg, var(--primary-rose) 0%, var(--accent-terracotta) 100%);
    color: #FFFFFF !important;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-pill);
    padding: 12px 28px;
    box-shadow: 0 8px 24px rgba(212, 163, 115, 0.3);
    transition: all 0.3s ease;
}

.btn-luxury-rose:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(212, 163, 115, 0.45);
}

.btn-luxury-outline {
    background: transparent;
    color: var(--primary-teal) !important;
    border: 2px solid var(--primary-teal);
    border-radius: var(--radius-pill);
    font-weight: 700;
    padding: 10px 24px;
    transition: all 0.3s ease;
}

.btn-luxury-outline:hover {
    background: var(--primary-teal);
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

/* Luxury Header */
.clinic-header {
    background: rgba(250, 246, 240, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 1050;
    padding: 12px 0;
}

.nav-brand-container {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.nav-brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-rose);
    box-shadow: 0 4px 14px rgba(212, 163, 115, 0.3);
}

.nav-links-list {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links-list a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.02rem;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    transition: all 0.25s ease;
}

.nav-links-list a:hover {
    color: var(--primary-teal);
    background: rgba(212, 163, 115, 0.15);
}

/* Pregnancy Progress Dial (Insp. by uploaded webp) */
.dial-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dial-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 14px solid var(--bg-alt);
    border-top: 14px solid var(--primary-rose);
    border-right: 14px solid var(--accent-terracotta);
    box-shadow: inset 0 0 20px rgba(212, 163, 115, 0.15);
    animation: rotateDial 20s linear infinite;
}

.dial-center-content {
    background: #FFFFFF;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(15, 76, 92, 0.08);
    z-index: 2;
    border: 1px solid var(--border-soft);
}

.dial-week-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-teal);
    line-height: 1;
}

.dial-week-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-rose);
}

@keyframes rotateDial {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Floating Emergency & WhatsApp */
.floating-actions-box {
    position: fixed;
    bottom: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1040;
}

.floating-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-wa { background: #25D366; }
.floating-emergency { background: var(--accent-red); animation: pulseAlert 2s infinite; }

@keyframes pulseAlert {
    0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
    70% { box-shadow: 0 0 0 16px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

/* Badges & Clinical Alerts */
.badge-rh-negative {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1.5px solid #F87171;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    animation: blinkGlow 1.5s infinite;
}

@keyframes blinkGlow {
    50% { opacity: 0.75; }
}

.badge-urgent-triage {
    background-color: #DC2626;
    color: #FFFFFF;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    animation: pulseAlert 1.5s infinite;
}

/* Admin Sidebar Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--teal-dark) 0%, var(--primary-teal) 100%);
    color: #FFFFFF;
    flex-shrink: 0;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 24px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    transition: all 0.25s ease;
}

.admin-nav-item:hover, .admin-nav-item.active {
    background: rgba(212, 163, 115, 0.2);
    color: var(--accent-gold);
    border-right: 4px solid var(--accent-gold);
}

.admin-content-area {
    flex-grow: 1;
    padding: 30px;
    background: var(--bg-page);
    overflow-y: auto;
}

/* Digital Emergency Card */
.emergency-card-bg {
    background: linear-gradient(135deg, #FFF5EB 0%, #FFFFFF 100%);
    border: 2px solid var(--primary-rose);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 16px 36px rgba(212, 163, 115, 0.14);
}

/* Footer Styling */
.clinic-footer {
    background: #FFFFFF;
    border-top: 1px solid var(--border-soft);
    padding: 40px 0 20px;
    margin-top: 60px;
}

/* Hover elevation & image transforms */
.hover-elevate {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-elevate:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(15, 76, 92, 0.12) !important;
}
.transition-transform {
    transition: transform 0.5s ease;
}
.hover-elevate:hover .transition-transform {
    transform: scale(1.05);
}
.object-fit-cover {
    object-fit: cover;
}
