/* Bouton d'ouverture */
.elementor-modal-list-btn {
    background: #92003b;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin: 10px 0;
    transition: background 0.3s;
}

.elementor-modal-list-btn:hover {
    background: #6d002c;
}

/* Overlay */
.elementor-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Popup */
.elementor-modal-popup {
    background: white;
    border-radius: 10px;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Header */
.elementor-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #92003b, #d10050);
    color: white;
    border-radius: 10px 10px 0 0;
}

.elementor-modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.close-elementor-modal {
    font-size: 28px;
    cursor: pointer;
    color: white;
    line-height: 1;
}

.close-elementor-modal:hover {
    opacity: 0.8;
}

/* Contenu */
.elementor-modal-content {
    padding: 20px;
}

/* Statistiques */
.elementor-stats {
    display: flex;
    justify-content: space-around;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.stat-item {
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 24px;
    color: #92003b;
}

/* Templates */
.elementor-templates {
    margin-bottom: 30px;
}

.elementor-templates h4, .elementor-references h4 {
    color: #92003b;
    border-bottom: 2px solid #92003b;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.elementor-template-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    transition: transform 0.2s;
}

.elementor-template-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(146, 0, 59, 0.1);
}

.template-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.template-header strong {
    color: #212529;
    font-size: 16px;
}

.template-id {
    background: #6c757d;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.template-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.edit-btn {
    background: #92003b;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    transition: background 0.3s;
}

.edit-btn:hover {
    background: #6d002c;
    color: white;
}

.conditions-badge {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
}

/* Références */
.elementor-reference-item {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
}

.reference-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.reference-header strong {
    color: #495057;
}

.reference-type {
    background: #17a2b8;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    text-transform: uppercase;
}

.reference-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reference-details small {
    color: #6c757d;
}

.reference-actions {
    display: flex;
    gap: 8px;
}

.view-btn {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 11px;
}

.view-btn:hover {
    background: #218838;
    color: white;
}

/* Aucun résultat */
.no-elementor-modals {
    text-align: center;
    padding: 40px 20px;
}

.no-elementor-modals p {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 20px;
}

.debug-info {
    text-align: left;
    background: #e9ecef;
    padding: 15px;
    border-radius: 6px;
    max-width: 500px;
    margin: 0 auto;
}

.debug-info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.debug-info li {
    margin-bottom: 5px;
    color: #495057;
}

/* Loader */
.modal-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #92003b;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    z-index: 10000;
    font-weight: bold;
}