 /* Layout Básico */
 body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#header, #footer {
    padding: 5px;
    background-color: #007bff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

#header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 5;
}

#menu-icon {
    cursor: pointer;
    font-size: 1.5em;
    position: absolute;
    left: 10px;
}

#body {
    padding: 20px;
    padding-bottom: 100px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    padding-top: 60px;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

/* Body Width Adjustment for Desktop */
@media (min-width: 768px) {
    #body {
        width: 80%;
        max-width: 800px; /* Limite de largura máxima */
        margin: auto; /* Centraliza o conteúdo */
    }
}

.menu-option {
    display: none;
    background-color: #007bff;
    padding: 10px;
    position: absolute;
    top: 40px;
    left: 10px;
    color: #fff;
    border-radius: 5px;
}

.menu-option div {
    margin: 5px 0;
    cursor: pointer;
    padding: 5px;
}

.menu-option div:hover {
    background-color: #0056b3; /* Escurece o fundo no hover */
}

.menu-option div:not(:last-child) {
    border-bottom: 1px solid #ffffff55; /* Separador entre itens */
}

#input-section {
    display: flex;
    margin-bottom: 10px;
    width: 100%;
}

#input-section input {
    flex: 1;
    padding: 5px;
    margin-right: 5px;
}

#input-section button {
    padding: 5px 10px;
    cursor: pointer;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    border-bottom: 1px solid #ddd;
    width: 100%;
    box-sizing: border-box;
    height: 40px;
}

/* Força o texto do item a ocupar o espaço restante */
.list-item .item-text {
    flex-grow: 1; /* Expande o span para ocupar o espaço restante */
    word-wrap: break-word; /* Quebra o texto se for muito longo */
}

.list-item.done .item-text {
    text-decoration: line-through;
    color: #999;
}

/* Alinha o checkbox e o botão de exclusão */
.done-checkbox, .delete-icon {
    flex-shrink: 0; /* Garante que não encolham e mantenham seu tamanho padrão */
    margin-right: 10px; /* Espaçamento entre os elementos */
}

.delete-icon {
    cursor: pointer;
    color: red;
    margin-left: 10px;
    font-size: 26px;
    /* align horizontal and vertical - center/middle */
    display: flex;
    align-items: center;
    justify-content: center;
}

#footer {
    height: 60px;
    justify-content: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

#footer select, #add-list {
    margin: 0 10px;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.popup-xl {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    width: 40%;
}

@media (max-width: 768px) {

    .popup-xl {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: #fff;
        border: 1px solid #ddd;
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 10;
        width: 90%;
    }
    .popup {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: #fff;
        border: 1px solid #ddd;
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 10;
        width: 90%;
    }
}

    /* Overlay escuro para fundo */
.overlay {
    display: none; /* Começa oculto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fundo semi-transparente */
    z-index: 5; /* Coloca o overlay abaixo dos popups */
}

.popup input {
    width: 80%;
    padding: 5px;
}

.popup button {
    padding: 10px 10px;
    margin-top: 10px;
    cursor: pointer;
}

.popup-xl input {
    width: 80%;
    padding: 5px;
}

.popup-xl button {
    padding: 10px 10px;
    margin-top: 10px;
    cursor: pointer;
}

/* Estilo para cada campo de login */
.login-field {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.login-field label {
    width: 120px; /* Ajuste conforme necessário */
    margin-right: 10px;
    text-align: right;
    font-weight: bold;
}

.login-field input {
    width: 80%;
    padding: 5px;
    box-sizing: border-box;
}

/* Estilo para cada campo de login */
.share-field {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

/* Estilo para cada campo de login */
.sub-share-field {
    display: inline;
    align-items: center;
    margin-bottom: 10px;
}

.share-field label {
    width: 270px; /* Ajuste conforme necessário */
    margin-right: 10px;
    text-align: right;
    font-weight: bold;
    /* align left */
    text-align: left;
}

.share-field input {
    width: 80%;
    padding: 5px;
    box-sizing: border-box;
}

.share-field select {
    width: 80%;
    padding: 5px;
    box-sizing: border-box;
}

.share-field button {
    width: 80%;
    padding: 5px;
    box-sizing: border-box;
}

/* Estilo para o botão de login */
#login-btn, #create-account-btn {
    width: 100%;
    padding: 8px;
    margin-top: 10px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    height: 40px;
    font-size: 16px;
}

#share-list-btn {
    width: 100px;
    padding: 8px;
    margin-top: 10px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
}

