/* ============================================================
   HUMRAZ FAMILY APP — Master Stylesheet
   public/css/style.css
   ============================================================ */

/* ---- CSS Custom Properties (Brand Tokens) ---- */
:root {
    --teal:           #1A7A6E;
    --teal-light:     #E6F4F1;
    --teal-dark:      #0F6E56;
    --teal-rgb:       26, 122, 110;
    --gold:           #C8972B;
    --gold-light:     #FDF3E0;
    --gold-dark:      #7a5a10;
    --gold-rgb:       200, 151, 43;
    --red-soft:       #c94040;
    --purple:         #534AB7;
    --purple-light:   #F0EEFF;
    --dark:           #1A1A1A;
    --muted:          #666666;
    --border:         #E0E0E0;
    --bg:             #F7F5F0;
    --white:          #FFFFFF;
    --shadow-sm:      0 2px 8px rgba(0,0,0,.08);
    --shadow-md:      0 4px 20px rgba(0,0,0,.12);
    --shadow-lg:      0 8px 40px rgba(0,0,0,.16);
    --radius:         12px;
    --radius-sm:      8px;
    --radius-lg:      20px;
    --transition:     all 0.25s ease;
}

/* ---- Base Reset ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* ---- Urdu / RTL Mode ---- */
body.urdu-mode,
body.urdu-mode * {
    font-family: 'Noto Nastaliq Urdu', serif;
    line-height: 2.0;
    letter-spacing: 0;
}

body.urdu-mode .navbar-brand .brand-name,
body.urdu-mode h1, body.urdu-mode h2,
body.urdu-mode h3, body.urdu-mode h4 {
    font-family: 'Noto Nastaliq Urdu', serif;
}

body.urdu-mode .text-start { text-align: right !important; }
body.urdu-mode .text-end   { text-align: left !important; }
body.urdu-mode .me-1, body.urdu-mode .me-2, body.urdu-mode .me-3 { margin-right: 0 !important; margin-left: 0.25rem !important; }

/* ============================================================
   NAVBAR
   ============================================================ */
.humraz-nav {
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 60%, #1d9e8d 100%);
    padding: 0.75rem 0;
    box-shadow: 0 2px 20px rgba(var(--teal-rgb), 0.4);
    transition: var(--transition);
}

.humraz-nav.scrolled {
    padding: 0.4rem 0;
    background: linear-gradient(135deg, var(--teal-dark) 0%, #0f5e52 100%);
}

/* Brand */
.humraz-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    transition: var(--transition);
}
.humraz-brand:hover .brand-icon {
    background: rgba(255,255,255,0.25);
    transform: rotate(-5deg);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.3rem; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.brand-tag  { font-size: 0.65rem; color: rgba(255,255,255,0.75); font-weight: 400; text-transform: uppercase; letter-spacing: 1px; }

/* Nav Links */
.humraz-nav .nav-link {
    color: rgba(255,255,255,0.88) !important;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}
.humraz-nav .nav-link:hover,
.humraz-nav .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.15);
}
.humraz-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

