.main-header {
    background: white;
    height: 70px;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #555;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
}

.logo-text span {
    color: #2c3e50;
}

.logo-text .accent {
    color: #3498db;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    font-size: 14px;
}

.search-box input {
    padding: 8px 12px 8px 35px;
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    font-size: 14px;
    width: 220px;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #3498db;
    width: 280px;
}

.notifications {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    color: #7f8c8d;
    transition: color 0.3s;
}

.notifications:hover {
    color: #3498db;
}

.notifications .badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.notifications .badge.show {
    display: flex;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.3s;
}

.user-profile:hover {
    background: #f8f9fa;
}

.user-info {
    text-align: right;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    display: block;
}

.user-role {
    font-size: 11px;
    color: #7f8c8d;
}

.user-avatar {
    font-size: 36px;
    color: #bdc3c7;
}

/* Dropdowns */
.user-dropdown, .notifications-panel {
    position: absolute;
    top: 70px;
    right: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    min-width: 220px;
    display: none;
    z-index: 1001;
    overflow: hidden;
}

.user-dropdown.show, .notifications-panel.show {
    display: block;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.user-dropdown a:hover {
    background: #f8f9fa;
}

.user-dropdown hr {
    margin: 5px 0;
    border: none;
    border-top: 1px solid #ecf0f1;
}

.user-dropdown a:last-child {
    color: #e74c3c;
}

.notifications-panel {
    width: 350px;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #ecf0f1;
}

.notifications-header h3 {
    font-size: 16px;
    color: #2c3e50;
}

.notifications-header button {
    background: none;
    border: none;
    color: #3498db;
    font-size: 12px;
    cursor: pointer;
}

.notifications-list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f2f5;
    cursor: pointer;
    transition: background 0.3s;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #e8f4f8;
}

.empty {
    text-align: center;
    padding: 40px 20px;
    color: #95a5a6;
}

.empty i {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .main-header {
        padding: 0 15px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .search-box {
        display: none;
    }
    
    .user-info {
        display: none;
    }
    
    .notifications-panel {
        right: 15px;
        width: calc(100vw - 30px);
        max-width: 350px;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .logo-text {
        font-size: 18px;
    }
}