.header{
    background-color: var(--secondBackground);
    height: 7%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    /* box-shadow: 0 2px 4px var(--secondBackgroundShadow); */
    border-bottom: 1px solid var(--border);
}

.header-logo{
    display: flex;
}

.header-logo img{
    height: 50px;
    width: auto;
    margin: auto 0;
    margin-left: 16px;
    border-radius: 6px;
    -webkit-user-select: none;
    user-select: none;
}

.header-user-name{
    display: flex;
}

.header-user-name span{
    margin: auto 0;
    margin-left: 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary);
    -webkit-user-select: none;
    user-select: none;
}


.header .icone{
    height: 100%;
    display: flex;
    align-items: center;
    margin-right: 8px;
    justify-content: center;
    cursor: pointer;
    color: var(--onSecondBackground);
    stroke: var(--primary);
    -webkit-user-select: none;
    user-select: none;
}

.header-dropdown-container{
    position: relative;
}

.header-dropdown-menu-sec {
    display: none;
    position: absolute;
    top: 100%;
    right: 0px;
    padding: 8px;
    z-index: 999;
    background-color: var(--secondBackground);
    min-width: 200px;
    box-shadow: var(--secondBackgroundShadow) 0px 1px 4px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.header-dropdown-container:hover .header-dropdown-menu-sec {
    display: block;
}

.header-dropdown-menu-sec div{
    font-size: 0.875rem;
    padding: 4px 8px;
    font-weight: 400;
    color: var(--onSecondBackground);
    fill: var(--onSecondBackground);
    transition: color 0.3s ease, fill 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
}
.header-dropdown-menu-sec div:hover{
    color: var(--onSecondBackgroundHover);
    fill: var(--onSecondBackgroundHover);
}

.header-dropdown-menu-sec div::after{
    content: "";
    display: block;
    border-bottom:1px solid var(--onSecondBackgroundHover) ;
    width: 0%;
    transition: width 0.3s ease;
}

.header-dropdown-menu-sec div:hover::after{
    width: 100%;
}

.header-dropdown-menu-sec svg{
    margin-right: 4px;
}

@media (max-width: 800px) {
    .header-logo img{
        margin-left: 75px;
    }
}

@media (max-height: 768px) {
    .header-logo img{
        height: 30px;
        width: auto;
    }
}

/* dark mode swich  */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 26px;
    margin: auto;
}

  .theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--secondBackground);
    transition: 0.4s;
    border-radius: 30px;
    border: 2px solid var(--border);
  }

  .theme-slider:before {
    position: absolute;
    content: "";
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: var(--primary);
    transition: 0.4s;
    border-radius: 50%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%23FFFFFF'><path d='M480-120q-150 0-255-105T120-480q0-150 105-255t255-105q14 0 27.5 1t26.5 3q-41 29-65.5 75.5T444-660q0 90 63 153t153 63q55 0 101-24.5t75-65.5q2 13 3 26.5t1 27.5q0 150-105 255T480-120Zm0-80q88 0 158-48.5T740-375q-20 5-40 8t-40 3q-123 0-209.5-86.5T364-660q0-20 3-40t8-40q-78 32-126.5 102T200-480q0 116 82 198t198 82Zm-10-270Z'/></svg>");
    background-repeat: no-repeat;
    background-size: 12px;
    background-position: center;
}

  input:checked + .theme-slider {
    background-color: var(--secondBackground);
  }

  input:checked + .theme-slider:before {
    content: "";
    transform: translateX(30px);
    background-color: var(--primary);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%230f172a'><path d='M480-360q50 0 85-35t35-85q0-50-35-85t-85-35q-50 0-85 35t-35 85q0 50 35 85t85 35Zm0 80q-83 0-141.5-58.5T280-480q0-83 58.5-141.5T480-680q83 0 141.5 58.5T680-480q0 83-58.5 141.5T480-280ZM200-440H40v-80h160v80Zm720 0H760v-80h160v80ZM440-760v-160h80v160h-80Zm0 720v-160h80v160h-80ZM256-650l-101-97 57-59 96 100-52 56Zm492 496-97-101 53-55 101 97-57 59Zm-98-550 97-101 59 57-100 96-56-52ZM154-212l101-97 55 53-97 101-59-57Zm326-268Z'/></svg>");
    background-repeat: no-repeat;
    background-size: 12px;
    background-position: center;
  }