/* HEADER AND NAVIGATION STYLES (Restored from header_new.php) */
/* SIMPLE HEADER STYLES */
.simple-header {
    background: #0a192f;
    /* Deep Navy Blue */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.header-left .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.header-left .logo i {
    font-size: 20px;
    color: #3498db;
}

.header-left .logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

/* Mobile logo sizing */
@media (max-width: 768px) {
    .header-left .logo img {
        height: 24px;
    }

    .header-left .logo span {
        font-size: 14px;
    }
}

.header-center {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
    /* allow flex shrink */
    overflow-x: auto;
    /* enable horizontal scroll if needed */
    -webkit-overflow-scrolling: touch;
}

.main-nav {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: nowrap;
    /* prevent wrapping for cleaner desktop look */
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link:hover {
    background: rgba(26, 84, 144, 0.25);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.nav-link .badge {
    background: #1a5490;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 0 0 auto;
    /* prevent shrink of right controls */
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 2px;
    background: #ecf0f1;
    border-radius: 2px;
    margin: 0 8px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: #ffffff !important;
    font-size: 12px;
    line-height: 1.4;
}

.user-info .church {
    color: #f0f0f0 !important;
    font-size: 11px;
    opacity: 0.9;
}

/* DROPDOWN STYLES */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-btn:hover {
    background: rgba(26, 84, 144, 0.2);
    transform: translateY(-1px);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px;
    min-width: 200px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    color: #ecf0f1;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 13px;
}

.dropdown-content a:hover {
    background: rgba(26, 84, 144, 0.2);
    color: #ffffff;
}

.dropdown-content a.logout:hover {
    background: rgba(26, 84, 144, 0.3);
    color: #ffffff;
}

.dropdown-content hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

/* Mobile slide menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 86%;
    max-width: 360px;
    height: 100vh;
    background: #111827;
    color: #ecf0f1;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
    z-index: 2000;
    padding: 18px 16px 24px 16px;
    transition: right .25s ease;
    overflow-y: auto;
    /* Enable scrolling for long menus */
    display: flex;
    flex-direction: column;
}

.mobile-menu h3 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9ca3af;
    margin: 15px 10px 5px 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}


.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    color: #ecf0f1;
    text-decoration: none;
    border-radius: 8px;
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mobile-menu hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 10px 0;
}

.mobile-menu .logout {
    color: #ffcccc;
}

.mobile-menu .mobile-meta {
    margin-top: 8px;
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Close button styling */
.mobile-menu div.mobile-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    background: none !important;
    border: none !important;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    transition: opacity 0.2s ease;
    z-index: 2005;
    /* Higher than menu content */
    box-shadow: none !important;
    outline: none;
}

.mobile-menu .mobile-close:hover {
    opacity: 0.7;
    background: none !important;
}

.mobile-menu .mobile-close:focus {
    outline: none;
    box-shadow: none;
}

.mobile-menu .mobile-close i {
    font-size: 24px;
    display: block;
}



.mobile-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Slightly darker */
    z-index: 1500;
    cursor: pointer;
    backdrop-filter: blur(2px);
}


.mobile-menu.open {
    right: 0;
}

.mobile-backdrop.global-backdrop {
    display: block !important;
}