/* =========================================================
   Login Header  —  premium floating top bar
   Used by login.php / index.php (UIDAI + Aadhaar logos)
   ========================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 4px 24px -12px rgba(2, 13, 81, .25);
    transition: background .25s ease, box-shadow .25s ease;
}

.header__logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 32px;
    min-height: 64px;
    direction: ltr;
    gap: 24px;
}

.header__logo-container--left,
.header__logo-container--right {
    display: flex;
    align-items: center;
}

.header__logo-container--left {
    max-width: 450px;
    flex: 0 1 auto;
}

.header__logo-container--right {
    max-width: 160px;
    flex: 0 1 auto;
}

.header__logo-container--left img,
.header__logo-container--right img {
    width: auto;
    height: auto;
    max-height: 48px;
    object-fit: contain;
    transition: transform .25s ease, filter .25s ease;
}

.header__app-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0b1c4d;
    margin-left: 12px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    letter-spacing: -0.01em;
    vertical-align: middle;
}

.header__logo-container--left img:hover,
.header__logo-container--right img:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 4px 10px rgba(2, 13, 81, .25));
}

/* Optional: thin accent gradient line under header */
.header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(25, 176, 220, .55) 30%, rgba(11, 28, 77, .55) 70%, transparent 100%);
    opacity: .85;
}

/* Legacy classes (kept for compatibility) */
.ltr .header {
    z-index: 300;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, .92);
}

.ltr .header__bar {
    height: 42px;
    background: linear-gradient(119.54deg, #000046 0%, #1cb5e0 100%);
    position: relative;
    width: 100%;
}

.ltr .header__bar-content-wrapper {
    max-width: 1170px;
    display: flex;
    height: 100%;
    align-items: center;
    margin: 0 auto;
    padding: 0 16px;
}

.ltr .header__dashboard-logo {
    background: transparent;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.ltr .header__dashboard-logo img {
    background: transparent;
}

/* Telegram Premium Pill Badge in Header */
.telegram-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 136, 204, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 136, 204, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #0077b5;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.05);
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.telegram-pill-badge:hover {
    background: rgba(0, 136, 204, 0.12);
    border-color: rgba(0, 136, 204, 0.4);
    color: #0088cc;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.15);
}

.telegram-pill-badge .badge-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.2px;
}

.telegram-pill-badge .badge-text strong {
    color: #0088cc;
    font-weight: 700;
    margin-left: 2px;
}

.pulse-dot-telegram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #229ed9 0%, #0088cc 100%);
    border-radius: 50%;
    color: #ffffff;
    font-size: 12px;
    box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.4);
    animation: telegramPulse 2s infinite;
}

.telegram-pill-badge:hover .pulse-dot-telegram {
    animation: telegramPulse 1s infinite;
}

@keyframes telegramPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.5);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(0, 136, 204, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 136, 204, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header__logos {
        padding: 10px 18px;
        min-height: 64px;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px;
    }
    .header__logo-container--left { max-width: 48%; }
    .header__logo-container--right { max-width: 48%; }
    .header__logo-container--left img,
    .header__logo-container--right img { max-height: 44px; }
    .header__logo-container--center {
        order: 3;
        width: 100%;
        margin-top: 4px;
        flex-grow: 1;
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .header__logos { gap: 8px; }
    .header__logo-container--left img,
    .header__logo-container--right img { max-height: 38px; }
    .telegram-pill-badge {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
}

/* WhatsApp Header Pill Badge */
.whatsapp-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 6px 6px 14px;
    background: #f0f2f5;
    border: 1px solid #e1e4e8;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #4a5568;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.whatsapp-header-badge:hover {
    background: #e8ebe0;
    border-color: rgba(37, 211, 102, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
}

.whatsapp-header-badge .wa-icon {
    color: #25D366;
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
}

.whatsapp-header-badge .wa-btn {
    background: #25D366;
    color: #ffffff !important;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: none;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
    transition: background 0.2s ease;
}

.whatsapp-header-badge:hover .wa-btn {
    background: #20ba5a;
}


