:root {
    --primary-color: #7AC143;
    --secondary-color: #8BC34A;
    --success-color: #7AC143;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #1B2838;
    --dark-color: #1B2838;
    --light-color: #f8f9fa;
    --navy-dark: #1B2838;
    --green-primary: #7AC143;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
}

.brand-link {
    background-color: var(--green-primary) !important;
}

.sidebar-dark-primary {
    background-color: var(--navy-dark) !important;
}

.sidebar-dark-primary .nav-link.active {
    background-color: var(--green-primary) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(122, 193, 67, 0.3);
}

.login-page {
    background-color: var(--navy-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    width: 400px;
}

.login-card-body {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.login-logo {
    margin-bottom: 30px;
}

.login-logo img {
    max-width: 120px;
    margin-bottom: 15px;
}

.btn-primary {
    background-color: var(--green-primary);
    border-color: var(--green-primary);
}

.btn-primary:hover {
    background-color: #6AB02F;
    border-color: #6AB02F;
}

.info-box {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    transition: transform 0.2s;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.info-box-icon {
    border-radius: 8px 0 0 8px;
}

.small-box {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.small-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
}

.card-header {
    background-color: #fff;
    border-bottom: 3px solid var(--green-primary);
    font-weight: 600;
}

.badge-priority-haute {
    background-color: var(--danger-color);
}

.badge-priority-moyenne {
    background-color: var(--warning-color);
}

.badge-priority-faible {
    background-color: var(--info-color);
}

.badge-status-a_faire {
    background-color: #6c757d;
}

.badge-status-en_cours {
    background-color: var(--info-color);
}

.badge-status-termine {
    background-color: var(--success-color);
}

.kanban-board {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
}

.kanban-column {
    flex: 1;
    min-width: 300px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.kanban-column-header {
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.kanban-card {
    background: white;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.task-card {
    border-left: 4px solid var(--primary-color);
}

.task-card.priority-haute {
    border-left-color: var(--danger-color);
}

.task-card.priority-moyenne {
    border-left-color: var(--warning-color);
}

.task-card.priority-faible {
    border-left-color: var(--info-color);
}

.progress-bar {
    background-color: var(--green-primary);
}

.table-hover tbody tr:hover {
    background-color: rgba(122, 193, 67, 0.08);
}

.modal-header {
    background-color: var(--green-primary);
    color: white;
}

.modal-header .close {
    color: white;
}

.fc-event {
    border-radius: 4px;
    border: none;
    padding: 2px 5px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.stats-card {
    background-color: var(--green-primary);
    color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.chart-container {
    position: relative;
    height: 300px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .kanban-board {
        flex-direction: column;
    }
    
    .kanban-column {
        min-width: 100%;
    }
    
    .login-box {
        width: 90%;
        margin: 20px;
    }
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 20px;
}

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

.timeline-marker {
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--green-primary);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--green-primary);
}

.custom-file-label::after {
    content: "Parcourir";
}

.dragging {
    opacity: 0.5;
}

.drag-over {
    background-color: #e3f2fd;
}

.btn-action {
    padding: 5px 10px;
    font-size: 12px;
    margin: 0 2px;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-indicator.active {
    background-color: var(--success-color);
}

.status-indicator.inactive {
    background-color: var(--danger-color);
}

.filter-section {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--green-primary);
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
    margin-top: 5px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: var(--green-primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
