@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
}

body {
    width: 100%;
    height: 100%;
    background-color: #005e52;
    display: flex;
    align-items: center;
    justify-content: center;
}

hr {
    margin: 20px 0px;
}

form h1 {
    text-align: center;
}

.container {
    max-width: 1280px;  
    padding: 20px;
    margin: 0 auto;
}

.first-row {
    display: flex;
    justify-content: center;
    gap: 100px;
}

.input-group-nome-desc {
    position: relative;
    margin: 20px 0;
    width: 100%;
    width: 300px;
}

.input-group-nome-desc label {
    position: absolute;
    left: 0;
    bottom: 5px;
    transition: all 0.2s;
    cursor: text;
}

.input {
    width: 100%;
    border: 0;
    border-bottom: 2px solid #ccc;
    padding: 5px;
    font-size: 18px;
    outline: 0;
    background-color: #006644;
}

form .input::placeholder {
    color: transparent;
}

form .input::placeholder,
form .input:focus::placeholder {
    transition: all 0.5s;
}

form .input:focus::placeholder {
    color: #cccc6c;
    font-size: 20px;
}

form .input-group-nome-desc .input:focus ~ label,
form .input-group-nome-desc .input:valid ~ label {
    transform: translateY(-28px);
    font-size: 20px;
    color: #fff;
}

form .input-cashback-limit .input:focus ~ label,
form .input-cashback-limit .input:valid ~ label {
    transform: translateY(-28px);
    font-size: 20px;
    color: #fff;
}

form .input-group-data .input:focus ~ label,
form .input-group-data .input:valid ~ label {
    transform: translateY(-28px);
    font-size: 20px;
    color: #fff;
}

form {
    background-color: #006644;
    max-width: 100%;
    max-height: 5000px;
    padding: 60px;
    border-radius: 40px;
    margin: 20px;
}

.input-mans {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.salvar_continuar {
    width: 100%;
    height: 44px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0 0;
    font-size: 20px;
    border: 0;
    border-radius: 10px;
    background-color: #00b766;
    color: black;
}

.salvar_continuar:hover {
    background-color: darkgreen;
}

/* Estilos para o botão de upload personalizado */
.custom-upload-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #00b766;
    color: black;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s ease;
}

/* Estilos para a área de upload */
.upload-imagem {
    padding: 20px;
    width: 300px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #ccc;
    border-radius: 15px;
    font-size: 16px;
    text-align: center;
    position: relative;
}

/* Botão para remover a imagem (X) */
#remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0);
    color: #ff0000;
    font-size: 20px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 50%;
    display: none; /* Aparece quando a imagem é carregada */
}

.custom-upload-btn:hover {
    color: #ffffff;
}

/* Estilos ao arrastar sobre a área */
.upload-imagem.dragover {
    background-color: #e0f7ff;
    border-color: #00b766;
}

.upload-btn::placeholder {
    text-align: center;
    color: black;
    font-weight: 600;
    font-size: 18px;
    align-self: center;
}

