/* Styles pour les sections de vocations professionnelles - Compatible AdminLTE */

.vocation-sections-container {
    background: transparent;
    padding: 0;
}

.vocation-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #fff;
}

.vocation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.vocation-card .card-header {
    border: none;
    border-radius: 8px 8px 0 0;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.vocation-card .card-body {
    padding: 1.5rem;
    background: #fff;
}

.vocation-card .card-body ul {
    margin: 0;
    padding: 0;
}

.vocation-card .card-body li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.vocation-card .card-body li:last-child {
    border-bottom: none;
}

.vocation-card .card-body li:hover {
    background: rgba(0, 123, 255, 0.05);
    padding-left: 1rem;
    border-radius: 8px;
}

.vocation-card .card-body li i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Styles pour les icônes dans les cartes */
.vocation-card .fas.fa-check {
    color: #28a745;
}

.vocation-card .fas.fa-check-circle {
    color: #28a745;
}

.vocation-card .fas.fa-clock {
    color: #ffc107;
}

/* Couleurs personnalisées pour les cartes */
.vocation-card.primary .card-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.vocation-card.success .card-header {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.vocation-card.info .card-header {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}

.vocation-card.warning .card-header {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529 !important;
}

.vocation-card.danger .card-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.vocation-card.secondary .card-header {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
}

.vocation-card.dark .card-header {
    background: linear-gradient(135deg, #343a40 0%, #23272b 100%);
}

.vocation-card.light .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057 !important;
}

/* Animation pour les éléments de liste */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.vocation-card .card-body li {
    animation: slideInFromLeft 0.5s ease forwards;
}

.vocation-card .card-body li:nth-child(1) { animation-delay: 0.1s; }
.vocation-card .card-body li:nth-child(2) { animation-delay: 0.2s; }
.vocation-card .card-body li:nth-child(3) { animation-delay: 0.3s; }
.vocation-card .card-body li:nth-child(4) { animation-delay: 0.4s; }
.vocation-card .card-body li:nth-child(5) { animation-delay: 0.5s; }

/* Styles pour l'éditeur TinyMCE */
.tox-tinymce {
    border-radius: 8px !important;
    border: 2px solid #e9ecef !important;
}

.tox-tinymce:focus-within {
    border-color: #007bff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

/* Styles pour les sélecteurs d'icônes et couleurs */
.icon-preview {
    display: inline-block;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
    background: #f8f9fa;
    margin-right: 10px;
    border: 2px solid #e9ecef;
}

.color-preview {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    margin-right: 10px;
}

/* Styles pour la page de prévisualisation */
.preview-container {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.preview-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
}

.preview-header h1 {
    color: #495057;
    font-weight: 300;
    margin-bottom: 1rem;
}

.preview-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Styles AdminLTE compatibles */
.content-wrapper .vocation-card {
    margin-bottom: 1rem;
}

.content-wrapper .vocation-card .card-header {
    background: #f8f9fa !important;
    color: #495057 !important;
    border-bottom: 1px solid #dee2e6;
}

.content-wrapper .vocation-card .card-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.content-wrapper .vocation-card .card-body {
    padding: 1rem 1.5rem;
}

/* Amélioration des badges */
.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: #28a745;
    color: white;
}

.status-badge.inactive {
    background: #6c757d;
    color: white;
}

/* Amélioration des boutons d'action */
.action-btn {
    border-radius: 4px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 400;
    transition: all 0.15s ease-in-out;
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.action-btn.preview {
    background: #17a2b8;
    color: white;
    border-color: #17a2b8;
}

.action-btn.preview:hover {
    background: #138496;
    border-color: #117a8b;
    color: white;
}

.action-btn.edit {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.action-btn.edit:hover {
    background: #0056b3;
    border-color: #004085;
    color: white;
}

.action-btn.toggle {
    background: #ffc107;
    color: #212529;
    border-color: #ffc107;
}

.action-btn.toggle:hover {
    background: #e0a800;
    border-color: #d39e00;
    color: #212529;
}

/* Responsive design */
@media (max-width: 768px) {
    .vocation-card {
        margin-bottom: 1rem;
    }
    
    .vocation-card .card-header {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .vocation-card .card-body {
        padding: 1rem;
    }
    
    .vocation-card .card-body li {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
    
    .action-btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .vocation-sections-container {
        padding: 1rem 0;
    }
    
    .vocation-card .card-body {
        padding: 1rem;
    }
    
    .vocation-card .card-body li {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .vocation-card .card-body li i {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
}

/* Styles pour les badges de statut */
.status-badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.status-badge.inactive {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

/* Styles pour les boutons d'action */
.action-btn {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.action-btn.preview {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.action-btn.edit {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.action-btn.toggle {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
}

/* Animation de chargement */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