/* Language Toggle Button */
.btn-lang {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    transition: var(--transition);
    cursor: pointer;
}
.btn-lang:hover { background: rgba(255,255,255,0.22); color: #fff; }
.btn-lang .lang-sep { color: rgba(255,255,255,0.4); margin: 0 3px; }
.btn-lang .lang-en.active, .btn-lang .lang-ur.active { color: var(--gold); }

/* Nav Icon Buttons */
.btn-nav-icon {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 10px;
    padding: 0.4rem 0.6rem;
    transition: var(--transition);
}
.btn-nav-icon:hover { background: rgba(255,255,255,0.2); color: #fff; }

.notif-badge { font-size: 0.6rem; min-width: 18px; }

.notif-dropdown { border-radius: var(--radius); border: 1px solid var(--border); }

/* User Menu Button */
.btn-user-menu {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    border-radius: 10px;
    padding: 0.35rem 0.75rem;
    transition: var(--transition);
    font-size: 0.875rem;
}
.btn-user-menu:hover { background: rgba(255,255,255,0.22); color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-user-menu::after { margin-left: 0.4rem; }

/* Gold Button */
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #e8a832 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(var(--gold-rgb), 0.35);
}
.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(var(--gold-rgb), 0.45);
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 60%, #25a090 100%);
    padding: 3.5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-hero .container { position: relative; z-index: 1; }

.hero-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.hero-subtitle-ur {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    direction: rtl;
    text-align: right;
    margin-bottom: 0.75rem;
}

/* Breadcrumb */
.page-hero .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}
.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a { color: rgba(255,255,255,0.7); font-size: 0.875rem; }
.page-hero .breadcrumb-item.active { color: #fff; }
.page-hero .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ============================================================
   HOMEPAGE HERO (index.php)
   ============================================================ */
.home-hero {
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 50%, #20b2a0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Chinar leaf geometric CSS pattern */
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(200,151,43,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cpath d='M50 10 L60 40 L90 40 L66 58 L76 88 L50 70 L24 88 L34 58 L10 40 L40 40 Z' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
    pointer-events: none;
}

.home-hero-content { position: relative; z-index: 2; }

.home-hero-tagline {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -1px;
}

.home-hero-tagline-ur {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: rgba(255,255,255,0.85);
    direction: rtl;
    margin-top: 0.5rem;
}

.home-hero-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    max-width: 520px;
    line-height: 1.7;
    margin: 1.5rem 0;
}

/* ============================================================
   CARDS
   ============================================================ */
.card-humraz {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}
.card-humraz:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(var(--teal-rgb), 0.3);
}

/* Feature / Module cards */
.feature-card {
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--gold));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
    transition: var(--transition);
}
.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon-teal   { background: var(--teal-light);  color: var(--teal); }
.feature-icon-gold   { background: var(--gold-light);  color: var(--gold-dark); }
.feature-icon-purple { background: var(--purple-light); color: var(--purple); }
.feature-icon-red    { background: #FFEDED;             color: var(--red-soft); }
.feature-icon-blue   { background: #E8F4FD;             color: #1a6fa8; }
.feature-icon-green  { background: #E8F8EC;             color: #218838; }

/* Profile Cards */
.profile-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.profile-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.profile-avatar {
    width: 80px; height: 80px;
    background: var(--teal-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--teal);
    border: 3px solid var(--teal);
    flex-shrink: 0;
}

.profile-photo-locked {
    position: relative;
    width: 80px; height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.profile-photo-locked img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: blur(8px);
    transform: scale(1.1);
}
.profile-photo-locked .lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(var(--teal-rgb), 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.6rem;
    text-align: center;
}
.profile-photo-locked .lock-overlay i { font-size: 1.2rem; }

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--teal-light);
    color: var(--teal-dark);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid rgba(var(--teal-rgb), 0.3);
}

.manzimyoor-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--gold-light);
    color: var(--gold-dark);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid rgba(var(--gold-rgb), 0.35);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-teal {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(var(--teal-rgb), 0.3);
}
.btn-teal:hover {
    background: linear-gradient(135deg, var(--teal-dark) 0%, #0a4f3e 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(var(--teal-rgb), 0.45);
}

.btn-outline-teal {
    border: 2px solid var(--teal);
    color: var(--teal);
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: transparent;
    transition: var(--transition);
}
.btn-outline-teal:hover {
    background: var(--teal);
    color: #fff;
    transform: translateY(-1px);
}

/* Primary override to use teal */
.btn-primary {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    border-color: var(--teal-dark);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--teal-dark) 0%, #0a4f3e 100%);
    border-color: #0a4f3e;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
    background-color: #fff;
}
.form-control:focus, .form-select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(var(--teal-rgb), 0.12);
    outline: none;
}

.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dark);
    margin-bottom: 0.4rem;
}

.required-star { color: var(--red-soft); margin-left: 2px; }

