/* --- Header --- */
.glass-header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    padding: 0 30px;
    margin: 15px 25px;
    /* Floating margin */
    border-radius: 24px;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
    flex-shrink: 0;
    /* Keep height fixed */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand-logo-container {
    padding: 0;
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 40px;
    width: auto;
}

.header-center-spacer {
    flex: 1;
}

/* Header Controls */
.header-right-controls {
    display: flex;
    align-items: center;
    gap: 25px;
    /* Increased gap */
}

.lang-selector {
    position: relative;
}

.lang-btn {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 12px 24px;
    /* Larger padding */
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    /* Larger text */
    color: var(--primary-dark);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.15);
    /* Nice pop shadow */
}

.lang-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 119, 182, 0.25);
    background: var(--bg-body);
}

.lang-btn i {
    font-size: 1.2rem;
    color: var(--primary-blue);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 130%;
    right: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 15px 40px rgba(0, 62, 138, 0.2);
    border-radius: 16px;
    z-index: 1001;
    overflow: hidden;
    animation: fadeInDown 0.2s ease;
}

.lang-dropdown.show {
    display: block;
}

.lang-opt {
    display: block;
    padding: 15px 25px;
    color: var(--text-main);
    text-decoration: none;
    transition: 0.2s;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.lang-opt:last-child {
    border-bottom: none;
}

.lang-opt:hover {
    background: var(--bg-body);
    color: var(--primary-blue);
    padding-left: 30px;
    /* Slide effect */
}

/* Time Widget - Premium Redesign */
.time-widget {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 10px 30px;
    /* Substantial size */
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 55px;
    /* Fixed height match */
}

.header-time {
    font-weight: 800;
    font-size: 1.8rem;
    /* Much larger */
    color: var(--primary-dark);
    letter-spacing: -1px;
    line-height: 1;
}

.time-divider {
    width: 2px;
    height: 24px;
    background: var(--primary-blue);
    opacity: 0.3;
}

.header-date {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    line-height: 1.2;
    display: flex;
    flex-direction: column;
}

/* iPad 11-inch Landscape (1194x834) Kiosk Optimization */
@media screen and (min-width: 1025px) and (max-height: 850px) {
    .glass-header {
        height: 80px;
        /* Slightly taller for easy touch */
        margin: 10px 15px;
    }

    .time-widget {
        padding: 5px 20px;
        height: 48px;
    }

    .header-time {
        font-size: 1.5rem;
    }

    .lang-btn {
        padding: 10px 20px;
    }
}

/* --- Emergency Header Button --- */
.emergency-header-btn {
    background: #fff0f0;
    border: 1px solid rgba(255, 0, 0, 0.1);
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    color: #cc0000;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.1);
}

.emergency-header-btn:hover {
    background: #cc0000;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(204, 0, 0, 0.25);
}

.emergency-header-btn i {
    font-size: 1.3rem;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
        text-shadow: 0 0 10px rgba(204, 0, 0, 0.5);
    }

    100% {
        transform: scale(1);
    }
}

/* --- Emergency Modal Theme --- */
.emergency-theme {
    border: 2px solid #ff4d4d !important;
    background: linear-gradient(to bottom, #ffffff, #fffafa) !important;
}

.emergency-badge {
    background: linear-gradient(135deg, #cc0000, #ff4d4d);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.emergency-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 25px 0;
}

.emergency-card {
    background: white;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.emergency-card:hover {
    transform: translateX(5px);
    border-color: #ff4d4d;
    box-shadow: 0 8px 20px rgba(204, 0, 0, 0.1);
}

.eme-icon {
    width: 60px;
    height: 60px;
    background: #eef2ff;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-blue);
}

.eme-icon.red {
    background: #fff0f0;
    color: #cc0000;
}

.eme-icon.orange {
    background: #fff7ed;
    color: #f97316;
}

.eme-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.eme-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.eme-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1;
}

.emergency-maps {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 20px;
    padding-top: 25px;
    border-top: 1px dashed #ddd;
}

.map-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.map-item span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.map-qr {
    background: white;
    padding: 10px;
    border-radius: 15px;
    border: 1px solid #eee;
}

.map-qr img {
    width: 120px;
    height: 120px;
}

/* --- Google Translate Overrides --- */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0px !important;
}

.goog-te-gadget {
    color: transparent !important;
}

.goog-te-gadget .goog-te-combo {
    display: none !important;
}

#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}