/* Configuração básica para resetar o estilo padrão do navegador */
body {
    font-family: 'Inter', sans-serif; /* Fonte moderna e limpa */
    background-color: #F4F4F9; /* Fundo suave e moderno */
    color: #1A1A1A; /* Texto quase preto para legibilidade */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Estilo do container principal */
.container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px; /* Cantos arredondados suaves */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05); /* Sombra mais suave */
    width: 100%;
    max-width: 480px; /* Pouco mais largo, mais confortável */
    transition: all 0.3s ease-in-out;
}

/* Estilo para títulos e parágrafos */
h1 {
    color: #00A389; /* Cor Primária (Verde Esmeralda) */
    text-align: center;
    margin-bottom: 10px;
    font-size: 2em;
    font-weight: 700;
}

p {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    font-size: 1.05em;
}

/* Estilo dos grupos de formulário (rótulo + campo) */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

/* Estilo para os campos de entrada e seleção */
input[type="text"],
input[type="date"],
select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1em;
    color: #1A1A1A;
    background-color: white;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

/* Estilo customizado para select */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2300A389' d='M1.41 0L6 4.59L10.59 0L12 1.41l-6 6l-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

select::-ms-expand {
    display: none;
}

input:hover, select:hover {
    border-color: #00A389;
}

input:focus, select:focus {
    border-color: #00A389;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 163, 137, 0.1);
    background-color: white;
}

/* Placeholder */
input::placeholder {
    color: #999;
}

/* Opções do select */
select option {
    padding: 12px;
    background-color: white;
    color: #1A1A1A;
}

select option:disabled {
    color: #ccc;
}

select:disabled,
input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
    border-color: #ccc;
}

/* Estilo do botão principal */
button[type="submit"] {
    background-color: #00A389; 
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 1.15em;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #008771; /* Um tom um pouco mais escuro no hover */
}

.footer {
    margin-top: 35px;
    font-size: 0.85em;
    color: #999;
    text-align: center;
}
.date-scroll-container {
    overflow-x: scroll; /* Permite rolagem horizontal */
    white-space: nowrap;
    padding: 10px 0;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.date-slider {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Estilo da "Bola Transparente" */
.date-option {
    display: inline-block;
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%; /* Transforma em bola */
    width: 60px;
    height: 60px;
    border: 2px solid #ccc; /* Borda transparente */
    transition: all 0.2s;
    background-color: rgba(255, 255, 255, 0.8);
    box-sizing: border-box;
}

.date-option:hover {
    border-color: #00A389;
    box-shadow: 0 0 5px rgba(0, 163, 137, 0.3);
}

.date-option.selected {
    background-color: #00A389; /* Cor de fundo quando selecionado */
    color: white;
    border-color: #00A389;
    transform: scale(1.05);
}

.date-option .day-name {
    display: block;
    font-size: 0.8em;
    font-weight: 500;
}

.date-option .day-number {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
}

/* Estilo da Lista de Horários */
.time-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.time-list li {
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.time-list li:hover {
    background-color: #f4f6f9;
    border-color: #00A389;
}

.time-list li.selected {
    background-color: #00A389;
    color: white;
    border-color: #00A389;
    font-weight: 600;
}

#appointments-panel ul {
    list-style: none;
    padding: 0;
}

.appointment-card {
    background-color: #f4f4f4;
    border-left: 5px solid #00A389; /* Cor da sua marca */
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.appointment-card strong {
    color: #333;
}

.appointment-card .client-info {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
}

/* Estilos para botões de ação e navegação */
.action-btn, .back-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.action-btn {
    background-color: #00A389;
    color: white;
    width: 100%;
}

.action-btn:hover:not(:disabled) {
    background-color: #008771;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 163, 137, 0.3);
}

.action-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.back-btn {
    background-color: #f0f0f0;
    color: #333;
    width: auto;
    margin-right: 10px;
}

.back-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

/* Animações de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step {
    animation: fadeIn 0.4s ease-out;
}

/* Loading state */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid #00A389;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Melhorias visuais adicionais */
select, input[type="text"], input[type="date"] {
    transition: all 0.3s ease;
}

select:hover, input:hover {
    border-color: #00A389;
}

/* ------------------- Painel de Confirmação ------------------- */
.confirmation-card {
    text-align: center;
    padding: 30px 20px;
}

.confirmation-icon {
    font-size: 4em;
    margin-bottom: 20px;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.confirmation-title {
    color: #00A389;
    font-size: 1.8em;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.confirmation-message {
    color: #555;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 30px;
}

.confirmation-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.detail-value {
    color: #00A389;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    font-size: 0.95em;
}

.confirmation-reminder {
    background: linear-gradient(135deg, #e8f5f3 0%, #d4ede9 100%);
    border-left: 4px solid #00A389;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
    text-align: left;
}

.confirmation-reminder p {
    margin: 0;
    color: #333;
    font-size: 0.9em;
    line-height: 1.5;
    text-align: left;
}

.confirmation-reminder strong {
    color: #00A389;
}

.confirmation-reminder #reminder-time {
    color: #00A389;
    font-weight: 600;
}

.confirmation-thanks {
    color: #666;
    font-size: 1em;
    font-style: italic;
    margin: 25px 0 30px 0;
}

/* Responsividade */
@media (max-width: 600px) {
    .container {
        padding: 20px;
        max-width: 100%;
    }

    h1 {
        font-size: 1.5em;
    }

    .date-option {
        width: 50px;
        height: 50px;
        font-size: 0.9em;
    }

    .confirmation-icon {
        font-size: 3em;
    }

    .confirmation-title {
        font-size: 1.5em;
    }

    .detail-item {
        flex-direction: column;
        gap: 5px;
    }

    .detail-value {
        max-width: 100%;
        text-align: left;
    }
}