/* Styles pour le gestionnaire de fichiers */

/* Section de gestion des fichiers */
.file-management-section {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Liste des modèles */
.templates-list {
    margin-bottom: 30px;
}

.templates-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

/* Carte de modèle */
.template-card {
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.template-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.template-header {
    background-color: #3498db;
    color: white;
    padding: 12px 15px;
}

.template-header h4 {
    margin: 0;
    font-size: 16px;
}

.template-body {
    padding: 15px;
}

.template-body p {
    margin: 0;
    color: #555;
    font-size: 14px;
}

.template-footer {
    padding: 10px 15px;
    background-color: #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
}

.file-info {
    font-size: 12px;
    color: #777;
}

/* Section d'upload */
.upload-section {
    background-color: white;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input[type="file"] {
    padding: 8px 0;
}

/* Boutons */
.btn-primary {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-download {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.btn-download:hover {
    background-color: #27ae60;
}

/* Messages de statut */
.status-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

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

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

.status-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Styles pour la sidebar et la navigation */
.sidebar {
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sidebar h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.sidebar ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.sidebar li {
    margin-bottom: 8px;
}

.sidebar a {
    color: #3498db;
    text-decoration: none;
    display: block;
    padding: 5px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.sidebar a:hover {
    background-color: #eef5fa;
}

.sidebar a.active {
    background-color: #3498db;
    color: white;
    font-weight: 500;
}

.sidebar a.parent-active {
    background-color: #eef5fa;
    font-weight: 500;
}

/* Styles pour les groupes de dossiers */
.folder-group-header {
    cursor: pointer;
    padding: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.toggle-icon {
    margin-right: 8px;
    font-size: 12px;
    color: #666;
}

.folder-group-content {
    padding-left: 15px;
}

/* Styles pour les sous-sous-dossiers */
.sub-subfolder-list {
    list-style-type: none;
    padding-left: 15px;
    margin-top: 5px;
    border-left: 1px solid #e0e0e0;
}

.sub-subfolder-list li {
    margin-bottom: 5px;
}

.sub-subfolder-list a {
    font-size: 0.9em;
    color: #666;
    padding: 3px 8px;
}

.sub-subfolder-list a:hover {
    background-color: #f5f5f5;
}

.sub-subfolder-list a.active {
    background-color: #3498db;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .templates-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        margin-bottom: 20px;
    }
}
