/*Module Production animale, fiche de suivi par type*/
.fiche-filter-form .form-control,
.fiche-filter-form .btn {
    width: 150px; /* Taille uniforme pour tous les éléments */
    height: 38px; /* Hauteur uniforme */
    padding: 6px 12px; /* Padding interne cohérent */
    font-size: 14px; /* Taille de police réduite pour harmonisation */
}
.fiche-filter-form .btn {
    line-height: 1.5; /* Alignement vertical du texte */
}
.fiche-filter-form .form-group {
    margin-bottom: 0; /* Supprimer la marge inférieure */
}
.fiche-filter-form label {
    font-size: 14px; /* Taille de police des labels */
}



/*Module dashboard admin*/

.card {
    margin-bottom: 15px; /* Réduit de 20px à 15px */
}
.chart-container {
    position: relative;
    height: 300px; /* Réduit de 400px à 300px */
    width: 100%;
}
.tab-pane {
    padding: 15px; /* Réduit de 20px à 15px */
}
.sidebar {
    width: 250px;
    background: #4CAF50;
    position: fixed;
    top: 70px;
    bottom: 0;
    left: 0;
    z-index: 999;
    transition: left 0.3s ease;
    padding-top: 20px;
    color: white;
}

.sidebar a {
    color: white;
    padding: 10px 15px;
    display: block;
}
.sidebar a:hover {
    background-color: #495057;
}
.page-content {
    margin-left: 250px;
    padding: 15px; /* Réduit de 20px à 15px */
}
header {
    background-color: #007bff;
    color: white;
    padding: 10px 0;
}
header h1 {
    margin: 0;
}
.nav-tabs .nav-link.active {
    background-color: #007bff;
    color: white;
}
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}
.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}
.dropdown-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar .submenu ul {
    display: none; /* Masquer les sous-menus par défaut */
}

.sidebar .submenu.open ul {
    display: block; /* Afficher les sous-menus quand la classe 'open' est présente */
}

/* Style pour la flèche du menu */
.sidebar .submenu .menu-arrow {
    transition: transform 0.3s ease;
}

.sidebar .submenu.open .menu-arrow {
    transform: rotate(180deg); /* Tourner la flèche quand le sous-menu est ouvert */
}







/* Gestion du layout global */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f6f9;
    margin: 0;
    padding: 0;
}

/* Conteneur principal */
.container-fluid {
    margin: 15px auto;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

/* Titre */
h3.page-title {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Formulaire de filtrage */
#filter-form {
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 10px;
}

/* Ligne principale du formulaire */
#filter-form .row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Groupe de formulaire */
#filter-form .form-group {
    margin-bottom: 0;
}

/* Labels */
#filter-form label {
    font-weight: bold;
    color: #34495e;
    margin-bottom: 2px;
    display: block;
    font-size: 12px;
}

/* Champs de formulaire */
#filter-form select,
#filter-form input[type="text"] {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    height: 28px;
    box-sizing: border-box;
}

/* Boutons */
#filter-form .btn-primary,
#filter-form .btn-outline-primary {
    padding: 5px 10px;
    font-size: 12px;
    height: 28px;
    line-height: 1.5;
    border-radius: 3px;
    min-width: 90px;
    text-align: center;
}

#filter-form .btn-primary {
    background-color: #3498db;
    color: #fff;
    border: none;
    margin-right: 8px;
}

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

#filter-form .btn-outline-primary {
    background-color: #27ae60;
    color: #fff;
    border: none;
    text-decoration: none;
    display: inline-block;
}

#filter-form .btn-outline-primary:hover {
    background-color: #219653;
}

/* Conteneur pour les boutons Rechercher et Exporter */
#filter-form .button-group {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
}

/* Tableau des résultats */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 10px;
}

table {
    width: 100% !important;
    border-collapse: collapse;
    margin-bottom: 10px;
    table-layout: auto;
}

table thead {
    display: table-header-group !important;
    visibility: visible !important;
}

table thead tr {
    display: table-row !important;
}

table thead th {
    padding: 8px !important;
    text-align: left !important;
    border: 1px solid #ddd !important;
    background-color: #3498db !important;
    color: #fff !important;
    font-weight: bold !important;
    display: table-cell !important;
    visibility: visible !important;
    min-height: 30px;
    line-height: 1.4;
    font-size: 12px;
}

table tbody td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
    vertical-align: middle;
    font-size: 12px;
}

table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tbody tr:hover {
    background-color: #f1f1f1;
}

