.minimal-header * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.main-nav, .main-nav *, .user-section, .user-section *, .mobile-nav, .mobile-nav * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.main-nav ul, .main-nav li, .mobile-nav-list, .mobile-nav-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.minimal-header {
    justify-items: center;
    background: #ffffff;
    border-top: #009EE3 3px solid;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.minimal-header .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    margin-left: 40px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.brand-logo {
    max-height: 32px;
    width: auto;
}

.login-brand .brand-logo {
    max-height: 50px;
    width: auto;
} 

.brand-icon {
    color: #00BCFF;
    flex-shrink: 0;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    color: #6b7280;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.875rem;
}

.nav-link:hover {
    color: #009ee3;
    background: #f8fafc;
}

.nav-item.active .nav-link {
    color: #009ee3;
    background: #e9effe;
}

.nav-icon {
    font-size: 0.8rem;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    margin-top: 4px;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #f3f4f6;
    color: #009ee3;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu {
    position: relative;
}

.user-toggle {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.user-toggle:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.user-avatar {
    width: 20px;
    height: 20px;
    background: #009ee3;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    margin-top: 4px;
}

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

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.user-dropdown a:hover {
    background: #f3f4f6;
    color: #009ee3;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 1.125rem;
    cursor: pointer;
    padding: 0.375rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.mobile-toggle:hover {
    color: #374151;
    background: #f9fafb;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    padding: 8px;
    background: white;
    box-shadow: 4px 0 6px -1px rgb(0 0 0 / 0.1);
    transition: left 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
}

.mobile-nav.active {
    display: block;
    left: 0;
}

.mobile-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav-list {
    padding: 1rem 0;
}

.mobile-nav-item {
    margin-bottom: 0.25rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background: #f3f4f6;
    color: #009ee3;
}

.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f9fafb;
}

.mobile-dropdown.active {
    max-height: 300px;
}

.mobile-dropdown-item {
    display: block;
    padding: 0.5rem 2.5rem;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.mobile-dropdown-item:hover {
    background: #f3f4f6;
    color: #009ee3;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.overlay.active {
    display: block;
}

.login-header .container {
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 85px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: 'Wix Madefor Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: #3b3b3b;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.login-brand .brand-title {
    font-size: 1.5rem;
}

.brand-subtitle {
    font-family: 'Wix Madefor Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.8rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.3;
}

.bry-logo-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.bry-logo-section .bry-logo {
    height: 50px;
    width: auto;
}

/* Login Header Media Queries */
@media (max-width: 768px) {
    .login-header .container {
        padding: 0 1rem;
        height: 75px;
    }
    
    .main-icon {
        width: 32px;
        height: 32px;
    }
    
    .login-header .brand-title {
        font-size: 1.25rem;
    }
    
    .brand-subtitle-container {
        padding: 0.375rem 0.625rem;
    }
    
    .brand-subtitle {
        font-size: 0.75rem;
    }
    
    .bry-logo-section .bry-logo {
        height: 40px;
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .login-header .container {
        padding: 0 0.75rem;
        height: 65px;
    }
    
    .main-icon {
        width: 28px;
        height: 28px;
    }
    
    .login-header .brand-title {
        font-size: 1.125rem;
    }
    
    .brand-subtitle {
        font-size: 0.7rem;
    }
    
    .login-brand {
        gap: 0.75rem;
    }
    
    .bry-logo-section .bry-logo {
        height: 35px;
        max-width: 80px;
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .brand-title {
        font-size: 1rem;
    }
    
    .minimal-header .container {
        height: 52px;
        padding: 0 0.75rem;
    }
    
    .header-container {
        margin-left: 20px;
    }
}

@media (max-width: 480px) {
    .minimal-header .container {
        padding: 0 0.75rem;
        height: 48px;
        padding: 0 16px 0 16px;
        justify-items: space-between;
    }

    .brand-subtitle {
        display: none;
    }

    .user-name {
        display: none;
    }
    
    .header-container {
        margin-left: 10px;
    }

    .brand-logo {
        max-height: 28px;
        width: auto;
    }

    .login-brand .brand-logo {
        max-height: 28px;
        width: auto;
    }
}
