/* ===================================================
   LIFELINE TAP — Global Styles
   =================================================== */
:root {
    --brand-red:      #D32F2F;
    --brand-dark-red: #8B0000;
    --alert-yellow:   #FFA000;
    --bg-light:       #f4f6f8;
    --bg-cream:       #F4F1EA;
    --footer-gray:    #B0B0B0;
    --footer-dark:    #575757;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html, body {
    height: 100%;
}

body {
    background: var(--bg-light);
    color: #111827;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ── NAVBAR ─────────────────────────────────────── */
.logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    background-color: white;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
    font-size: 1.2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
    width: 100%;
}

.logo-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.15s ease, transform 0.1s ease;
}

.logo-content i        { color: var(--brand-red); font-size: 1.5rem; }
.logo-content:active   { opacity: 0.6; transform: scale(0.97); }

.header-nav {
    display: flex;
    gap: 25px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.header-nav a:hover { color: var(--brand-red); }

.header-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2px;
    background: var(--brand-red);
    transition: width 0.2s ease;
}

.header-nav a:hover::after { width: 100%; }

.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    margin-right: 15px;
}

.user-actions i { font-size: 1.2rem; color: #555; cursor: pointer; }

.auth-btn {
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s;
    display: inline-block;
}

.login-btn           { background-color: #fff; border: 1px solid #ccc; color: #333; }
.login-btn:hover     { background-color: #f0f0f0; }
.signup-btn          { background-color: var(--brand-red); color: white; }
.signup-btn:hover    { opacity: 0.85; }

.mobile-menu-icon   { display: none; font-size: 22px; cursor: pointer; color: #333; }
.mobile-logout a    { text-decoration: none; color: #333; font-weight: 600; }
.mobile-logout a:hover { color: var(--brand-red); }

/* ── NOTIFICATION BELL ──────────────────────────── */
.notif-wrapper   { position: relative; }

.notif-bell-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.notif-bell-btn i { font-size: 1.2rem; color: #555; }

.notif-badge {
    position: absolute;
    top: -6px; right: -7px;
    background: var(--brand-red);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    line-height: 1;
}

.notif-dropdown {
    display: none;
    position: absolute;
    top: 36px; right: 0;
    width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    z-index: 3000;
    overflow: hidden;
}

.notif-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.notif-dropdown-header strong { font-size: 14px; color: #222; }

.notif-mark-all {
    font-size: 12px;
    color: var(--brand-red);
    cursor: pointer;
    background: none;
    border: none;
    font-weight: 600;
}

.notif-list { max-height: 320px; overflow-y: auto; }

.notif-list-item {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: #333;
    transition: background 0.15s;
    cursor: pointer;
}

.notif-list-item:hover          { background: #fef5f5; }
.notif-list-item.unread         { background: #fff5f5; border-left: 3px solid var(--brand-red); }
.notif-item-title               { font-size: 13px; font-weight: 700; color: #222; }
.notif-item-msg                 { font-size: 12px; color: #666; margin-top: 3px; }
.notif-item-time                { font-size: 11px; color: #bbb; margin-top: 4px; }
.notif-empty-text               { padding: 24px; text-align: center; color: #aaa; font-size: 13px; }
.notif-dropdown-footer          { padding: 10px 16px; text-align: center; border-top: 1px solid #f0f0f0; }
.notif-dropdown-footer a        { color: var(--brand-red); font-size: 13px; font-weight: 600; text-decoration: none; }

/* ── FOOTER ─────────────────────────────────────── */
.site-footer {
    margin-top: auto;
    background-color: var(--footer-gray);
    color: #333;
    flex-shrink: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
}

.footer-brand  { display: flex; flex-direction: column; gap: 5px; }

.footer-logo {
    font-size: 1.4rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    text-decoration: none;
    transition: opacity 0.15s ease, transform 0.1s ease;
}

.footer-logo:active  { opacity: 0.6; transform: scale(0.97); }
.footer-logo i       { color: var(--brand-red); }
.footer-tagline      { font-size: 0.9rem; color: #555; }

.divider             { width: 1px; height: 40px; background-color: #777; margin-left: 30px; }

.footer-hotline      { display: flex; align-items: center; gap: 15px; text-align: right; }
.hotline-icon        { font-size: 2rem; color: #333; }
.hotline-text h5     { font-size: 1rem; margin-bottom: 2px; }
.hotline-text span   { color: var(--brand-red); font-weight: bold; font-size: 1.1rem; }

.copyright-bar {
    background-color: var(--footer-dark);
    color: #ccc;
    text-align: center;
    padding: 10px;
    font-size: 0.85rem;
}

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 768px) {
    .logo          { padding: 10px 15px; }
    .logo-content  { font-size: 16px; }
    .auth-btn      { padding: 8px 15px; font-size: 13px; }
    .mobile-menu-icon { display: block; }
    .desktop-logout   { display: none; }
    .mobile-logout    { display: block; }

    .header-nav {
        position: absolute;
        top: 65px; right: 15px;
        left: auto;
        transform: none;
        background: white;
        flex-direction: column;
        gap: 15px;
        padding: 15px 25px;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        display: none;
        z-index: 2000;
    }

    .header-nav.active { display: flex; }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        text-align: center;
    }

    .divider { display: none; }
}

@media (min-width: 769px) { .mobile-logout { display: none; } }