/* === CLEAN 3-LAYER HEADER WITH PROPER LOGO CONTAINMENT === */

/* New Header Container - Outermost Layer - 20px MARGINS EACH SIDE */
.new-header {
    background: rgba(255, 255, 255, 0.15); /* Light whitish background - outermost layer */
    width: 100%;
    max-width: calc(100vw - 40px); /* 20px margin each side */
    margin: 2px auto 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
    padding: 2px; /* EXACTLY 2px padding for the white peek effect */
}

/* Remove responsive width adjustments that match content width */

/* Header Content - White Middle Layer */
.new-header-content {
    background: #ffffff; /* Pure white background */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    min-height: 50px;
    position: relative;
    overflow: visible;
    height: 50px;
    border-radius: 6px;
}

/* Logo Section - Left side */
.new-logo-section {
    display: flex;
    align-items: center;
    gap: 12px; /* Space between logo and text */
    flex: 1; /* Take available space */
    max-width: 400px; /* Prevent it from taking too much space */
}

/* Logo Image - Properly contained */
.new-logo-img {
    width: auto !important;
    height: 35px !important; /* Smaller height to fit in 50px header */
    max-width: 150px !important; /* Maximum width */
    max-height: 35px !important; /* Force maximum height */
    object-fit: contain !important; /* Maintain aspect ratio */
    display: block !important;
}

/* Override any other logo styling that might interfere */
.new-logo-section img,
.new-header img {
    width: auto !important;
    height: 35px !important;
    max-width: 150px !important;
    max-height: 35px !important;
    object-fit: contain !important;
}

/* GLOBAL LOGO SIZE CONTROL - Fix all logos everywhere */
img[src*="logo"],
.footer-logo,
.footer img,
.header img,
img[alt*="Online Therapy Tools"],
img[alt*="logo"] {
    width: auto !important;
    height: 30px !important;
    max-width: 120px !important;
    max-height: 30px !important;
    object-fit: contain !important;
    display: inline-block !important;
}

/* Logo Text */
.new-logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.new-logo-title {
    color: #118fd2; /* Blue text on white background */
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

.new-logo-subtitle {
    color: rgba(17, 143, 210, 0.7); /* Blue text with transparency */
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    margin: 0;
}

/* Navigation Section - Right side */
.new-nav-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* User Info */
.new-user-info {
    display: none; /* Hidden on mobile by default */
}

.new-username {
    color: #118fd2; /* Blue text on white background */
    font-size: 14px;
    font-weight: 500;
}

/* Hamburger Menu */
.new-hamburger {
    display: flex;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.new-hamburger:hover {
    background-color: rgba(17, 143, 210, 0.1); /* Blue hover effect */
}

.new-hamburger-line {
    width: 20px;
    height: 2px;
    background-color: #118fd2; /* Blue hamburger lines */
    transition: all 0.3s ease;
}

.new-hamburger.active .new-hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.new-hamburger.active .new-hamburger-line:nth-child(2) {
    opacity: 0;
}

.new-hamburger.active .new-hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Dropdown Menu */
.new-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 16px;
    background: white;
    border: 1px solid #dcdfe3;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.new-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.new-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333333;
    text-decoration: none;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f8f9fa;
}

.new-dropdown-item:last-child {
    border-bottom: none;
}

.new-dropdown-item:hover {
    background-color: #f8f9fa;
}

.new-dropdown-divider {
    height: 1px;
    background-color: #dcdfe3;
    margin: 8px 0;
}

.new-dropdown-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Responsive Design */
@media (min-width: 768px) {
    .new-user-info {
        display: block; /* Show user info on desktop */
    }
    
    .new-header-content {
        padding: 0 24px; /* More padding on desktop */
    }
}

@media (max-width: 767px) {
    .new-logo-title {
        font-size: 16px;
    }
    
    .new-logo-subtitle {
        font-size: 11px;
    }
    
    .new-logo-img {
        height: 35px !important;
        max-width: 150px !important;
    }
}
