/* Thème professionnel vert SolHead uniforme */

/* Corps des cartes avec thème vert élégant */
.card-body {
    background: #2a3d2f !important;
    color: #f1f5f9 !important;
    border-radius: 0.5rem;
}

/* Titres des sections */
.card-header h5 {
    color: #2E7D32 !important;
    font-weight: bold;
    text-shadow: none;
    font-size: 16px;
}

/* Labels de formulaire */
.form-label {
    color: #e2e8f0 !important;
    font-weight: 500;
    font-size: 14px;
}

/* Labels de cases à cocher */
.form-check-label {
    color: #e2e8f0 !important;
    font-weight: 400;
    font-size: 14px;
}

/* Champs de saisie - Thème blanc */
.form-control {
    background: #FFFFFF !important;
    color: #212121 !important;
    border: 1px solid #E0E0E0 !important;
    font-size: 14px;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    background: #FFFFFF !important;
    color: #212121 !important;
    border-color: #2E7D32 !important;
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.15) !important;
}

.form-control::placeholder {
    color: #757575 !important;
}

/* Listes déroulantes - Thème blanc */
.form-select {
    background: #FFFFFF !important;
    color: #212121 !important;
    border: 1px solid #E0E0E0 !important;
    font-size: 14px;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.form-select:focus {
    background: #FFFFFF !important;
    color: #212121 !important;
    border-color: #2E7D32 !important;
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.15) !important;
}

/* Options des listes déroulantes */
.form-select option {
    background: #FFFFFF !important;
    color: #212121 !important;
}

.form-select option:checked,
.form-select option:hover {
    background: #E8F5E9 !important;
    color: #212121 !important;
}

/* Modals - Style uniforme avec le reste du site */
.modal-content {
    background: #2a3d2f !important;
    border: 1px solid #3d5544 !important;
    color: #f1f5f9 !important;
}

.modal-header {
    background: #4a7c59 !important;
    border-bottom: 1px solid #3d5544 !important;
}

.modal-body {
    background: #2a3d2f !important;
}

.modal-footer {
    background: #2a3d2f !important;
    border-top: 1px solid #3d5544 !important;
}

/* Champs dans les modals - Force le style uniforme */
.modal .form-control {
    background: #1a2e1f !important;
    color: #f1f5f9 !important;
    border: 1px solid #3d5544 !important;
}

.modal .form-control:focus {
    background: #1a2e1f !important;
    color: #f1f5f9 !important;
    border-color: #4a7c59 !important;
    box-shadow: 0 0 0 0.2rem rgba(74, 124, 89, 0.25) !important;
}

/* Cases à cocher */
.form-check-input {
    background: #1a2e1f !important;
    border: 2px solid #e2e8f0 !important;
    width: 1.2em;
    height: 1.2em;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background: #4a7c59 !important;
    border-color: #4a7c59 !important;
}

.form-check-input:focus {
    border-color: #4a7c59 !important;
    box-shadow: 0 0 0 0.25rem rgba(74, 124, 89, 0.25) !important;
}

.form-check-input:hover {
    border-color: #4a7c59 !important;
}

/* Texte d'aide */
.form-text {
    color: #94a3b8 !important;
    font-size: 12px;
}

/* Boutons modernes uniformes - vert SolHead */
.btn-primary {
    background: #4a7c59;
    border: none;
    font-weight: 500;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(74, 124, 89, 0.3);
    color: #ffffff !important;
}

.btn-primary:hover {
    background: #5a8f5e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.4);
    color: #ffffff !important;
}

/* Boutons spécifiques du tableau de bord */
.dashboard-btn {
    background: #4a7c59 !important;
    border: none !important;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(74, 124, 89, 0.3);
    color: #ffffff !important;
    text-decoration: none;
}

.dashboard-btn:hover {
    background: #5a8f5e !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.4);
    color: #ffffff !important;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    border: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(100, 116, 139, 0.2);
    color: #ffffff !important;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(100, 116, 139, 0.3);
    color: #ffffff !important;
}

