body {
    min-height: 100vh;
    background-color: #f8f9fa;
}

.card {
    border: none;
    border-radius: 10px;
}

.card-body {
    padding: 2rem;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
}

.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.alert {
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-weight: 600;
    color: #0d6efd;
}

.nav-link {
    color: #495057;
    font-weight: 500;
}

.nav-link:hover {
    color: #0d6efd;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.gantt-container {
    margin-top: 2rem;
    padding: 1rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.project-card {
    transition: transform 0.2s;
}

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

.gantt .bar-wrapper[data-type="project"] .bar {
    fill: #0d6efd !important;  /* Bleu Bootstrap */
    stroke: #0a58ca !important;
}

.gantt .bar-wrapper[data-type="project"] .bar-progress {
    fill: #0a58ca !important;
}

.gantt .bar-wrapper[data-type="project"] .bar-label {
    fill: #ffffff !important;
    font-weight: bold;
}

/* Style alternatif pour s'assurer que les projets sont en bleu */
.gantt .bar-wrapper.project-task .bar {
    fill: #0d6efd !important;
    stroke: #0a58ca !important;
}

.gantt .bar-wrapper.project-task .bar-progress {
    fill: #0a58ca !important;
}

.gantt .bar-wrapper.project-task .bar-label {
    fill: #ffffff !important;
    font-weight: bold;
}

/* Assurer que les styles sont appliqués même avec d'autres classes */
.gantt .bar-wrapper[class*="project"] .bar {
    fill: #0d6efd !important;
    stroke: #0a58ca !important;
}

.gantt .bar-wrapper[class*="project"] .bar-progress {
    fill: #0a58ca !important;
}

.gantt .bar-wrapper[class*="project"] .bar-label {
    fill: #ffffff !important;
    font-weight: bold;
}

/* Style pour les tâches de type projet */
.gantt .bar-wrapper[data-type="project"] .bar {
    fill: #0d6efd !important;  /* Bleu Bootstrap */
    stroke: #0a58ca !important;
}

.gantt .bar-wrapper[data-type="project"] .bar-progress {
    fill: #0a58ca !important;
}

.gantt .bar-wrapper[data-type="project"] .bar-label {
    fill: #ffffff !important;
    font-weight: bold;
}

/* Style pour les tâches assignées à 'Projet' */
.gantt .bar-wrapper.projet-assignee .bar {
    fill: #0d6efd !important;  /* Bleu Bootstrap */
    stroke: #0a58ca !important;
}

.gantt .bar-wrapper.projet-assignee .bar-progress {
    fill: #0a58ca !important;
}

.gantt .bar-wrapper.projet-assignee .bar-label {
    fill: #ffffff !important;
    font-weight: bold;
}

/* Styles dynamiques pour les assignees */
.gantt .bar-wrapper[class*="assignee-"] .bar {
    fill: var(--task-fill-color, #ddd) !important;
    stroke: var(--task-stroke-color, #bbb) !important;
}

.gantt .bar-wrapper[class*="assignee-"] .bar-progress {
    fill: var(--task-stroke-color, #bbb) !important;
}

.gantt .bar-wrapper[class*="assignee-"] .bar-label {
    fill: #000000 !important;
}

/* Style pour la légende */
#gantt-legend {
    margin-top: 2rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

#gantt-legend h5 {
    margin-bottom: 1rem;
    color: #495057;
}

#gantt-legend .d-flex {
    gap: 1rem;
    flex-wrap: wrap;
}

#gantt-legend .d-flex > div {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
}

#gantt-legend .color-box {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 3px;
}

/* Masquer la tâche par défaut */
.hidden-task {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

#tasks-info {
    margin-top: 2rem;
    padding: 1rem;
    border-top: 2px solid #dee2e6;
}

#tasks-info h4 {
    color: #495057;
    margin-bottom: 1rem;
}

#tasks-info .table {
    font-size: 0.9rem;
}

#tasks-info .table th {
    background-color: #f8f9fa;
}

#tasks-info .table-responsive {
    margin-bottom: 2rem;
}

/* Styles pour les flèches de dépendance */
.gantt .arrow {
    stroke: #999 !important;
    stroke-width: 1px !important;
    marker-end: url(#arrowhead) !important;
}

.gantt .bar-wrapper {
    position: relative !important;
    overflow: visible !important;
}

/* Ajustement des flèches de dépendance */
.gantt svg .arrow {
    transform: scale(1.2, 1) !important;
    transform-origin: center !important;
}

.gantt .arrow-group {
    transform: translateX(-5px) !important;
}

/* Assurer que les flèches sont bien visibles */
.gantt .arrow-group {
    z-index: 1 !important;
}

/* Styles pour le tableau des statistiques */
.stats-container {
    margin-top: 2rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.stats-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.stats-table th,
.stats-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.stats-table th {
    background-color: #f3f4f6;
    font-weight: 600;
    color: #374151;
    padding: 30px 8px;
    vertical-align: bottom;
    position: relative;
    min-width: 40px;
}

.stats-table th:not(:first-child) {
    height: 140px;
    white-space: nowrap;
}

.stats-table th:not(:first-child) > span {
    transform-origin: bottom left;
    transform: translateX(50%) rotate(-90deg);
    position: absolute;
    bottom: 15px;
    left: 50%;
    display: inline-block;
    width: max-content;
}

.stats-table td:first-child {
    text-align: left;
    font-weight: 500;
    background-color: #f9fafb;
}

.stats-table tr:hover {
    background-color: #f9fafb;
} 