.header {
    height: 55px;

    display: flex;
    flex-direction: row;
    justify-content: space-between;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;

    background-color: white;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: rgb(228, 228, 228);
}

.left-section {
    display: flex;
    align-items: center;
}

.hamburger-menu {
    height: 24px;
    margin-left: 24px;
    margin-right: 24px;
}

.youtube-logo {
    height: 20px;
}

.middle-section {
    flex: 1;
    margin-left: 70px;
    margin-right: 35px;
    max-width: 500px;
    display: flex;
    align-items: center;
}

.search-bar {
    flex: 1;
    height: 36px;
    padding-left: 10px;
    font-size: 16px;
    border: 1px solid rgb(192, 192, 192);
    border-radius: 2px;
    box-shadow: inset 1px 2px 3px rgba(0, 0, 0, 0.05);
    width: 0;
    transition: box-shadow 0.15s;
}
.search-bar:hover {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.search-bar::placeholder {
    font-size: 16px;
}

.search-button {
    height: 40px;
    width: 66px;
    background-color: rgb(240, 240, 240);
    border-width: 1px;
    border-style: solid;
    border-color: rgb(192, 192, 192);
    margin-left: -1px;
    margin-right: 10px;
    cursor: pointer;
}

.search-button,
.voice-search-button,
.upload-icon-container,
.youtube-app-container,
.notifications-icon-container,
.pfp-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: opacity 0.15s ease-in-out,background-color 0.15s ease,box-shadow 0.15s ease;
}
.voice-search-button:hover {
    opacity: 0.8;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}
.voice-search-button:active {
    opacity: 0.6;
    box-shadow: none;
}
.search-button:hover {
    opacity: 0.8;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}
.search-button:active {
    opacity: 0.6;
    box-shadow: none;
}
.upload-icon-container:hover,
.youtube-app-container:hover,
.notifications-icon-container:hover,
.pfp-container:hover {
    background-color: rgb(223, 223, 223);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}
.upload-icon-container:active,
.youtube-app-container:active,
.notifications-icon-container:active,
.pfp-container:active {
    opacity: 0.6;
    box-shadow: none;
}

.search-button .tooltip,
.voice-search-button .tooltip,
.upload-icon-container .tooltip,
.youtube-app-container .tooltip,
.notifications-icon-container .tooltip,
.pfp-container .tooltip {
    position: absolute;
    background-color: gray;
    color: white;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 2px;
    font-size: 12px;
    bottom: -30px;
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
    pointer-events: none;
    white-space: nowrap;
}

.search-button:hover .tooltip,
.voice-search-button:hover .tooltip,
.upload-icon-container:hover .tooltip,
.youtube-app-container:hover .tooltip,
.notifications-icon-container:hover .tooltip,
.pfp-container:hover .tooltip {
    opacity: 1;
}

.search-icon {
    height: 25px;
}

.voice-search-button {
    height: 40px;
    width: 40px;
    border-radius: 20px;
    border: none;
    background-color: rgb(245, 245, 245);
}


.voice-search-icon {
    height: 24px;
}

.right-section {
    width: 180px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.upload-icon {
    height: 24px;
}

.youtube-apps-icon {
    height: 24px;
}

.notifications-icon {
    height: 24px;
}

.notifications-icon-container {
    position: relative;
}

.notifications-count {
    position: absolute;
    top: -2px;
    right: -5px;
    background-color: rgb(200, 0, 0);
    color: white;
    font-size: 11px;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 2px;
    padding-bottom: 2px;
    border-radius: 10px;
}

.current-user-picture {
    height: 32px;
    border-radius: 16px; 
}
.hamburger-menu-container
 {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: box-shadow 0.2s ease,opacity 0.2s ease-in-out;
    cursor: pointer;

    /* Fix alignment */
    margin-left: 12px;
    /* or whatever spacing YouTube uses */
    margin-right: 16px;
}

.hamburger-menu-container:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    background-color: #f0f0f0;
}
.hamburger-menu-container:active {
    opacity: 0.6;
    box-shadow: none;
}

.hamburger-menu {
    width: 24px;
    height: 24px;
}
.upload-icon-container,
.pfp-container,
.youtube-app-container,
.notifications-icon-container {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: box-shadow 0.2s ease,opacity 0.2s ease-in-out;
    cursor: pointer;
}
