/* Styles pour la gestion des thèmes */

.theme-management-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.theme-card {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.theme-card.active {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25);
}

.theme-card.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
}

.theme-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.theme-badges .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.theme-info {
    margin: 1rem 0;
    padding: 0.75rem;
    background-color: #FCF1E6;
    border-radius: 6px;
    border-left: 3px solid #2F4F4F;
}

.theme-info small {
    display: block;
    margin-bottom: 0.25rem;
}

.theme-info small:last-child {
    margin-bottom: 0;
}

.theme-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.theme-actions .btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.theme-actions .btn:hover {
    transform: translateY(-1px);
}

/* Styles pour les modales */
.modal.show {
    display: block !important;
}

.modal-dialog {
    margin: 1.75rem auto;
}

.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #2F4F4F 0%, #0056b3 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    margin: 0;
}

.btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    background-color: #FCF1E6;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 12px 12px;
    padding: 1.5rem;
}

/* Styles pour les formulaires */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.0rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #2F4F4F;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-check-input:checked {
    background-color: #2F4F4F;
    border-color: #2F4F4F;
}

/* Styles pour les listes de fichiers */
.list-group-item {
    border: 1px solid #e9ecef;
    border-radius: 8px !important;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: #FCF1E6;
    transform: translateX(5px);
}

.list-group-item:last-child {
    margin-bottom: 0;
}

/* Styles pour l'éditeur de fichiers */
textarea.form-control {
    font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.theme-card {
    animation: fadeInUp 0.6s ease-out;
}

.theme-card:nth-child(1) { animation-delay: 0.1s; }
.theme-card:nth-child(2) { animation-delay: 0.2s; }
.theme-card:nth-child(3) { animation-delay: 0.3s; }
.theme-card:nth-child(4) { animation-delay: 0.4s; }
.theme-card:nth-child(5) { animation-delay: 0.5s; }
.theme-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive design */
@media (max-width: 768px) {
    .theme-management-container {
        padding: 10px;
    }
    
    .theme-actions {
        flex-direction: column;
    }
    
    .theme-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 1rem;
    }
}

/* Styles pour les états de chargement */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Styles pour les messages d'état vide */
.text-center.py-5 {
    padding: 3rem 0;
}

.text-center.py-5 .display-1 {
    font-size: 4rem;
    opacity: 0.3;
}

/* Amélioration de l'accessibilité */
.btn:focus {
    outline: 2px solid #2F4F4F;
    outline-offset: 2px;
}

.form-control:focus {
    outline: 2px solid #2F4F4F;
    outline-offset: 2px;
}

/* Styles pour les icônes */
.oi {
    font-size: 0.875em;
    margin-right: 0.25rem;
}

/* Styles pour les cartes de thème */
.theme-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.theme-card .card-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.theme-card .card-text {
    color: #6c757d;
    flex-grow: 1;
    margin-bottom: 1rem;
}

/* Styles pour les boutons d'action */
.btn-outline-success:hover {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-outline-primary:hover {
    background-color: #2F4F4F;
    border-color: #2F4F4F;
    color: white;
}

.btn-outline-info:hover {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

