
    html, body {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

       body {
           background-color: #f5f5f5;
           
       }

       .container {
          /* max-width: 1200px;*/
         /*  margin: 0 auto;
           padding: 20px;*/
       }

       .header {
           background-color: #fff;
           padding: 20px;
           border-radius: 8px;
           margin-bottom: 30px;
           box-shadow: 0 2px 4px rgba(0,0,0,0.1);
       }

       h1 {
           color: #333;
           text-align: center;
           margin-bottom: 20px;
       }

       .search-form {
           background-color: #fff;
           padding: 20px;
           border-radius: 8px;
           max-width: 800px;
            margin: 0 auto;
           box-shadow: 0 2px 4px rgba(0,0,0,0.1);
       }

       .form-group {
           margin-bottom: 35px;
           position: relative;
       }

       .form-group label {
           display: block;
           margin-bottom: 5px;
           color: #333;
           font-weight: bold;
       }

       .form-group input {
           width: 100%;
           padding: 10px;
           border: 1px solid #ddd;
           border-radius: 4px;
           font-size: 16px;
       }

       .form-group input:focus {
           outline: none;
           border-color: #75d2d1;
           box-shadow: 0 0 0 2px rgba(117, 210, 209, 0.2);
       }

    

       .error-message {
           color: #dc3545;
           font-size: 14px;
           margin-top: 5px;
           display: none;
           position: absolute;
           bottom: -20px;
           left: 0;
       }

      

       .message {
           padding: 15px;
           margin-bottom: 20px;
           border-radius: 4px;
           text-align: center;
           background-color: #f8f9fa;
           color: #666;
       }

       .rendez-vous-section {
           background-color: #fff;
           border-radius: 8px;
           padding: 20px;
           box-shadow: 0 2px 4px rgba(0,0,0,0.1);
           max-width: 800px;
           
    margin-top: 20px;
    margin-right: auto;
    margin-bottom: 0px;
    margin-left: auto;
       }

       .rendez-vous-list {
           margin: 15px 0;
       }

       .rendez-vous-item {
           padding: 15px;
           margin: 10px 0;
           background-color: #f8f9fa;
           border-radius: 5px;
           border-left: 4px solid #ff9800;
           transition: transform 0.2s ease;
       }

       .rendez-vous-item:hover {
           transform: translateX(5px);
       }

       .rendez-vous-item p {
           margin: 8px 0;
           color: #666;
       }

       .rendez-vous-item strong {
           color: #333;
           min-width: 120px;
           display: inline-block;
       }

       .section-title {
           color: #333;
           margin: 20px 0 10px;
           font-size: 1.5em;
           border-bottom: 2px solid #ff9800;
           padding-bottom: 10px;
       }

       .empty-message {
           text-align: center;
           padding: 40px;
           color: #666;
           font-style: italic;
       }

    

       .rdv-inactif {
           opacity: 0.7;
           border-left-color: #999;
           background-color: #f0f0f0;
       }

       @keyframes fadeIn {
           from {
               opacity: 0;
               transform: translateY(20px);
           }
           to {
               opacity: 1;
               transform: translateY(0);
           }
       }

       .rendez-vous-item {
           animation: fadeIn 0.5s ease-out forwards;
       }

       @media (max-width: 768px) {
           .container {
               padding: 10px;
           }

           .rendez-vous-item {
               padding: 10px;
           }

           .rendez-vous-item strong {
               display: block;
               margin-bottom: 5px;
           }

           .error-message {
               position: static;
               margin-top: 5px;
           }
       }

       .btn {
           padding: 8px 15px;
           margin: 5px;
           border: none;
           border-radius: 4px;
           cursor: pointer;
           font-size: 14px;
           transition: background-color 0.3s;
       }

       .btn-modifier {
           background-color: #2196F3;
           color: white;
       }

       .btn-supprimer {
           background-color: #f44336;
           color: white;
       }

       .btn:hover {
           opacity: 0.9;
       }
       
              .dialog-overlay {
           display: none;
           position: fixed;
           top: 0;
           left: 0;
           width: 100%;
           height: 100%;
           background-color: rgba(0, 0, 0, 0.5);
           z-index: 1000;
           overflow-y: auto;
       }

       .dialog-content {
           position: relative;
           background-color: white;
           width: 90%;
           max-width: 500px;
           margin: 50px auto;
           padding: 20px;
           border-radius: 8px;
           box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
       }

       .dialog-title {
           margin-bottom: 15px;
           color: #333;
           font-size: 1.2em;
       }

       .dialog-buttons {
           display: flex;
           justify-content: flex-end;
           gap: 10px;
           margin-top: 20px;
       }

       .dialog-btn {
           padding: 8px 16px;
           border: none;
           border-radius: 4px;
           cursor: pointer;
           font-weight: bold;
       }

       .dialog-btn-cancel {
           background-color: #e0e0e0;
           color: #333;
       }

       .dialog-btn-confirm {
           background-color: #75d2d1;
           color: white;
       }

       .dialog-btn:hover {
           opacity: 0.9;
       }

/*////////////////////////////////////*/
/* pour afficher les redirections pour les modifications*/
/*/////////////////////////////////////////////*/


.button1 {
    background-color: #2563eb;
    color: white;  /* Ajout de la couleur du texte */
    border: none;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    width: 80%;
    margin: 0 auto;
    display: block;
    transition: background-color 0.2s;
    text-align: center;  /* Ajout de l'alignement du texte */
}




        
        /* Style de base pour tous les rendez-vous */
.rendez-vous-item {
    padding: 15px;
    margin: 10px 0;
    background-color: #f8f9fa;
    border-radius: 5px;
    transition: transform 0.2s ease;
}

/* Rendez-vous actifs (vert) */
.rendez-vous-item.actif {
    border-left: 4px solid #28a745;
    background-color: #f0fff4;
}

/* Rendez-vous historiques (bleu) */
.rendez-vous-item.historique {
    border-left: 4px solid #3498db;
    background-color: #f0f7ff;
}

/* Rendez-vous annulés (gris) */
.rendez-vous-item.rdv-inactif {
    border-left: 4px solid #6c757d;
    background-color: #f2f2f2;
    opacity: 0.8;
}

/* Effet hover pour tous les rendez-vous */
.rendez-vous-item:hover {
    transform: translateX(5px);
}


.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}
.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    position: absolute;
    top: 200px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
}







