* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

main{
    
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    display: block;
    unicode-bidi: isolate;
    height: 100vh;
}

body {
  background: linear-gradient(180deg, #141927, #200b5e);
  color: #e0e0e0;
  font-family: Arial, sans-serif;
}


.footer {
    background: linear-gradient(180deg, #141927, #121520);
    position: relative;
    bottom: 0;
    left: 0;
    text-align: center;
    align-content: center;
    border-top: #3d405c solid 1px;
    width: 100%;
    height: 80px;
    color: #fff;
    
}

.card {
    margin-top: 60px;
    background: linear-gradient(180deg, #141927, #121520);
    border: 1px solid #242a3a;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.cardi {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #141927, #121520);
    border: 1px solid #242a3a;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.slot {
    padding: 10px;
    border: 1px solid #27314e;
    border-radius: 12px;
    text-align: center;
}

.slot.free:hover{
    background: #3c835e;
}

.slot.free {
    background: #295a41;
}

div {
    display: block;
    unicode-bidi: isolate;
    
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

.input, select, .select, textarea {
    width: 200px;
    background: #0f1422;
    border: 1px solid #26304b;
    color: #dbe5ff;
    padding: 10px 12px;
    border-radius: 12px;
    font: inherit;
}

label {
    font-size: 13px;
    color: #b9c3da;
}

.pill {
    display: inline-flex
;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #151b2a;
    border: 1px solid #26304b;
    color: #a9b1c0;
    font-size: 12px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 1rem; /* Espaçamento entre os itens */
  flex-wrap: wrap; /* Para quebrar em telas pequenas, se necessário */
}

.toolbar > div {
  display: flex;
  flex-direction: column;
}

.select {
  appearance: none;           /* Remove a aparência nativa */
  -webkit-appearance: none;
  -moz-appearance: none;
  color: white;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #444;
  background-image: url('data:image/svg+xml;utf8,<svg fill="gray" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 35px; /* espaço para o ícone */
}

/* Modal container */
.modal {
  display: none; /* oculto por padrão */
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  overflow: auto;
}

/* Conteúdo do modal */
.modal-content {
  background-color: #141927;
  margin: 10% auto;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  color: white;
  position: relative;
}

/* Botão fechar */
.close {
  color: #aaa;
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: white;
}

label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

select, input[type="date"], input[type="time"] {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
}

.btn-enviar {
  margin-top: 20px;
  background-color: #a64aff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  color: white;
  cursor: pointer;
}

.btn-enviar:hover {
  background-color: #7a2edc;
}

.slot.booked {
  background: #6a2d9f; /* roxo para marcado */
  color: #fff;
  cursor: default;
  border-color: #5b2389;
}

.slot.pending {
  background: #3a7bd5; /* azul para pendente */
  color: #fff;
  cursor: default;
  border-color: #2f61b5;
}

/* Evitar hover para slots ocupados */
.slot.booked:hover,
.slot.pending:hover {
  background-color: inherit;
  cursor: default;
}

/* Estilos para o novo Modal de Login */
.modal-botoes {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    
}

.modal-botoes a {
    text-decoration: none;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
}

.btn-cadastrar {
    background-color: #28a745; /* Verde */
    margin-right: 20px;
}

.btn-login {
    background-color: #007bff; /* Azul */
}

@media (max-width: 600px) {
    .container {
        margin: 20px auto;
        padding: 15px;
    }

    .card {
        padding: 20px;
        margin-bottom: 40px;
    }

    .toolbar {
        gap: 15px;
    }

    /* Em telas pequenas, a grade terá menos colunas e menos espaçamento */
    .calendar-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 8px;
    }
}