/* Boutons d'action uniformes avec espacement */
.btn-sm {
    padding: 8px 16px !important;
    font-size: 12px !important;
    border-radius: 0.375rem !important;
    margin-right: 0.5rem !important;
    margin-bottom: 0.25rem !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Bouton Modifier - Style vert uniforme */
.btn-outline-primary, 
.btn[onclick*="modifier"], 
.btn[href*="modifier"],
button:contains("Modifier"),
a:contains("Modifier") {
    background: #4a7c59 !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(74, 124, 89, 0.2);
}

.btn-outline-primary:hover, 
.btn[onclick*="modifier"]:hover, 
.btn[href*="modifier"]:hover {
    background: #5a8f5e !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(74, 124, 89, 0.3);
    color: #ffffff !important;
}

/* Bouton Soumettre - Style vert uniforme */
.btn-outline-success,
.btn[onclick*="soumettre"],
.btn[href*="soumettre"],
button:contains("Soumettre"),
a:contains("Soumettre") {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-outline-success:hover,
.btn[onclick*="soumettre"]:hover,
.btn[href*="soumettre"]:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
    color: #ffffff !important;
}

/* Bouton Supprimer - Style rouge uniforme */
.btn-outline-danger,
.btn[onclick*="supprimer"],
.btn[href*="supprimer"],
.btn[onclick*="delete"],
button:contains("Supprimer"),
a:contains("Supprimer") {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.btn-outline-danger:hover,
.btn[onclick*="supprimer"]:hover,
.btn[href*="supprimer"]:hover,
.btn[onclick*="delete"]:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
    color: #ffffff !important;
}

/* Espacement entre groupes de boutons */
.btn-group {
    gap: 0.5rem;
}

.btn + .btn {
    margin-left: 0.5rem;
}

.btn-lg {
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 0.5rem;
}

/* Alertes */
.alert-info {
    background: rgba(74, 124, 89, 0.1);
    border-color: #4a7c59;
    color: #e2e8f0;
    border-radius: 0.5rem;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%);
    border-color: #f59e0b;
    color: #e2e8f0;
    border-radius: 0.5rem;
}

/* Cartes principales */
.card {
    background: #2a3d2f;
    border: 1px solid #3d5544;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.card-header {
    font-weight: 600;
    border-bottom: 1px solid #3d5544;
    background: #4a7c59;
    border-radius: 0.75rem 0.75rem 0 0;
}

/* Supprimer les icônes dans l'espace admin uniquement */
.admin-content .fas, 
.admin-content .fa,
.admin-content .card .fas,
.admin-content .card .fa,
.admin-content form .fas,
.admin-content form .fa {
    display: none !important;
}

/* Garder les icônes de navigation mais les styliser */
.admin-sidebar .fas,
.admin-sidebar .fa {
    display: inline !important;
    margin-right: 0.5rem;
    opacity: 0.8;
    width: 16px;
}

/* Titres uniformes */
h1, h2, h3, h4, h5, h6 {
    color: #f1f5f9;
    font-weight: 600;
}

/* Style spécifique pour les tableaux */
.table {
    color: #e2e8f0;
}

.table th {
    color: #ffffff;
    border-color: #3d5544;
    background: #4a7c59;
}

.table td {
    border-color: #3d5544;
    background: rgba(42, 61, 47, 0.3);
}

/* Navigation sidebar complète */
.admin-sidebar {
    width: 280px;
    background: #2E7D32 !important;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    transition: all 0.3s ease;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
    padding: 2rem 0;
}

.admin-logo {
    text-align: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(71, 85, 105, 0.3);
    margin-bottom: 2rem;
}

.admin-logo img {
    filter: brightness(1.1);
}

.admin-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin: 0.5rem 1rem;
}

.nav-link {
    color: #e2e8f0 !important;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    font-weight: 500;
}

.nav-link:hover {
    background: #4a7c59 !important;
    color: #ffffff !important;
    transform: translateX(4px);
}

.nav-item.active .nav-link {
    background: #4a7c59 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(74, 124, 89, 0.3);
}

.logout-link:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
}

/* Espacement uniforme */
.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Arrière-plan général uniforme */
.admin-layout {
    background: #e5ead5 !important;
    color: #1a2e1f !important;
    min-height: 100vh;
}

.admin-content {
    background: transparent !important;
    color: #1a2e1f !important;
    margin-left: 280px;
    padding: 0;
}

.admin-header {
    background: #2E7D32 !important;
    border-radius: 0 !important;
    padding: 1.5rem 2rem !important;
    margin: 0 !important;
    border: none !important;
    border-bottom: 2px solid #1B5E20 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.admin-body {
    background: transparent;
    padding: 2rem;
}