/* Styles pour le formulaire de projet */
.input-group .form-select {
    flex: 1;
}

.input-group .btn {
    flex-shrink: 0;
}

/* Styles pour Select2 */
.select2-container {
    width: 100% !important;
}

/* Styles pour les boutons d'action */
.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

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

/* Style pour les barres de statut sur le dashboard */
.status-distribution .progress {
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.status-distribution .progress-bar {
    transition: width 0.6s ease;
}

.status-distribution .status-item {
    padding: 5px 0;
}

/* Project List Styles */
.project-container {
    max-width: 1300px;
    margin: 0 auto;
}

/* Project Header */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.project-title h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.project-count {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Filter Panel */
.filter-panel {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    cursor: pointer;
}

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

.btn-icon {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.btn-icon:hover {
    background-color: rgba(0,0,0,0.05);
}

.btn-icon i {
    transition: transform 0.3s ease;
}

.btn-icon i.bi-chevron-up {
    transform: rotate(180deg);
}

.filter-body {
    padding: 1.25rem;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    max-height: 1000px;
}

.filter-body.hidden {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    border-width: 0;
    opacity: 0;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.filter-col {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
}

.status-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.status-option {
    display: flex;
    align-items: center;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.status-option input[type="radio"] {
    margin-right: 0.375rem;
}

.search-input {
    position: relative;
}

.search-input i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.search-input input {
    width: 100%;
    padding: 0.375rem 0.75rem 0.375rem 2rem;
    font-size: 0.875rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.filter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e9ecef;
    padding-top: 1.25rem;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-options label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 0.375rem;
    color: #495057;
}

.sort-options select {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background-color: #fff;
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
}

/* Project Card */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease-in-out;
    transform-origin: center top;
}

.project-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.card-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-left: 3px solid #0d6efd;
}

.card-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.3px;
}

.card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0.75rem;
}

.badge {
    display: inline-block;
    padding: 0.4em 0.7em;
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge.country {
    background-color: #17a2b8;
    color: white;
}

.badge.leader {
    background-color: #6f42c1;
    color: white;
    min-width: 48px;
    text-align: center;
    display: inline-block;
}

.badge.status {
    background-color: #6c757d;
    color: white;
    min-width: 105px;
    text-align: center;
    display: inline-block;
}

.badge.status-active {
    background-color: #6c757d;
    font-weight: 600;
}

.badge.status-pre-tender,
.badge.status-tender {
    background-color: #6c757d;
    font-weight: 600;
}

.badge.status-in-progress {
    background-color: #6c757d;
    font-weight: 600;
}

.badge.status-completed {
    background-color: #6c757d;
    font-weight: 600;
}

.badge.status-lost {
    background-color: #6c757d;
    font-weight: 600;
}

.card-toggle {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.card-toggle:hover {
    background-color: rgba(0,0,0,0.05);
}

.card-body {
    padding: 1.25rem;
}

.card-body.hidden {
    display: none !important;
}

.card-body:not(.hidden) {
    display: block !important;
    height: auto !important;
    min-height: 100px !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.card-details {
    margin-top: 1rem;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.detail-item {
    margin-bottom: 0.5rem;
}

.detail-label {
    font-weight: 500;
    color: #495057;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-weight: 400;
    color: #212529;
    font-size: 0.95rem;
}

.detail-item.description {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
}

/* Project Tabs */
.project-tabs {
    margin-top: 1.5rem;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.tab-btn {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 0.9rem;
    color: #6c757d;
    cursor: pointer;
    font-weight: 500;
}

.tab-btn.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
    font-weight: 700;
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 50%;
    font-size: 0.75rem;
    margin-left: 0.375rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, 
.data-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.data-table th {
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    background-color: #f1f3f5;
    color: #495057;
}

.data-table td {
    font-size: 0.9rem;
}

.data-table tbody tr:hover {
    background-color: rgba(0,0,0,0.03);
}

.status-pill {
    display: inline-block;
    padding: 0.35em 0.6em;
    font-size: 0.75em;
    font-weight: 500;
    color: #fff;
    border-radius: 10rem;
}

.status-pill.done,
.status-pill.completed {
    background-color: #198754;
}

.status-pill.to-do,
.status-pill.pending {
    background-color: #fd7e14;
}

.priority-pill {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: 500;
    color: #fff;
    border-radius: 10rem;
}

.priority-pill.high {
    background-color: #dc3545;
}

.priority-pill.medium {
    background-color: #fd7e14;
}

.priority-pill.normal,
.priority-pill.low {
    background-color: #0dcaf0;
}

/* Companies Tab */
.companies-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.company-item {
    margin-bottom: 0.5rem;
}

.company-label {
    font-weight: 600;
    color: #6c757d;
    margin-right: 0.5rem;
}

.company-value {
    color: #212529;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    margin: 1.5rem 0;
}

.empty-icon {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.empty-message {
    text-align: center;
    color: #6c757d;
    padding: 1.5rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .filter-row {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .filter-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .sort-options {
        flex-wrap: wrap;
    }
    
    .filter-buttons {
        width: 100%;
        justify-content: flex-end;
    }
    
    .details-grid,
    .companies-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .card-header {
        flex-wrap: wrap;
    }
    
    .card-title {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .card-badges {
        margin-left: 0;
        margin-right: auto;
    }
    
    .card-actions {
        flex-wrap: wrap;
    }
    
    .tabs-nav {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.5rem;
    }
}

/* Style spécifique pour l'icône */
.card-toggle i.bi-chevron-up {
    transform: rotate(180deg);
    transition: transform 0.3s;
}

.card-toggle i.bi-chevron-down {
    transform: rotate(0deg);
    transition: transform 0.3s;
}

/* Amélioration du contraste des tableaux */
.data-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    background-color: #f1f3f5;
    color: #495057;
}

.data-table td {
    font-size: 0.9rem;
}

/* Onglets */
.tab-btn {
    font-weight: 500;
    font-size: 0.9rem;
}

.tab-btn.active {
    font-weight: 700;
}

/* Dates et valeurs numériques */
.project-card [class*="due-date"],
.project-card [class*="date"],
.project-card [class*="turnover"],
.project-card [class*="budget"] {
    font-family: 'Roboto Mono', monospace, sans-serif;
    font-size: 0.9rem;
}

/* Hierarchie visuelle des projets */
.project-header {
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 2rem;
}

.card-header {
    background-color: #f8f9fa;
    border-left: 3px solid #0d6efd;
}


/* Augmenter le contraste pour l'info principale */
.card-title, 
.detail-item:first-child .detail-value, 
.detail-item:nth-child(5) .detail-value {
    font-weight: 600;
    color: #000;
}

/* Ajouter une fonte web pour meilleure lisibilité */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Meilleure lisibilité dans les descriptions */
.detail-item.description .detail-value {
    line-height: 1.5;
    white-space: pre-line;
}

/* Styles pour la page Action List */

/* En-têtes et titres */
.container-fluid h1 {
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.75rem;
}

.card-header h5, .card-header h6 {
    font-weight: 600;
    letter-spacing: -0.3px;
}

/* Panneaux des catégories d'actions */
.card {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    margin-bottom: 2rem;
    overflow: hidden;
}

/* Panneau de filtres */
.card .card-header.bg-light {
    background-color: #f8f9fa !important;
    border-left: 3px solid #0d6efd;
}

/* En-tête des actions en retard */
.bg-light.p-3 .text-danger {
    font-weight: 600;
    display: flex;
    align-items: center;
}

.bg-light.p-3 .text-danger i {
    margin-right: 0.5rem;
}

/* En-tête des actions à venir */
.bg-light.p-3 .text-primary {
    font-weight: 600;
    display: flex;
    align-items: center;
}

/* Tableau des actions */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    background-color: #f1f3f5;
    color: #495057;
    padding: 0.75rem 1rem;
}

.table td {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    vertical-align: middle;
}

/* Style des lignes */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-danger {
    background-color: rgba(220, 53, 69, 0.05) !important;
}

.table-success {
    background-color: rgba(25, 135, 84, 0.05) !important;
}

/* Style des badges */
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.4em 0.7em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

/* Badges de priorité */
.badge.bg-danger {
    background-color: #dc3545 !important;
    margin-left: 10px;
}

.badge.bg-warning {
    background-color: #fd7e14 !important;
    color: white !important;
}

.badge.bg-info {
    background-color: #0dcaf0 !important;
}

/* Badges de nombre */
.card-header .badge {
    font-size: 0.8rem;
    padding: 0.4em 0.8em;
}

/* Liens dans le tableau */
.table td a {
    font-weight: 500;
    color: #0d6efd;
    text-decoration: none;
}

.table td a:hover {
    text-decoration: underline;
}

/* Groupe de boutons d'action */
.btn-group {
    display: flex;
    gap: 0.25rem;
}

.btn-group .btn {
    border-radius: 4px !important;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

/* Style des boutons */
.btn-outline-primary {
    border-color: #0d6efd;
    color: #0d6efd;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
}

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

.btn-outline-success:hover {
    background-color: #198754;
    color: white;
}

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

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

/* Style des formulaires de filtre */
.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-select, .form-control {
    font-size: 0.9rem;
    padding: 0.375rem 0.75rem;
    border-color: #ced4da;
    border-radius: 0.25rem;
}

/* Pagination */
.pagination .page-link {
    color: #0d6efd;
    background-color: #fff;
    border-color: #dee2e6;
    font-size: 0.85rem;
}

.pagination .active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
    font-weight: 600;
}

.pagination .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Modal d'édition */
.modal-title {
    font-weight: 600;
    letter-spacing: -0.3px;
}

/* Message vide */
td.text-center {
    font-style: italic;
    color: #6c757d;
    padding: 1.5rem !important;
}

/* Media queries pour la responsivité */
@media (max-width: 768px) {
    .table-responsive {
        border: none;
    }
    
    .btn-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .form-select, .form-control {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Styles pour la section de filtre des sociétés */
.filter-body {
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    max-height: 1000px;
}

.filter-body.hidden {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    border-width: 0;
    opacity: 0;
}

.btn-icon {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.btn-icon:hover {
    background-color: rgba(0,0,0,0.05);
}

.btn-icon i {
    transition: transform 0.3s ease;
}

.btn-icon i.bi-chevron-up {
    transform: rotate(180deg);
}

/* Amélioration de l'apparence des filtres de société */
#filterForm .form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
}

#filterForm .form-select,
#filterForm .form-control {
    font-size: 0.9rem;
}

/* Badge indiquant le nombre de résultats */
.result-count {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
}

.result-count i {
    margin-right: 0.5rem;
}

/* Dashboard Styling */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-section {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.section-header {
    padding: 12px 20px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.section-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    text-transform: capitalize;
}

.section-content {
    padding: 25px;
}

/* Style moderne pour la section Key Numbers */
.key-numbers-section {
    padding: 2rem 0;
    font-family: 'Montserrat', sans-serif;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    font-style: italic;
    color: #333;
    padding: 0.75rem 1.5rem;
    background-color: #f5f5f5;
    border-left: 4px solid #000;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.key-numbers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.key-number-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.key-number-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.number-content {
    display: flex;
    flex-direction: column;
}

.number-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #474747;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.number-label {
    font-size: 0.9rem;
    color: #777;
    font-weight: 500;
}

.number-icon {
    background-color: rgba(0,0,0,0.05);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.number-icon i {
    font-size: 1.5rem;
    color: #555;
}

/* Variations de couleurs */
.key-number-card.highlight {
    border-bottom-color: #4c6ef5;
}

.key-number-card.highlight .number-value {
    color: #4c6ef5;
}

.key-number-card.highlight .number-icon {
    background-color: rgba(76, 110, 245, 0.1);
}

.key-number-card.highlight .number-icon i {
    color: #4c6ef5;
}

.key-number-card.alert {
    border-bottom-color: #fa5252;
}

.key-number-card.alert .number-value {
    color: #fa5252;
}

.key-number-card.alert .number-icon {
    background-color: rgba(250, 82, 82, 0.1);
}

.key-number-card.alert .number-icon i {
    color: #fa5252;
}

.key-number-card.success {
    border-bottom-color: #40c057;
}

.key-number-card.success .number-value {
    color: #40c057;
}

.key-number-card.success .number-icon {
    background-color: rgba(64, 192, 87, 0.1);
}

.key-number-card.success .number-icon i {
    color: #40c057;
}

/* Responsive design */
@media (max-width: 992px) {
    .key-numbers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .key-numbers-grid {
        grid-template-columns: 1fr;
    }
    
    .number-value {
        font-size: 2rem;
    }
}

/* Sales Leader Cards */
.sales-leader-card {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    height: 100%;
    background-color: #f9f9f9;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sales-leader-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.leader-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.leader-id {
    font-weight: normal;
    color: #666;
    font-size: 14px;
}

.leader-stats {
    font-size: 14px;
}

.stat-item {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.stat-label {
    color: #666;
    margin-right: 5px;
}

.stat-value {
    font-weight: 600;
    color: #333;
}

/* History Timeline */
.history-timeline {
    position: relative;
    max-height: 400px;
    overflow-y: auto;
}

.history-timeline:before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e0e0e0;
}

.history-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 20px;
}

.history-item:before {
    content: '';
    position: absolute;
    left: 13px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #0d6efd;
    border: 2px solid #fff;
    z-index: 1;
}

.history-date {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.history-content {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px 15px;
}

.history-title {
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.history-title i {
    margin-right: 8px;
    color: #0d6efd;
}

.history-description {
    font-size: 14px;
    color: #666;
}

/* Pour que le dashboard soit responsive */
@media (max-width: 768px) {
    .key-number .number {
        font-size: 24px;
    }
    
    .key-number .label {
        font-size: 12px;
    }
    
    .section-content {
        padding: 15px;
    }
}

/* Styles pour les groupes de projets */
.project-group {
    margin-bottom: 2rem;
}

.group-header {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    border-left: 4px solid #0d6efd;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.group-header span {
    font-size: 1rem;
    color: #6c757d;
    font-weight: normal;
}

.filter-highlight {
    animation: highlight 1s ease;
}

@keyframes highlight {
    0% { background-color: rgba(13, 110, 253, 0.1); }
    100% { background-color: transparent; }
}

.btn-skew {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: black;
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    transform: skew(-20deg);
    margin-right: 10px;
    border: 2px solid black;
    transition: all 0.3s ease;
}

.btn-skew span {
    display: inline-block;
    transform: skew(20deg); /* Pour redresser le texte */
}

.btn-skew-reset span {
    display: inline-block;
    transform: skew(20deg);
}

.btn-skew:hover {
    background-color: white;
    color: black;
}

.btn-skew-reset:hover {
    background-color: #000000;
    border-color: #ffffff;
    color: white;
}

.btn-skew-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    padding: 10px 25px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    transform: skew(-20deg);
    margin-right: 10px;
    border: 2px solid black;
    transition: all 0.3s ease;
    border-radius: inherit;
}

/* Styles pour la nouvelle navbar - Couleurs inversées, Montserrat et plus fin */
.navbar {
    padding: 15px 50px;
    background-color: black;
    box-shadow: 0 2px 4px rgba(255,255,255,0.1);
    font-family: 'Montserrat', sans-serif;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.8px;
    color: white;
    font-style: italic;
}

.navbar-nav {
    gap: 10px;
    align-items: center;
}

.nav-item.separator {
    color: #888;
    font-size: 1.1rem;
    transform: rotate(15deg);
    margin: 0 2px;
    line-height: 1;
    font-weight: 300;
}

.nav-link {
    color: #ccc;
    position: relative;
    padding: 5px 3px;
    font-weight: 400; /* Plus fin */
    transition: color 0.3s ease, font-size 0.3s ease;
    font-size: 1rem; /* Plus fin */
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: white;
}

.nav-link.active {
    color: white;
    font-weight: 600; /* Moins gras pour un look plus fin */
    font-size: 1.15rem; /* Moins grand pour un look plus fin */
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px; /* Ligne plus fine */
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .navbar-nav {
        gap: 5px;
        padding-top: 15px;
    }
    
    .nav-item.separator {
        display: none; /* Cacher les séparateurs sur mobile */
    }
    
    .nav-link.active {
        font-size: 1.1rem;
    }
}

/* Styles pour la liste d'actions */
.actions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-card {
    position: relative;
    background: white;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    padding: 15px 20px;
    border-left: 4px solid transparent;
}

.action-card.overdue {
    border-left-color: #dc3545;  /* Rouge pour les actions en retard */
}

.action-card.todo {
    border-left-color: #0d6efd;  /* Bleu pour les actions à faire */
}

.action-card.done {
    border-left-color: #198754;  /* Vert pour les actions terminées */
}

/* Style pour le texte de l'action */
.action-description {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

/* Style pour la date d'échéance */
.due-date {
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Style pour le compteur d'actions en retard */
.count-badge {
    background-color: #dc3545;
    color: white;
    font-size: 0.9rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* Style pour l'en-tête de section */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8f9fa;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-left: 4px solid transparent;
}

.section-header.overdue {
    border-left-color: #dc3545;
}

.section-header.todo {
    border-left-color: #0d6efd;
}

.section-header.done {
    border-left-color: #198754;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.1rem;
    color: #444;
    margin: 0 0 15px 0;
    padding: 10px 15px;
    background-color: #f5f5f5;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.section-title.overdue::before {
    background-color: #dc3545; /* Rouge pour les actions en retard */
}

.section-title.todo::before {
    background-color: #0d6efd; /* Bleu pour les actions à faire */
}

.section-title.done::before {
    background-color: #198754; /* Vert pour les actions terminées */
}

.section-title.key-numbers::before {
    background-color: #000; /* Noir pour les chiffres clés */
}

/* Style pour le badge de compteur */
.count-badge {
    background-color: #dc3545;
    color: white;
    font-size: 0.9rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* Structure pour les actions */
.actions-container {
    margin-bottom: 30px;
}

.action-item {
    display: flex;
    margin-bottom: 15px;
    background-color: #fff;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
}

.action-border {
    width: 4px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
}

.action-border.overdue {
    background-color: #dc3545;
}

.action-border.todo {
    background-color: #0d6efd;
}

.action-border.done {
    background-color: #198754;
}

.action-content {
    flex: 1;
    padding: 15px;
    padding-left: 20px;
    margin-left: 4px; /* Espace pour la bordure */
}

.action-description {
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
}

.action-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.action-due {
    color: #666;
    font-size: 0.9rem;
}

.due-label {
    font-weight: 600;
}

.action-tags {
    display: flex;
    gap: 5px;
}

.project-tag {
    background-color: #6c757d;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.status-tag {
    background-color: #0d6efd;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.assigned-tag {
    background-color: #17a2b8;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.action-buttons button {
    border: 1px solid #dee2e6;
    background: white;
    color: #6c757d;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit:hover {
    color: #0d6efd;
    border-color: #0d6efd;
}

.btn-complete:hover {
    color: #198754;
    border-color: #198754;
}

.btn-delete:hover {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-skew.micro {
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
}

.project-card .card-body {
    transition: max-height 0.5s ease-out, opacity 0.4s ease-in-out, padding 0.3s ease-out !important;
    overflow: hidden !important;
    max-height: 2000px !important;
    opacity: 1 !important;
    display: block !important;
    padding: 1.25rem !important;
}

.project-card .card-body.hidden {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    opacity: 0 !important;
    border-width: 0 !important;
    cursor: pointer;
}

/* Animation de la flèche dans les projets */
.project-card .card-header i.bi {
    transition: transform 0.3s ease;
    display: inline-block;
}

.project-card .card-header i.bi-chevron-up {
    transform: rotate(180deg);
}

.card-clickable-area {
    cursor: pointer;
}
