/* /assets/css/style.css */

/* --- FONDATIONS ET STYLES GLOBAUX --- */
body {
    /* Ancien: background-color: #f1f5f9; */
    background: linear-gradient(120deg, #f0f4f9 0%, #e6e9f2 100%);
    font-family: 'Inter', sans-serif;
    color: #374151; /* slate-700 */
}

/* --- NOUVEAU STYLE DE CARTE --- */
.mockup-card {
    background-color: white;
    border-radius: 24px;
    padding: 2rem; /* p-8 */
    box-shadow: 0 10px 25px -5px rgba(66, 153, 225, 0.1), 0 4px 6px -2px rgba(66, 153, 225, 0.05);
    transition: all 0.3s ease-in-out;
}

/* --- NOUVEAUX STYLES DE BOUTONS --- */

/* Boutons principaux avec dégradé */
.btn-gradient-primary {
    background-image: linear-gradient(to right, #4f46e5 0%, #7c3aed 100%); /* indigo-600 to purple-600 */
    color: white;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px -5px rgba(79, 70, 229, 0.4);
}
.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px -5px rgba(79, 70, 229, 0.5);
}
.btn-gradient-primary:disabled,
.btn-gradient-primary.disabled,
.btn-gradient-primary[disabled] {
    background-image: linear-gradient(to right, #e0e7ff 0%, #ede9fe 100%);
    color: #a5b4fc;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}

/* Boutons "pilule" pour la navigation de l'en-tête */
.btn-gradient-pill {
    background-image: linear-gradient(to right, #60a5fa 0%, #818cf8 100%); /* blue-400 to indigo-400 */
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-gradient-pill:hover {
    opacity: 0.9;
    box-shadow: 0 4px 15px -5px rgba(96, 165, 250, 0.4);
}

/* Style pour les labels de téléversement de fichier */
.btn-file-input {
    display: inline-block;
    background-color: #e5e7eb; /* gray-200 */
    color: #374151; /* gray-700 */
    font-weight: 600;
    transition: background-color 0.2s;
}
.btn-file-input:hover {
    background-color: #d1d5db; /* gray-300 */
}

/* Bouton secondaire (ex: Annuler, Arrêter) */
.btn-secondary {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-secondary:hover {
    background-color: #e2e8f0;
    color: #334155;
    border-color: #cbd5e1;
}

/* --- NOUVEAUX STYLES POUR LES LIENS D'ACTION --- */
.action-link {
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.875rem;
}
.action-link:hover {
    opacity: 0.8;
    background-color: rgba(255, 255, 255, 0.1);
}
.action-link-primary { 
    color: #3b82f6; 
}
.action-link-primary:hover { 
    background-color: rgba(59, 130, 246, 0.1); 
}
.action-link-rename { 
    color: #f97316; 
}
.action-link-rename:hover { 
    background-color: rgba(249, 115, 22, 0.1); 
}
.action-link-delete { 
    color: #ef4444; 
}
.action-link-delete:hover { 
    background-color: rgba(239, 68, 68, 0.1); 
}

/* --- ANCIENS STYLES (conservés pour compatibilité si besoin) --- */
.card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* --- STYLES SPÉCIFIQUES POUR L'ADMINISTRATION --- */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.admin-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid #e2e8f0;
}
.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}
.admin-table tr:hover {
    background-color: #f8fafc;
}

/* Amélioration des champs de formulaire */
input[type="text"],
input[type="password"],
input[type="number"],
textarea,
select {
    border: 1px solid #d1d5db;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Espacement uniforme pour les sections */
.admin-section {
    margin-bottom: 2rem;
}
.admin-section:last-child {
    margin-bottom: 0;
}
.btn-primary {
    background-color: #4f46e5;
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}
.btn-primary:hover {
    background-color: #4338ca;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transform: translateY(-1px);
}