.dialog-style {
     border: none;
    margin: 0 auto;
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    transform: none;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.dialog-style h2 {
    margin-top: 0;
    color: #000000;
     font-weight: bold;
}

.dialog-style p {
    margin: 10px 0;
    color: #000000;
    font-size: 20px;
    font-weight: bold;
}

.apn-png {
    max-width: 100%;
}


    
    .dialog-overlay.visible {
    display: block;
}

body.no-scroll {
    overflow: hidden;
}

/* Messages d'erreur */
.error-message.visible {
    display: block;
}

input.error {
    border-color: #dc3545;
}








/* Styles pour les boutons Rechercher et Retour à l'accueil */

/* Conteneur des boutons */
.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    width: 100%;
    gap: 15px;
    align-items: stretch;
}

/* Styles communs aux deux boutons */
.submit-btn, .return-btn {
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: normal;
    text-align: center;
    flex: 1;
    height: 48px;
    line-height: 48px;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    vertical-align: middle;
    display: block;
}


.masked-email {
   font-weight: bold;
    color: #c73509;
    background-color: #dbeafe;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 24px;
    text-align: center;
}


/* Style spécifique pour le bouton de recherche */
.submit-btn {
    background-color: #4CAF50;
    color: white;
}

.submit-btn:hover {
    background-color: #45a049;
}

/* Style spécifique pour le bouton de retour à l'accueil */
.return-btn {
    background-color: #2196F3;
    color: white;
    text-decoration: none;
}

.return-btn:hover {
    background-color: #0b7dda;
}

/* Pour les écrans mobiles */
@media (max-width: 768px) {
    .button-container {
        flex-direction: column;
    }
    
    .submit-btn, .return-btn {
        width: 100%;
        margin: 5px 0;
    }
}