/* Styles pour les actions (voir, modifier, supprimer) */
.btn-sm {
    margin-right: 4px;
    padding: 3px 6px;
    font-size: 11px;
}

.btn-outline-success {
    color: #28a745;
    border-color: #28a745;
}

.btn-outline-success:hover {
    background-color: #28a745;
    color: #fff;
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: #fff;
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: #fff;
}

/* Styles pour les modales */
.modal-content {
    border-radius: 6px;
}

.modal-header {
    background-color: #f4f6f9;
    border-bottom: 1px solid #ddd;
}

.modal-footer {
    border-top: 1px solid #ddd;
}

/* Responsive design */
@media (max-width: 768px) {
    #filter-form .row {
        flex-direction: column;
        gap: 5px;
    }

    #filter-form .col-md-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    #filter-form .button-group {
        justify-content: flex-start;
        flex-direction: column;
        align-items: stretch;
    }

    #filter-form .btn-primary,
    #filter-form .btn-outline-primary {
        width: 100%;
        margin-right: 0;
        margin-bottom: 5px;
    }

    table thead th,
    table tbody td {
        font-size: 11px;
        padding: 6px;
    }
}

@media (max-width: 480px) {
    .container-fluid {
        padding: 8px;
    }

    #filter-form {
        padding: 6px;
    }

    #filter-form select,
    #filter-form input[type="text"],
    #filter-form .btn-primary,
    #filter-form .btn-outline-primary {
        font-size: 11px;
        height: 26px;
        padding: 4px;
    }

    .btn-sm {
        padding: 2px 5px;
        font-size: 10px;
    }
}

/* Surcharge pour DataTables */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 8px;
}

.dataTables_wrapper .dataTables_paginate {
    margin-top: 8px;
}

.dataTables_wrapper table thead th {
    background-color: #3498db !important;
    color: #fff !important;
    border: 1px solid #ddd !important;
}




/* Gestion du layout global */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f6f9;
    margin: 0;
    padding: 0;
}

/* Conteneur principal */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Titre */
h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

/* Formulaire de filtrage */
.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.filter-form .form-group {
    flex: 1 1 200px;
    min-width: 150px;
}

.filter-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #34495e;
}

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

.filter-form button {
    padding: 10px 20px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    align-self: flex-end;
}

.filter-form button:hover {
    background-color: #2980b9;
}

/* Bouton d'exportation CSV */
.btn-export {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    background-color: #27ae60;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.btn-export:hover {
    background-color: #219653;
}

/* Tableau des résultats */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

table th {
    background-color: #3498db;
    color: #fff;
    font-weight: bold;
}

table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tbody tr:hover {
    background-color: #f1f1f1;
}

/* Styles pour les actions (modifier, supprimer) */
.action-links a {
    margin-right: 10px;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 3px;
}

.action-links .edit {
    background-color: #f39c12;
    color: #fff;
}

.action-links .edit:hover {
    background-color: #e67e22;
}

.action-links .delete {
    background-color: #e74c3c;
    color: #fff;
}

.action-links .delete:hover {
    background-color: #c0392b;
}