/* Step Progress Bar */
.step-progress {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    counter-reset: step;
}
.step-item {
    flex: 1;
    position: relative;
    text-align: center;
}
.step-item::before {
    content: counter(step);
    counter-increment: step;
    width: 36px; height: 36px;
    line-height: 36px;
    border-radius: 50%;
    background: var(--border);
    color: var(--muted);
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-block;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}
.step-item.active::before  { background: var(--teal); color: #fff; }
.step-item.done::before    { background: var(--teal-dark); color: #fff; content: '✓'; }
.step-item::after {
    content: '';
    position: absolute;
    top: 18px; left: 50%; right: -50%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}
.step-item:last-child::after { display: none; }
.step-item.done::after { background: var(--teal); }
.step-label {
    display: block;
    font-size: 0.7rem;
    color: var(--muted);
    margin-top: 6px;
    font-weight: 500;
}
.step-item.active .step-label { color: var(--teal); font-weight: 700; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.humraz-sidebar {
    width: 260px;
    min-height: 100vh;
    background: var(--white);
    border-right: 1px solid var(--border);
    padding: 1.5rem 1rem;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--teal-light);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.5rem;
}
.sidebar-avatar { flex-shrink: 0; }
.sidebar-user-name  { font-weight: 700; font-size: 0.9rem; line-height: 1.2; }
.sidebar-user-role  { font-size: 0.7rem; }
.sidebar-user-district { font-size: 0.75rem; }
.sidebar-divider    { border-color: var(--border); margin: 0.75rem 0; }

.sidebar-section-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--muted);
    padding: 0.75rem 0.5rem 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--dark);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
}
.sidebar-link i { font-size: 1rem; color: var(--muted); flex-shrink: 0; }
.sidebar-link:hover { background: var(--teal-light); color: var(--teal); }
.sidebar-link:hover i { color: var(--teal); }
.sidebar-link.active { background: var(--teal); color: #fff; font-weight: 600; }
.sidebar-link.active i { color: rgba(255,255,255,0.85); }

/* ============================================================
   STATS COUNTER
   ============================================================ */
.stats-row { background: var(--teal-dark); padding: 3rem 0; }
.stat-item  { text-align: center; padding: 1rem; }
.stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: #fff;
    line-height: 1;
    display: block;
}
.stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.75);
    margin-top: 0.5rem;
}
.stat-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.humraz-footer { background: #0F1A19; }

.footer-top { padding: 3.5rem 0 2.5rem; }
.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-brand { display: flex; align-items: center; }
.footer-tagline-ur {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 1.3rem;
    color: var(--gold);
    direction: rtl;
    text-align: right;
    margin: 0.5rem 0;
}

.footer-heading {
    color: var(--gold);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
}
.footer-links a:hover { color: var(--gold); padding-left: 4px; }

.emergency-card {
    display: flex;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
}
.emergency-card a { text-decoration: none; }

.btn-social {
    width: 36px; height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border-color: rgba(255,255,255,0.2) !important;
    transition: var(--transition);
}
.btn-social:hover {
    background: var(--teal) !important;
    border-color: var(--teal) !important;
    transform: translateY(-2px);
}

/* ============================================================
   ADMIN PANEL (Dark Sidebar)
   ============================================================ */
.admin-wrapper { display: flex; min-height: 100vh; background: #f1f3f4; }
.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1A1A2E 0%, #16213E 100%);
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    padding: 0;
    box-shadow: 2px 0 20px rgba(0,0,0,0.3);
}
.admin-main { margin-left: 260px; flex: 1; padding: 0; }

.admin-sidebar-brand {
    background: rgba(26,122,110,0.2);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.admin-sidebar-brand .brand-name { color: #fff; font-size: 1.1rem; font-weight: 800; }
.admin-sidebar-brand .brand-tag  { color: var(--gold); font-size: 0.65rem; }

.admin-nav-section {
    padding: 0.75rem 1rem 0.25rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.35);
    font-weight: 700;
}
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
    margin: 1px 0;
}
.admin-nav-link i { font-size: 1rem; }
.admin-nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); border-left-color: var(--teal); }
.admin-nav-link.active { color: #fff; background: rgba(var(--teal-rgb),0.2); border-left-color: var(--teal); font-weight: 600; }

.admin-topbar {
    background: #fff;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: between;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-content { padding: 1.5rem; }

/* Stat Cards for Admin */
.admin-stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}
.admin-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.admin-stat-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.admin-stat-number { font-size: 1.75rem; font-weight: 800; line-height: 1; }
.admin-stat-label  { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

/* ============================================================
   MOOD CHECK-IN (Mental Health)
   ============================================================ */
.mood-widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.mood-btn {
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: transparent;
    font-size: 1.75rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.mood-btn:hover, .mood-btn.active {
    border-color: var(--teal);
    background: var(--teal-light);
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(var(--teal-rgb), 0.25);
}

/* ============================================================
   CONDITION CARDS (Mental Health)
   ============================================================ */
.condition-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: var(--dark);
    height: 100%;
}
.condition-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    color: var(--dark);
    border-color: rgba(var(--teal-rgb), 0.3);
}
.condition-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

/* ============================================================
   CRISIS BANNER (Mental Health)
   ============================================================ */
.crisis-banner {
    background: linear-gradient(135deg, #c94040, #a83232);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    color: #fff;
    margin-bottom: 2rem;
}
.crisis-banner .crisis-number {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
}

/* ============================================================
   BMI CALCULATOR
   ============================================================ */
.bmi-result {
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}
.bmi-result.underweight { background: #E3F2FD; border-color: #90CAF9; }
.bmi-result.normal      { background: #E8F5E9; border-color: #A5D6A7; }
.bmi-result.overweight  { background: #FFF3E0; border-color: #FFCC80; }
.bmi-result.obese       { background: #FFEBEE; border-color: #EF9A9A; }
.bmi-number { font-size: 3rem; font-weight: 900; line-height: 1; }

/* ============================================================
   INTEREST / STATUS BADGES
   ============================================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}
.status-pending   { background: #FFF3E0; color: #E65100; border: 1px solid #FFCC80; }
.status-accepted  { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
.status-declined  { background: #FFEBEE; color: #C62828; border: 1px solid #EF9A9A; }
.status-confirmed { background: var(--teal-light); color: var(--teal-dark); border: 1px solid rgba(var(--teal-rgb),.3); }
.status-completed { background: #F3E5F5; color: #6A1B9A; border: 1px solid #CE93D8; }
.status-cancelled { background: #FAFAFA; color: var(--muted); border: 1px solid var(--border); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.testimonial-quote {
    font-size: 3rem;
    color: var(--teal-light);
    font-family: Georgia, serif;
    line-height: 0.5;
    margin-bottom: 0.5rem;
    display: block;
}
.testimonial-text {
    font-style: italic;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
}
.testimonial-stars { color: var(--gold); font-size: 0.85rem; }

/* ============================================================
   HOW IT WORKS TIMELINE
   ============================================================ */
.timeline-steps {
    display: flex;
    gap: 0;
    position: relative;
}
.timeline-steps::before {
    content: '';
    position: absolute;
    top: 28px; left: 15%;
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--gold));
}
.timeline-step {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
    position: relative;
}
.timeline-number {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 14px rgba(var(--teal-rgb), 0.4);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-teal   { color: var(--teal) !important; }
.text-gold   { color: var(--gold) !important; }
.text-purple { color: var(--purple) !important; }
.text-muted  { color: var(--muted) !important; }

.bg-teal     { background-color: var(--teal) !important; }
.bg-teal-light { background-color: var(--teal-light) !important; }
.bg-gold     { background-color: var(--gold) !important; }
.bg-gold-light { background-color: var(--gold-light) !important; }
.bg-purple   { background-color: var(--purple) !important; }
.bg-purple-light { background-color: var(--purple-light) !important; }

.border-teal { border-color: var(--teal) !important; }
.border-gold { border-color: var(--gold) !important; }

.shadow-teal { box-shadow: 0 4px 20px rgba(var(--teal-rgb), 0.25) !important; }
.shadow-gold { box-shadow: 0 4px 20px rgba(var(--gold-rgb), 0.25) !important; }

.rounded-humraz { border-radius: var(--radius) !important; }

/* Section spacing */
.section-pad { padding: 4rem 0; }
.section-pad-sm { padding: 2.5rem 0; }

.section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
}
.section-title-ur {
    font-family: 'Noto Nastaliq Urdu', serif;
    color: var(--muted);
    font-size: 1rem;
    direction: rtl;
    display: block;
    margin-top: 0.25rem;
}
.section-divider {
    width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--gold));
    border-radius: 2px;
    margin: 0.75rem auto 2rem;
}

/* Animate on scroll */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 991px) {
    .humraz-sidebar { display: none; }
    .admin-sidebar  { transform: translateX(-100%); transition: var(--transition); }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .timeline-steps::before { display: none; }
    .timeline-steps { flex-direction: column; gap: 1rem; }
}

@media (max-width: 575px) {
    .home-hero { min-height: 90vh; }
    .feature-card { padding: 1.5rem 1rem; }
    .admin-content { padding: 1rem; }
    .page-hero { padding: 2rem 0; }
    .stats-row { padding: 2rem 0; }
}

/* ============================================================
   SCROLLBAR (Webkit)
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(var(--teal-rgb), 0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .humraz-nav, .humraz-footer, .humraz-sidebar,
    .admin-sidebar, .btn, form { display: none !important; }
}

/* ============================================================
   MOBILE BOTTOM NAV
   ============================================================ */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
    z-index: 1040;
    border-top: 1px solid var(--border);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 500;
    transition: var(--transition);
    width: 25%;
    position: relative;
}

.mobile-nav-item i {
    font-size: 1.35rem;
    margin-bottom: 2px;
}

.mobile-nav-item:hover, .mobile-nav-item.active {
    color: var(--teal);
}

@media (max-width: 991px) {
    body {
        padding-bottom: 65px; /* Prevent content from being hidden behind nav */
    }
}
