*{margin: 0;user-select: none;}

@font-face {
    font-family: Lobster;
    src: url(assets/fonts/Lobster.ttf);
}

body{
    background-color: rgb(30, 30, 30);
    font-size: 1.08rem;
    -webkit-tap-highlight-color: transparent;
    font-family: sans-serif;
}
h1{
    font-family: Lobster;
    font-size: 2.5em;
    width: 100%;
    margin-top: 5%;
    margin-bottom: 3%;
    text-decoration: none;
    text-align: center;
    background-image: linear-gradient(
	to right,
	#462523 0,
    #cb9b51 15%, 
	#f6e27a 45%,
	#ffec8f 50%,
	#f6e27a 55%,
	#cb9b51 85%,
	#462523 100%
	);
   color:transparent;
   text-shadow: 2px 2px rgba(0, 0, 0, 0.4);
   -webkit-background-clip:text;
}
small{
    display: block;
    margin-top: 5px;
    font-size: 1rem;
    color: #FFFFFF;
}
#selectedSlotDisplay, #selectedDateDisplay{color: #FFFFFF;}
#backToSlotsBtn{
    position: relative;
    left: 15px;
}
#confirmBookingBtn{
    position: absolute;
    right: 25px;
    padding: 8px 12px;
    background-color: rgb(203, 182, 151);
    border-radius: 6px;
    border: none;
    color: black;
    font-weight: 700;
}
.title a{
    text-decoration: none;
    color: transparent;
}
h2{
    font-size: 1rem;
}

.container{
    margin-top: 20%;
    color: rgb(203, 182, 151);
    text-align: center;
}

.reservation-date{
    font-size: 1.1rem;
    display: block;
    margin: 5px 0;
}
.reservation-form{
    margin-top: 30px;
}

.choice-date{
    font-size: 0.8rem;
}

input[type=date]{
    font-weight: 700;
    width: 200px;
    height: 25px;
    padding: 2px 8px;
    font-size: 1.2rem;
    border-radius: 12px;
}
input[type=text], input[type=tel]{
    width: 150px;
    height: 20px;
    background-color: #FFFFFF;
    color: black;
    border-radius: 8px;
    font-size: 1rem;
}

.slot{
    background-color: rgb(126, 103, 71);
    color: rgb(224, 202, 168);
    width: 150px;
    margin:8px;
    padding: 4px 0;
    border-radius: 6px;
}
.slots-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 15px;
    padding: 8px 0;
    border: 1px solid rgb(203, 182, 151);
    border-radius: 8px;
    font-size: 1rem;
}
.confirmation{
    padding: 8px 0;
}
.confirm{color:rgb(166, 203, 151);}
.selected, .booking-details h2{
    background-color: rgb(203, 182, 151);
    color: black;
    font-weight: 700;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}
.booking-details h2{padding: 6px 0;}

.booking-details{
    margin: 15px;
    padding: 0 0 8px 0;
    border: 1px solid rgb(203, 182, 151);
    border-radius: 6px;
}
.booking-details{
    p{margin: 4px 0;}
}
.booking-details :not(h2, button){
    text-align: left;
}
.booking-details label{
    text-align: left;
}
.booking-details-container{
    padding: 4px 8px;
}
.booking-details-container p{text-align: center;}

.booking-details-inputs{
    margin: 25px 0;
}

#backToSlotsBtn{
    height: 25px;
    width: 25px;
}

.choose-barber{
    margin-bottom: 7px;
    font-size: 1.3rem;
}
.employee-selector-btn{
    padding: 4px 12px;
    border-radius: 6px;
    border: none;
}
.employee-selector-btn:focus{
    background-color: rgb(203, 182, 151);
    color: black;
    transform: scale(1.2); 
  transition: 0.15s all ease;
}

.message {
    padding: 12px;
     border-radius: 8px;
     margin:15px 15px 0 15px;
     font-weight: bold;
    display: none; /* Cache le message par défaut */
    display: flex;
    align-items: center; 
    gap: 10px;
}

.message.error {
    background-color: rgb(203, 182, 151); /* Rouge clair pour le fond */
    color: #811f29; /* Rouge foncé pour le texte */
    border: 3px solid #811f29;
    border-left: none;
    border-right: none;
    font-size: 0.8rem;
}

/* Style de l'icône d'erreur */
.error-icon::before {
    content: '✕'; /* Symbole de croix */
    color: #811f29; /* Rouge vif pour l'icône */
    font-size: 1.2rem;
}

.slot{
    background-color: rgb(126, 103, 71);
    color: rgb(224, 202, 168);
    width: 150px;
    margin:8px;
    padding: 4px 0;
    border-radius: 6px;
    cursor: pointer; /* Indique que le créneau est cliquable par défaut */
}

.slot.full {
    cursor: not-allowed; /* Change le curseur pour indiquer qu'il n'est pas cliquable */
    opacity: 0.3; /* Rendre le créneau légèrement transparent */
}







.employee-btn {
    padding: 8px 12px;
    margin: 4px;
    border-radius: 6px;
    border: 1px solid rgb(203, 182, 151);
    background-color: transparent;
    color: #FFFFFF;
    font-weight: 700;
    cursor: pointer;
    transition: 0.15s all ease;
}

.employee-btn:hover {
    background-color: rgba(203, 182, 151, 0.2);
}

.employee-btn.selected-employee {
    background-color: rgb(203, 182, 151);
    color: black;
    transform: scale(1.05); 
}

#employeeSelectionContainer {
    margin: 20px 0;
    padding: 10px;
    border-top: 1px solid rgba(203, 182, 151, 0.5);
    border-bottom: 1px solid rgba(203, 182, 151, 0.5);
    display: flex; /* Pour aligner les boutons */
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

#employeeSelectionContainer h4 {
    color: rgb(203, 182, 151);
    margin-bottom: 10px;
    width: 100%;
}


.appointment-date{
    font-size: 1.2rem;
}