/* Styles de base communs pour toutes les modales */
.modal {
    background-color: transparent !important;
    z-index: 1060 !important;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1055 !important;
}

.modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    width: 90%;
    margin: 0;
    height: auto;
}

.modal-content {
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    /*margin: auto;*/
}

#adminModal .modal-content {
    margin: auto;
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: none;
    
}

.modal-body {
    padding: 1rem 1.5rem;
    border-radius: 0 0 15px 15px;
    background-color: white;
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.close-button i {
    color: #000080;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.close-button:hover {
    background: #000080;
    transform: rotate(90deg);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.close-button:hover i {
    color: white;
}

/* Media queries communes */
@media (max-width: 990px) {
    .modal-content {
        margin-bottom: 60px;
    }
   
}

@media (max-width: 768px) {
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        width: 95%;
    }
    
} 