/* Responsive design */
@media (max-width: 768px) {
    .filter-form {
        flex-direction: column;
    }

    .filter-form .form-group {
        flex: 1 1 100%;
    }

    .filter-form button {
        width: 100%;
        align-self: auto;
    }

    table th,
    table td {
        font-size: 12px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .filter-form .form-group {
        min-width: 100%;
    }

    .btn-export {
        width: 100%;
        text-align: center;
    }
}





body {
    background-color: #F5F5F5; /* Blanc crème */
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/minepia-gestion-1/assets/img/logo.svg');
    background-repeat: repeat;
    background-size: 100px;
    background-position: 0 0;
    opacity: 0.05;
    z-index: -1;
    animation: subtle-move 30s linear infinite;
}

@keyframes subtle-move {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

/* Header */
.header {
    background: #FFFFFF;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-left .logo img {
    margin-right: 10px;
}

.header-left .logo span {
    font-size: 20px;
    font-weight: 700;
    color: #2E7D32; /* Vert forêt */
}

.sidebar-toggle {
    display: none;
    color: #2E7D32;
    font-size: 20px;
    margin-right: 15px;
    cursor: pointer;
}

.header-right .user-info {
    display: flex;
    align-items: center;
}

.header-right .user-info span {
    font-size: 14px;
    color: #424242; /* Gris anthracite */
    margin-right: 15px;
}

.logout-btn {
    color: #D32F2F;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logout-btn i {
    margin-right: 5px;
}



.sidebar-inner {
    padding: 20px 0;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-title {
    padding: 10px 20px;
    font-size: 12px;
    color: #FFFFFF;
    text-transform: uppercase;
    font-weight: 700;
}

.sidebar-menu ul li {
    margin-bottom: 5px;
}

.sidebar-menu ul li a {
    color: #FFFFFF;
    font-size: 14px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: background 0.3s ease;
}

.sidebar-menu ul li a i {
    margin-right: 10px;
    font-size: 16px;
}

.sidebar-menu ul li a:hover, .sidebar-menu ul li a.active {
    background: #0288D1; /* Bleu océan */
}

.submenu ul {
    display: none;
    background: #388E3C; /* Vert plus foncé */
    padding: 10px 0;
}

.submenu ul li a {
    padding-left: 50px;
    font-size: 13px;
}

.submenu.open ul {
    display: block;
}

.menu-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.submenu.open .menu-arrow i {
    transform: rotate(180deg);
}

.badge-danger {
    background: #D32F2F;
    color: #FFFFFF;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

/* Page Wrapper */
.page-wrapper {
    margin-left: 250px;
    padding-top: 70px;
    min-height: calc(100vh - 50px);
    transition: margin-left 0.3s ease;
}

.content {
    padding: 20px;
}

.page-title {
    font-size: 20px;
    color: #2E7D32; /* Vert forêt */
    margin-bottom: 5px;
}

.dash-widget {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.dash-widget-icon {
    font-size: 30px;
    color: #0288D1; /* Bleu océan */
    margin-bottom: 10px;
}

.dash-widget-info h3 {
    font-size: 24px;
    color: #424242; /* Gris anthracite */
    margin-bottom: 5px;
}

.dash-widget-info span {
    font-size: 14px;
    color: #5D4037; /* Brun terre */
}

/* Footer */
.footer {
    background: #E0E0E0;
    padding: 15px 0;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-inner p {
    margin: 0;
    font-size: 14px;
    color: #424242;
}

/* Login Page Styles */
.main-wrapper.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.loginbox {
    display: flex;
    background: #FFFFFF;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease;
    z-index: 1;
}

.loginbox:hover {
    transform: translateY(-5px);
}

.login-left {
    flex: 1;
    background: #2E7D32;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-left img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.login-right {
    flex: 1;
    padding: 40px;
    background: #FFFFFF;
}

.login-right-wrap {
    max-width: 400px;
    margin: 0 auto;
}

.login-right-wrap h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2E7D32;
    margin-bottom: 10px;
    text-align: center;
}

.account-subtitle {
    font-size: 16px;
    color: #424242;
    text-align: center;
    margin-bottom: 20px;
}

.login-right-wrap h2 {
    font-size: 22px;
    font-weight: 500;
    color: #0288D1;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-control {
    border: 1px solid #B0BEC5;
    border-radius: 8px;
    padding: 12px 40px 12px 15px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #0288D1;
    box-shadow: 0 0 5px rgba(2, 136, 209, 0.3);
}

.profile-views {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #5D4037;
    cursor: pointer;
}

.login-danger {
    color: #D32F2F;
}

.forgotpass {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me label {
    font-size: 14px;
    color: #424242;
    display: flex;
    align-items: center;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 1px solid #B0BEC5;
    border-radius: 4px;
    margin-left: 8px;
    position: relative;
}

.checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #0288D1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.custom_check input:checked ~ .checkmark::after {
    display: block;
}

.forgotpass a {
    font-size: 14px;
    color: #0288D1;
    text-decoration: none;
}

.forgotpass a:hover {
    text-decoration: underline;
}

.btn-primary {
    background-color: #0288D1;
    border-color: #0288D1;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #0277BD;
    border-color: #0277BD;
    transform: translateY(-2px);
}

.alert-danger {
    font-size: 14px;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 250px;
        left: -250px;
        transition: left 0.3s ease;
    }
    .sidebar.active {
        left: 0;
    }
    .page-wrapper {
        margin-left: 0;
        transition: margin-left 0.3s ease;
    }
    .sidebar-toggle {
        display: block;
    }
}

/* breacum par défaut */
.breadcrumb-item + .breadcrumb-item::before {
    content: "CENTRE-MINEPIA"; /* Remplacez par le séparateur souhaité (ex: /, >, etc.) */
}