.header {
    height: 55px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    border-bottom: 1px solid rgb(240, 240, 240);
    z-index: 100;
}

.left-section {
    display: flex;
    align-items: center;
    padding-left: 16px;
}

.hamburger-menu {
    height: 24px;
    margin-right: 20px;
    cursor: pointer;
}

.youtube-logo {
    height: 20px;
}

.middle-section {
    flex: 1;
    max-width: 600px;
    display: flex;
    align-items: center;
    margin: 0 35px;
}

@media (max-width: 768px) {
    .middle-section {
        max-width: 400px;
        margin: 0 20px;
    }
}

@media (max-width: 480px) {
    .middle-section {
        max-width: 100%;
        margin: 0 10px;
    }
}

.search-bar {
    flex: 1;
    height: 36px;
    font-size: 16px;
    padding-left: 12px;
    border: 1px solid rgb(192, 192, 192);
    border-right: none;
    border-radius: 2px 0 0 2px;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.05);
    width: 0;
}

.search-bar::placeholder {
    font-family: Roboto, Arial;
    font-size: 16px;
    color: rgb(96, 96, 96);
}

/* Icon containers */
.upload-icon-container,
.youtube-apps-container,
.notifications-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

/* Buttons */
.search-btn,
.voice-search-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 39px;
    background-color: rgb(245, 245, 245);
    border: 1px solid rgb(192, 192, 192);
    cursor: pointer;
}

.search-btn {
    width: 64px;
    border-radius: 0 2px 2px 0;
    border-left: none;
}

.search-icon {
    height: 24px;
}

.voice-search-btn {
    width: 40px;
    border-radius: 20px;
    margin-left: 10px;
    border: none;
}

.voice-search-icon {
    height: 24px;
}

/* Tooltip styling */
.tooltip {
    position: absolute;
    background-color: rgba(96, 96, 96, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 2px;
    font-family: Roboto, Arial;
    font-size: 12px;
    bottom: -40px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}

.search-btn:hover .tooltip,
.voice-search-btn:hover .tooltip,
.upload-icon-container:hover .tooltip,
.youtube-apps-container:hover .tooltip,
.notifications-icon-container:hover .tooltip {
    opacity: 1;
}

.right-section {
    width: 180px;
    margin-right: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px; /* Consistent spacing between icons */
    flex-shrink: 0;
}

.upload-icon,
.youtube-apps-icon,
.notifications-icon {
    height: 24px;
}

.notifications-icon-container {
    position: relative;
}

.notifications-count {
    position: absolute;
    top: -2px;
    right: -4px;
    background-color: rgb(200, 0, 0);
    color: white;
    font-family: Roboto, Arial;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
}

.current-user-picture {
    height: 32px;
    width: 32px;
    border-radius: 16px;
    object-fit: cover;
    cursor: pointer;
}