.second-row {
    padding: 1%;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.second-row div {
    margin: 5px;
}

.modelo-cartao {
    width: 100%;
}

.opcao {
    width: 100%; /* Se descomentado, irá alinhar os switches a extrema direita e as opcoes a extrema esquerda */
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
    gap: 20px;
}

.opcao div p {
    width: auto;
    height: 100%;
    text-align: center;
    font-size: 18px;
    background-color: #00b766;
    font-weight: 500;
    color: black;
    padding: 10px 15px;
    border-radius: 5px;
    transition: color 0.12s ease-in;
}

.opcoes_cartao {
    flex-direction: column;
    padding-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
}

.opcoes_cartao h2 {
    font-weight: 700;
    white-space: nowrap;
    padding-bottom: 10px;
}

.opcoes_cartao p {
    width: auto;
    height: 100%;
    text-align: center;
    font-size: 18px;
    background-color: #00b766;
    font-weight: bold;
    color: black;
    padding: 8px;
    border-radius: 5px;
}

.switch-grande {
    right: 0;
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin: 0;
    padding: 0;
    flex-grow: 0;
}

/* Escondendo o checkbox */
.switch-grande input {
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

/* Slider */
.slider-grande {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

/* Ponto dentro do switch */
.slider-grande:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider-grande {
    background-color: #00b766;
}

input:checked + .slider-grande:before {
    transform: translateX(26px);
}

.mecanicas {
    width: 100%;
    display: flex;
    justify-content: center;
}

.mecanicas h2 {
    font-weight: 700;
    padding-bottom: 10px;
}

.opcoes-mecanicas {
    flex-direction: column;
    padding-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

.opcoes-mecanicas p {
    width: auto;
    height: 100%;
    text-align: center;
    font-size: 18px;
    background-color: #00b766;
    font-weight: bold;
    color: black;
    padding: 8px;
    border-radius: 5px;
}

.third-row {
    padding: 10px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}


.third-row h2 {
    font-weight: 700;
    white-space: nowrap;
}

.opcoes-categ {
    flex-direction: column;
    padding-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.opcoes-categ p {
    width: auto;
    height: 100%;
    text-align: center;
    font-size: 18px;
    background-color: #00b766;
    font-weight: bold;
    color: black;
    padding: 8px;
    border-radius: 5px;
}

.opcoes-premios {
    flex-direction: column;
    padding-top: 10px;
    padding: 0 70px 0 100px;
    margin-left: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.opcoes-premios p {
    width: auto;
    height: 100%;
    text-align: center;
    font-size: 18px;
    background-color: #00b766;
    font-weight: bold;
    color: black;
    padding: 8px;
    border-radius: 5px;
}

/* 
.teste {
    width: 300px;
    height: 300px;
    background-color: red;
} */

.fourth-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    height: 100%;
}

.fourth-row h2 {
    font-weight: 700;
    padding-top: 20px;
    text-align: center;
}

.input-cashback-limit {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    width: 100%;
    width: 350px;
    padding-top: 15px;
}

.input-cashback-limit label {
    font-size: 20px;
    position: absolute;
    left: 0;
    bottom: 5px;
    transition: all 0.2s;
    cursor: text;
}

.input-group-data label {
    position: absolute;
    left: 0;
    bottom: 5px;
    transition: all 0.2s;
    cursor: text;
    white-space: nowrap;
}

.input-data {
    display: flex;
    justify-content: center;
    gap: 20px;
    /* background-color: #f5f5dc; depende da preferência*/
}

.fifth-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.fifth-row h2 {
    font-weight: 700;
}

.fifth-row-title {
    align-items: center;
    text-align: center;
    padding: 20px 0 40px 0;
}
/* Estilos do Dropdown */
.MCC-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
}

.dropdown-button {
    width: 100%;
    padding: 10px 15px;
    background-color: #00b766;
    color: black;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.dropdown-button:hover {
    background-color: #00b766;
}

.dropdown-content {
    display: none;
    position: absolute;
    align-items: center;
    width: 100%;
    max-height: 100px;
    overflow-y: auto;
    background-color: #fff;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    z-index: 1;
    padding: 10px;
}

.MCC-dropdown:hover .dropdown-content {
    display: block;
}

/* Estilos dos Itens do Dropdown */
.dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #333;
}

.dropdown-item span {
    padding: 10px;
}

.dropdown-item:hover {
    background-color: #f1f1f1;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #00b766;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Estilos para Itens Selecionados */
.selected-options {
    max-height: 80px;
    overflow-y: auto;
    width: 100%;
}

.selected-options p {
    font-weight: bold;
    color: #fff;
    margin: 0;
    font-size: 14px;
}

.selected-options ul {
    list-style-type: none;
    padding: 0;
    margin: 5px 0 0 0;
    font-size: 14px;
    color: #333;
}

.selected-options li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    background-color: #e0e0f8;
    border-radius: 5px;
    margin: 4px 0;
    position: relative;
}

.selected-options li .remove-item {
    font-weight: bold;
    font-size: 16px;
    color: #ff4d4f;
    cursor: pointer;
    transition: color 0.3s;
}

.selected-options li .remove-item:hover {
    color: #d9363e;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-thumb {
    background-color: #00b766;
}

.remove-item {
    right: 10px;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer; 
    position: absolute;
}

.texto-ativo {
    color: lightgreen; /* Cor desejada */
}

.div-switch-grande {
    margin-left: auto;
}

.PAN {
    flex-direction: column;
    padding-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    gap: 20px;
}

.PAN p {
    width: auto;
    height: 100%;
    text-align: center;
    font-size: 18px;
    background-color: #00b766;
    font-weight: bold;
    color: black;
    padding: 8px;
    border-radius: 5px;
}

.input-group-data {
    display: flex;
    justify-content: center;
    width: 300px;
}

.input-item input::placeholder {
    color: transparent;
}

.input-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 55px;
}
  
.input-item label {
    position: absolute;
    left: 22px;
    bottom: 16px;
    transition: all 0.2s;
    cursor: text;
    font-size: 16px;
    color: black;
}

form .input-item .input-data::placeholder,
form .input-item .input-data:focus::placeholder {
    transition: all 0.5s;
}

form .input-item .input-data:focus::placeholder {
    color: #CCC;
    font-size: 16px;
}

form .input-group-data .input-item .input-data:focus ~ label,
form .input-group-data .input-item .input-data:valid ~ label {
    transform: translateY(-18px);
    font-size: 16px;
    color: #fff;
}

.input-data {
    width: 100%;
    padding: 20px 0 10px 0;
    border: 1px none #ccc;
    border-bottom: 1px solid #ccc;
    text-align: center;
    font-size: 18px;
    outline: 0;
    transition: padding-top 0.3s ease;
    box-sizing: border-box;
    background-color: #006644;
}

.input-group-data.active .input-data {
    padding-top: 30px; /* Aumenta o padding-top quando o contêiner está ativo */
}

.div-data {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 10px 0 60px;
}

#start-day, #end-day {
    border-right: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

#start-month, #end-month {
    border-right: 0;
    border-left: 0;
}

#start-year, #end-year{
    border-left: 0;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.input-item {
    position: relative; /* Necessário para posicionar o pseudo-elemento */
}
  
.input-item + .input-item::before {
    content: '';
    position: absolute;
    top: 55%; /* Coloca a linha no meio verticalmente */
    left: -4px; /* Ajusta a posição para a esquerda */
    width: 1%;
    transform: translateY(50%); /* Centraliza no eixo vertical */
    width: 18px; /* Largura do risco */
    height: 1px; /* Altura do risco */
    background-color: #ccc; /* Cor do risco */
    transform: rotate(90deg);
}

.credit-choice {
    display: none;
}

/* Estilo para os botões ativos */
button.ativo {
    color: white; /* Texto branco */
}

.choices {
    margin: 10px;
}

#credit-input-container {
    flex-direction: column;
}

.premio-buttons {
    background-color: #00b766;
    border: 0;
    padding: 5px;
    transition: 0.2s ease;
    border-radius: 5px;
    cursor: pointer;
}

.premio-buttons:hover {
    color: #fff;
}

.credit-choice h3 {
    text-align: center;
}


.credit-choice button.selected {
    color: white;
    border: 2px solid #005e52; /* Borda branca */
  }


/* ===== Tema Claro ===== */

body.light-theme h1, body.light-theme h2, body.light-theme h3, body.light-theme h4,
body.light-theme p, body.light-theme label, body.light-theme .data-title {
    color: white;
}

body.light-theme form, body.light-theme .input-data, body.light-theme .input{
    background-color: #4b9f6f;
}

body.light-theme .opcao div p, body.light-theme .opcoes_cartao p, body.light-theme .opcoes-mecanicas p, 
body.light-theme .custom-upload-btn, body.light-theme .dropdown-button, 
body.light-theme .salvar_continuar {
    background-color: #63b573;
    color: white;

}

/* body.light-theme .slider-grande {
    background-color: rgb(42, 255, 159);
} */

body.light-theme .custom-upload-btn {
    background-color: #63b573;
    color: white;
}

h2, h1 {
    color: #fff !important;
}
#recommendations {
    max-height: 70px; /* Limite de altura */
    overflow-y: auto; /* Habilita rolagem vertical */
    padding: 10px;
    list-style: none;
    margin: 0;
}
#recommendations li {
    cursor: pointer;
    padding: 5px;
    border: 1px solid #ddd;
    margin-bottom: 5px;
}
#recommendations li:hover {
    background-color: #ececec;
}

#selected-estabelecimentos-list {
    max-height: 70px; /* Limite de altura */
    overflow-y: auto; /* Habilita rolagem vertical */
    padding: 10px;
    list-style: none;
    margin: 0;
}
.selected-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.remove-btn {
    margin-left: 10px;
    color: red;
    cursor: pointer;
}