/*
 * Annuaire Thérapeutes Leaflet - Admin CSS
 * Version: 5.0
 */

.atl-admin-wrap {
    max-width: 1200px;
    margin-top: 20px;
}

/* Onglets */
.atl-admin-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.atl-tab {
    padding: 10px 20px;
    text-decoration: none;
    color: #666;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.atl-tab:hover {
    background: #fff;
    color: #333;
}

.atl-tab.active {
    background: #fff;
    color: #0073aa;
    font-weight: 600;
    border-bottom: 2px solid #fff;
}

.atl-tab-content {
    display: none;
    background: #fff;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-top: none;
}

.atl-tab-content.active {
    display: block;
}

/* Sélecteur de taxonomies */
.atl-taxonomies-selector {
    display: flex;
    gap: 20px;
    align-items: start;
    margin: 20px 0;
}

.atl-available-items,
.atl-selected-items {
    flex: 1;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
}

.atl-available-items h4,
.atl-selected-items h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #555;
}

.atl-arrow {
    display: flex;
    align-items: center;
    font-size: 24px;
    color: #999;
    padding-top: 50px;
}

.atl-sortable-list {
    list-style: none;
    margin: 0;
    padding: 0;
    min-height: 200px;
}

.atl-sortable-list li {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 5px;
    cursor: move;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.atl-sortable-list li:hover {
    background: #f0f8ff;
    border-color: #0073aa;
}

.atl-sortable-list li.ui-sortable-helper {
    opacity: 0.8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.atl-sortable-list li .dashicons {
    color: #999;
}

.atl-sortable-list li small {
    color: #666;
    font-size: 11px;
    margin-left: auto;
}

/* Grille de champs */
.atl-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.atl-field-checkbox {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.atl-field-checkbox:hover {
    background: #f0f8ff;
    border-color: #0073aa;
}

.atl-field-checkbox input[type="checkbox"] {
    margin-right: 8px;
}

.atl-field-checkbox span {
    flex: 1;
}

.atl-field-checkbox small {
    color: #666;
    font-size: 11px;
    display: block;
}

/* Champs de couleur */
.atl-color-field {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.atl-color-field label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
}

.atl-color-field input[type="color"] {
    width: 50px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
}

/* Améliorations des tables */
.form-table th {
    width: 200px;
}

.form-table td label {
    display: block;
    margin-bottom: 5px;
}

.form-table td input[type="number"],
.form-table td input[type="text"],
.form-table td select {
    width: auto;
    max-width: 300px;
}

/* Boutons d'action */
.atl-settings-form .submit {
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

/* Messages */
.atl-admin-wrap .notice {
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .atl-taxonomies-selector {
        flex-direction: column;
    }
    
    .atl-arrow {
        transform: rotate(90deg);
        padding: 10px 0;
    }
    
    .atl-fields-grid {
        grid-template-columns: 1fr;
    }
}