/* Estilos gerais */
body {
    font-family: Arial, sans-serif;
    background-color: #000; /* Altere essa linha para deixar o fundo completamente preto */
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

a {
    text-decoration: none; /* Remove o sublinhado */
    color: inherit; /* Mantém a cor do texto pai */
}

.container {
    width: 90%;
    max-width: 800px;
    background-color: #000;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    overflow: hidden;
}

.logo {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.social-icons {
    margin-bottom: 20px;
}

social-icons a {
    margin: 0 10px;
}

h1 {
    color: #fdd835;
    margin-bottom: 30px;
}

.section-title {
    color: #fdd835;
    margin: 20px 0 10px;
    font-size: 1.5em;
}

.service-list {
    list-style-type: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.service-item {
    background-color: #333;
    margin: 10px 0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    cursor: pointer;
}

.service-item:hover {
    transform: scale(1.05);
}

.service-item h3 {
    margin: 0 0 10px 0;
    color: #fdd835;
    font-size: 1.3em;
}

.service-item p {
    margin: 0;
    color: #ccc;
    font-size: 1.1em;
}

.service-item a {
    color: inherit;
    text-decoration: none;
    display: block;
    height: 100%;
    width: 100%;
}

.menu {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.menu-item {
    color: #ccc;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid #fdd835;
    border-radius: 5px;
    margin: 0 10px;
    transition: background-color 0.3s, color 0.3s;
}

.menu-item:hover, .menu-item.selected {
    background-color: #fdd835;
    color: #121212;
}

/* Estilos adicionais para o Histórico */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #fdd835;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    background-color: #2e2e2e;
    color: #fff;
}

button {
    background-color: #fdd835;
    color: #121212;
    border: none;
    padding: 10px 20px;
    margin-top: 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #e1c233;
}

.button-group {
    display: flex;
    justify-content: space-between;
}

button + button {
    margin-left: 10px;
}

.summary {
    text-align: left;
    margin-bottom: 20px;
}

.summary p {
    margin: 10px 0;
    font-size: 1.1em;
    color: #ccc;
}

.barber-list, .day-list, .time-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.barber-item, .day-item, .time-item {
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    flex: 1 1 calc(25% - 40px); /* Ajusta o tamanho dos itens para caber 4 por linha */
    max-width: calc(25% - 40px);
    box-sizing: border-box;
    transition: transform 0.3s;
    cursor: pointer;
}

.barber-item:hover, .day-item:hover, .time-item:hover {
    transform: scale(1.05);
}

.barber-photo {
    width: 100%;
    height: auto;
    border-radius: 50%;
    overflow: hidden;
    object-fit: cover;
    max-width: 150px; /* Limita o tamanho máximo */
    margin-bottom: 10px;
}

.barber-item p {
    margin: 0;
    color: #fdd835;
    font-size: 1.1em;
}

.day-item, .time-item {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    border-radius: 10px;
}

.unavailable-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.unavailable-message p {
    margin: 10px 0;
    font-size: 1.2em;
    color: #fdd835;
}

.unavailable-gif {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.history-table th, .history-table td {
    border: 1px solid #444;
    padding: 10px;
    text-align: left;
    color: #fdd835;
    word-wrap: break-word; /* Permite que palavras longas quebrem */
}

.history-table th {
    background-color: #333;
}

.history-table tbody tr:nth-child(even) {
    background-color: #2e2e2e;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.history-items {
    display: none;
}

.history-item {
    display: none;
    background-color: #333;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.history-item p {
    margin: 5px 0;
    font-size: 1.1em;
    color: #ccc;
    text-align: left;
}

.history-item strong {
    color: #fdd835;
}

/* Responsividade */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .service-item, .barber-item, .day-item, .time-item {
        padding: 15px;
    }

    .service-item h3, .barber-item p, .day-item, .time-item {
        font-size: 1.2em;
    }

    .service-item p, .barber-item p, .day-item, .time-item {
        font-size: 1em;
    }

    .barber-photo {
        width: 120px;
        height: 120px;
    }

    .barber-item, .day-item, .time-item {
        flex: 1 1 100%; /* Ajusta para uma coluna em telas menores */
        max-width: 100%;
    }

    .history-table {
        display: none;
    }

    .history-items {
        display: block;
    }

    .history-item {
        display: block;
    }
}

.confirmation-message {
    text-align: center;
    padding: 40px 20px;
    background-color: #333;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    margin-top: 20px;
}

.confirmation-message h1 {
    color: #fdd835;
    margin-bottom: 20px;
    font-size: 2em;
}

.confirmation-message p {
    color: #ccc;
    font-size: 1.2em;
    margin-bottom: 30px;
}

.confirmation-message .button {
    background-color: #fdd835;
    color: #121212;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.confirmation-message .button:hover {
    background-color: #e1c233;
}
