.header{
    height: 55px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    position: fixed;
    top: 0;
    left: 0;
    right: 0 ;
    z-index: 200;

    background-color: white;
}


/* Left section */
.left-section{
    width: 125px;
    display: flex;
    align-items: center;
}

.hamburger-menu{
    height: 24px;
    margin-left: 20px;
    margin-right: 20px;
    cursor: pointer;
    transition: background-color 0.2 ease;
    padding: 6px 6px 6px 6px;
    border-radius: 20px;

}
.hamburger-menu:hover{
    background-color: rgb(230, 230, 230);
}
.hamburger-menu:active{
    background-color: rgb(215, 215, 215);
}

.youtube-home{
    display: flex;
    align-items: center;
    cursor: pointer;
    width:100%;
    position: relative;
}
.youtube-logo{
    height: 21px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.youtube-home .tooltip{
    position: absolute;
    bottom: -34px;
    right: -30px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    padding: 6px 8px;
    font-size: 11px;
    font-family: Roboto, Arial;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
/* Prevents tooltip from blocking mouse events */
    transition: opacity 0.2s ease-in-out;
    transition-delay: 0s;
    z-index: 1000;
}
.youtube-home:hover .tooltip{
    opacity: 1;
    transition-delay: 0.8s;
}
.youtube-home:not(:hover) .tooltip {
    opacity: 0;
    transition-delay: 0s;
}


/* Middle section */
.middle-section{
    flex: 1;
    margin-left: 135px;
    margin-right: 16px;
    max-width: 650px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-container {
    display: flex;
    flex: 1;
    height: 40px;
    border: 1px solid rgb(192, 192, 192);
    border-radius: 20px;
    overflow: hidden;    /*help in pill shape */
    background-color: white;
    box-shadow: inset 1px 2px 5px rgba(0, 0, 0, 0.05);
    transition: border 0.2s, box-shadow 0.2s;
}

.search-container:focus-within {
    border: 1px solid #1a73e8;
    box-shadow: 0 0 0 1px #1a73e8;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 650px;
}

.search-left-icon {
    display: none;
    margin-left: 12px;
    margin-right: 6px;
}

.search-left-icon img {
    height: 18px;
    filter: brightness(200%);
}

.search-container:focus-within .search-left-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-bar{
    flex: 1;
    border: none;
    outline: none;
    background-color: transparent;
    width: 0;
}

.search-bar::placeholder {
    font-family: Roboto, Arial;
    color: gray;
    font-size: 14px;
    padding: 0 12px;
}

.search-button{
    width: 60px;
    border: none;
    background-color: rgb(235, 235, 235);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}
.search-icon{
    height: 25px;
    filter: brightness(200%);
}

.search-wrapper .tooltip {
    position: absolute;
    bottom: -34px;
    right: -10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border: 0.5px solid white;
    padding: 6px 8px 6px 8px;
    font-size: 11px;
    font-family: Roboto, Arial;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
/* Prevents tooltip from blocking mouse events */
    transition: opacity 0.2s ease-in-out;
    transition-delay: 0s;
    z-index: 1000;
}
.search-wrapper:hover .tooltip{
    opacity: 1;
    transition-delay: 0.8s;
}
.search-wrapper:not(:hover) .tooltip {
    opacity: 0;
    transition-delay: 0s;
}

.voice-search-button{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: none;
    height: 40px;
    width: 40px;
    margin-left: 10px;
    border-radius: 40px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.voice-search-button:hover{
    background-color: rgb(230, 230, 230);
}
.voice-search-button:active{
    background-color: rgb(215, 215, 215);
}
.voice-search-icon{
    height: 23.5px;
}
.voice-search-button .tooltip {
    background-color: rgba(128, 128, 128, 0.9);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 6px 12px 6px 12px;
    font-size: 12px;
    font-family: Roboto, Arial;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    bottom: -42px;
    transition: opacity 0.2s ease-in-out;
    transition-delay: 0s;
    z-index: 1000;
}
.voice-search-button:hover .tooltip{
    opacity: 1;
    transition-delay: 0s;
}
.voice-search-button:not(:hover) .tooltip {
    opacity: 0;
    transition-delay: 0s;
}


/* Right section */
.right-section{
    width: 200px;
    margin-right: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.create-button {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: rgb(235, 235, 235);
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-family: Roboto, Arial, sans-serif;
    transition: background-color 0.2s ease;
    padding: 0 16px;
    height: 40px;
    font-size: 14px;
    line-height: 36px;
    border-radius: 20px;
}
.create-button:hover{
    background-color: rgb(230, 230, 230);
}
.create-button:active{
    background-color: rgb(215, 215, 215);
}
.plus-icon {
    font-size: 28px;
    font-weight: 200;
    letter-spacing: 1px;
    transform: scale(1, 1.1);
    line-height: 1;
}


.notifications-icon-container{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.notifications-icon{
    height: 24px;
    cursor: pointer;
    padding: 6px 6px 6px 6px;
    transition: background-color 0.2s ease;
}
.notifications-icon:hover{
    background-color: rgb(230, 230, 230);
    border-radius: 20px;
}
.notifications-icon:active{
    background-color: rgb(215, 215, 215);
}
.notifications-count{
    cursor: pointer;
    background-color: rgb(200, 0, 0);
    color: white;
    position: absolute;
    top: 0px;
    right: 0px;
    font-family: Roboto, Arial;
    font-size: 11px;
    padding: 2px 6px 2px 6px;
    border-radius: 10px;
    pointer-events: none;
}
.notifications-icon-container .tooltip {
    background-color: rgba(128, 128, 128, 0.9);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 6px 12px 6px 12px;
    font-size: 12px;
    font-family: Roboto, Arial;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    bottom: -42px;
    transition: opacity 0.2s ease-in;
    transition-delay: 0s;
    z-index: 1000;
}
.notifications-icon-container:hover .tooltip{
    opacity: 1;
    transition-delay: 0s;
}
.notifications-icon-container:not(:hover) .tooltip {
    opacity: 0;
    transition-delay: 0s;
}


.current-user-pic{
    height: 32px;
    border-radius: 16px;
    cursor: pointer;
}
.current-user-pic:active{
    border: 1px solid #1a73e8;
    box-shadow: 0 0 0 0.9 #1a73e8;
}