#create-account-btn, #do-create-account-btn,
#save-list-name-btn, #back-to-login-btn,
#close-share-list-btn, #create-list-btn,
#remove-share-btn {
    width: 100%;
    padding: 8px;
    margin-top: 10px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
}

#login-btn:hover {
    background-color: #0056b3;
}

.list {
    width: 100%;
}

/* Estilo para o botão "Salvar lista" */
#save-list, #read-list {
    background-color: #445599;
    color: white;
    padding: 10px 20px;
    margin-left: 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

/* Hover para o botão "Salvar lista" */
#save-list:hover {
    background-color: #218838;
}

#shared-with-list, #share-to-email {
    width: 50%;
    padding: 5px;
    display: block;
    margin-top: 10px;
}

#logo {
    height: 30px;
}

#current-list-name-share-popup {
    display: inline;
}

.popup-xl h3 {
    display: inline;
}

#remove-share-btn {
    width: 100px;
    padding: 8px;
    margin-top: 10px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
}

#close-share-list-btn {
    width: 50%;
    text-align: center;
}

#current-sharing-list, #share-to-label {
    width: 30%;
}

.checkbox-wrapper-40 {
    --borderColor: #007bf0;
    --borderWidth: .100em;
  }

  .checkbox-wrapper-40 label {
    display: block;
    max-width: 100%;
    margin: 0 auto;
  }

  .checkbox-wrapper-40 input[type=checkbox] {
    -webkit-appearance: none;
    appearance: none;
    vertical-align: middle;
    background: #fff;
    font-size: 1.8em;
    border-radius: 0.100em;
    display: inline-block;
    border: var(--borderWidth) solid var(--borderColor);
    width: 0.9em;
    height: 0.9em;
    position: relative;
  }
  .checkbox-wrapper-40 input[type=checkbox]:before,
  .checkbox-wrapper-40 input[type=checkbox]:after {
    content: "";
    position: absolute;
    background: var(--borderColor);
    width: calc(var(--borderWidth) * 3);
    height: var(--borderWidth);
    top: 50%;
    left: 20%;
    transform-origin: left center;
  }
  .checkbox-wrapper-40 input[type=checkbox]:before {
    transform: rotate(45deg) translate(calc(var(--borderWidth) / -2), calc(var(--borderWidth) / -2)) scaleX(0);
    transition: transform 200ms ease-in 200ms;
  }
  .checkbox-wrapper-40 input[type=checkbox]:after {
    width: calc(var(--borderWidth) * 5);
    transform: rotate(-45deg) translateY(calc(var(--borderWidth) * 2)) scaleX(0);
    transform-origin: left center;
    transition: transform 200ms ease-in;
  }
  .checkbox-wrapper-40 input[type=checkbox]:checked:before {
    transform: rotate(45deg) translate(calc(var(--borderWidth) / -2), calc(var(--borderWidth) / -2)) scaleX(1);
    transition: transform 200ms ease-in;
  }
  .checkbox-wrapper-40 input[type=checkbox]:checked:after {
    width: calc(var(--borderWidth) * 5);
    transform: rotate(-45deg) translateY(calc(var(--borderWidth) * 2)) scaleX(1);
    transition: transform 200ms ease-out 200ms;
  }
  .checkbox-wrapper-40 input[type=checkbox]:focus {
    outline: calc(var(--borderWidth) / 2) dotted rgba(0, 0, 0, 0.25);
  }

  #list-selector {
    height: 35px;
  }

  #add-item {
    height: 35px;
  }