/* Styles professionnels améliorés */
.titre-autre-container {
    display: none;
    margin-top: 10px;
}

.titre-autre-container input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background-color: #f8f9fa;
}

.statut {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.statut-en_attente {
    background-color: #ffecb5;
    color: #b37d00 !important;
}

.statut-resolue {
    background-color: #c8e6c9;
    color: #2e7d32 !important;
    border: 1px solid #81c784;
}

.statut-errone {
    background-color: #ffcdd2;
    color: #c62828;
    border: 1px solid #e57373;
}

.statut-ouverte {
    background-color: #b3e5fc;
    color: #0277bd;
    border: 1px solid #4fc3f7;
}

.statut-en_cours {
    background-color: #ffecb5;
    color: #b37d00;
    border: 1px solid #ffd54f;
}

/* Fenêtre modale professionnelle */
#modal-display {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.fenetre-masquee {
    display: none !important;
}

#display-alerte-nouveau,
#display-alerte-modifier,
#display-alerte-repondre {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    width: 500px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
}

#display-alerte-nouveau h3,
#display-alerte-modifier h3,
#display-alerte-repondre h3,
#display-alerte-modifier h4,
#display-alerte-repondre h4 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-size: 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#display-alerte-nouveau form label,
#display-alerte-modifier form label,
#display-alerte-repondre form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
}

#display-alerte-nouveau form select,
#display-alerte-modifier form select,
#display-alerte-repondre form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    margin-bottom: 20px;
    background-color: white;
    transition: border-color 0.3s;
}

#display-alerte-nouveau form select:focus,
#display-alerte-modifier form select:focus,
#display-alerte-repondre form select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

#display-alerte-nouveau form textarea,
#display-alerte-modifier form textarea,
#display-alerte-repondre form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    margin-bottom: 20px;
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.3s;
}

#display-alerte-nouveau form textarea:focus,
#display-alerte-modifier form textarea:focus,
#display-alerte-repondre form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

#display-alerte-nouveau form input[type="text"],
#display-alerte-modifier form input[type="text"],
#display-alerte-repondre form input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

#display-alerte-nouveau form input[type="text"]:focus,
#display-alerte-modifier form input[type="text"]:focus,
#display-alerte-repondre form input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.div-btn-modal {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-enregistrer-modal {
    padding: 12px 25px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-enregistrer-modal:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-fermer-modal {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7f8c8d;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.btn-fermer-modal:hover {
    background-color: #f5f5f5;
    color: #2c3e50;
}

/* Améliorations de l'interface principale */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 20px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
}

.breadcrumb {
    background-color: #f8f9fa;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    color: #7f8c8d;
    border: 1px solid #e9ecef;
    margin: 15px auto;
    width: 65%;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #2c3e50;
    font-weight: 600;
}

h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 1.6rem;
}

.dashboard {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

#dashboard-flex {
    display: flex;
    gap: 25px;
}

#dashboard-flex-menu {
    width: 280px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

#flex-menu-user {
    background: white;
    padding: 1em;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

#flex-menuuser-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
}

#flex-menu-notifications {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

#flex-menu-notifications h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #2c3e50;
}

.alertes-status .alerte {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alertes-status .alerte:last-child {
    border-bottom: none;
}

#flex-menu-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#flex-menu-items a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: white;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
    font-weight: 500;
}
#flex-menu-items > .exit {
    background: orangered !important;
    color: #fff !important;
    border: 1px solid #e9ecef;
    transition: all 0.3s !important;
    font-weight: 800 !important;
}

#flex-menu-items a:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
}

#dashboard-flex-content {
    flex: 1;
}

#dashboard-flex-content h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
}

#ouvrirAlerteNouveau {
    padding: 10px 20px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s, transform 0.2s;
}

#ouvrirAlerteNouveau:hover {
    background-color: #219653;
    transform: translateY(-2px);
}

.data-recherche-view {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.data-recherche-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

#data-recherche-texte {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

#data-recherche-periode {
    display: flex;
    gap: 10px;
}

.data-recherche-form button {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.data-recherche-form button:hover {
    background-color: #2980b9;
}

.data-recherche-form button[type="reset"] {
    background-color: #95a5a6;
}

.data-recherche-form button[type="reset"]:hover {
    background-color: #7f8c8d;
}

.data-scrollview {
    height: 500px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

#data-view-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: white;
    transition: background-color 0.3s;
}

#data-view-item:hover {
    background-color: #f8f9fa;
}

#data-view-item:last-child {
    border-bottom: none;
}

#data-view-libelle {
    flex: 1;
}

#view-libelle-title p {
    margin: 0 0 8px 0;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

#view-libelle-title span {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
}

#view-libelle-infos {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    font-size: 13px;
    color: #95a5a6;
}

#data-view-actions a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
}

#data-view-actions a:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 992px) {
    #dashboard-flex {
        flex-direction: column;

    }
    
    #dashboard-flex-menu {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .data-recherche-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    #data-recherche-periode {
        flex-direction: column;
    }
    
    #view-libelle-infos {
        flex-direction: column;
        gap: 5px;
    }
    
    #data-view-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    #data-view-actions {
        align-self: flex-end;
    }
}