/* Header Component Styles - Optimized */
.main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: static;
    top: 0;
    z-index: 999;
    transition: all 0.3s ease;
}

.header-container {
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: grid;
    grid-template-columns: 60px 1fr 60px;
    align-items: center;
    gap: 20px;
}

/* Menu toggle button */
.menu-toggle {
    justify-self: start;
    grid-column: 1;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background-color: rgba(0,0,0,0.1);
    color: #667eea;
}

/* Logo */
.logo {
    justify-self: center;
    grid-column: 2;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

/* Profile section */
.profile-icon {
    justify-self: end;
    grid-column: 3;
    position: relative;
}

.profile-toggle {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #333;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-toggle:hover {
    background-color: rgba(0,0,0,0.1);
    color: #667eea;
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 5px;
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-info {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #f8f9fa;
}

.user-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #333;
}

.dropdown-item.logout:hover {
    background-color: #fee;
    color: #d32f2f;
}

.dropdown-item i {
    width: 16px;
    font-size: 0.9rem;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 5px 0;
}

/* Responsive styles */
@media (max-width: 767px) {
    .header-container {
        padding: 0 15px;
        gap: 15px;
        height: 60px;
    }
    
    .menu-toggle {
        padding: 8px;
    }
    
    .profile-toggle {
        padding: 8px;
        font-size: 1.6rem;
    }
    
    .logo img {
        height: 30px;
    }
    
    .profile-dropdown {
        min-width: 180px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 10px;
        gap: 10px;
    }
    
    .profile-dropdown {
        min-width: 160px;
        right: -5px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .header-container {
        padding: 0 20px;
    }
}
