
/* Menu hamburger */
.header .menu-hamburger {
    cursor: pointer;
}

.header .menu-hamburger .material-symbols-rounded {
    position: relative;
    z-index: 999;
    font-size: 28px;
}

.menu-hamburger .material-symbols-rounded {
    font-size: 28px;
    cursor: pointer;
    display: inline-block;
}

/* Menu a comparsa */
.main-menu {
    position: fixed;
    top: 60px;
    left: -280px;
    width: 250px;
    height: fit-content;
    margin-left: 10px;
    background: var(--first-column-bg);
    border: solid 1px var(--text);
    border-radius: 10px;
    overflow-y: auto;
    transition: left 0.3s ease; 
    z-index: 999;
}

.main-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.main-menu button {
    width: 100% !important;
    text-align: left;
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
}

.main-menu button:hover {
    text-decoration: underline;
}

.main-menu ul li:first-child {
    margin-top: 10px;
}

.main-menu ul li:last-child {
    margin-bottom: 10px;
}

.main-menu ul li, .main-menu ul li a, .main-menu ul li button, .main-menu ul li a:visited {
    display: inline-block;
    width: calc(100% - 40px);
    padding: 8px 15px;
    text-decoration: none;
    font-weight: 600;
}

.main-menu ul li a:hover {
    text-decoration: underline;
}

.separator {
    position: relative;
    width: calc(100% - 40px);
    height: 1px;
    margin: 10px 20px;
    opacity: 0.5;
}

/* Menu visibile */
.main-menu.open {
    left: 0;
}

.add-member-wrapper {
    display: flex;
    flex-direction: row;
    gap: 5px;
    margin-right: 20px;
}

#add-member-mail {
    border-radius: 10px;
}

/* Slider switch */
.menu-theme-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 10px 10px 30px !important;
    list-style: none;
}

.switch {
    position: relative;
    top: 7px;
    left: 5px;
    display: inline-block;
    width: 45px;
    height: 25px;
    flex: 0 0 auto;
}

.switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.slider::before {
    content: "";
    position: absolute;
    width: 17px;
    height: 17px;
    left: 3px;
    top: 3px;
    transition: transform 0.25s ease;
}

.slider.round {
    border-radius: 999px;
}

.slider.round::before {
    border-radius: 50%;
}

.switch input:checked + .slider::before {
    transform: translateX(20px);
}

.switch input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}