/* Main Styles for Training Management Application */

/* General Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.footer {
    margin-top: auto;
}

/* Dashboard Cards */
.dashboard-card {
    transition: transform 0.3s;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.dashboard-card .card-header {
    border-radius: 10px 10px 0 0;
}

.dashboard-card .card-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    color: #fff;
}

.badge-to-process {
    background-color: #ff9800; /* Orange plus vif */
    color: #000; /* Texte noir pour meilleur contraste */
}

.badge-processed {
    background-color: #00bcd4; /* Bleu clair plus vif */
    color: #000; /* Texte noir pour meilleur contraste */
}

.badge-awaiting-funding {
    background-color: #9c27b0; /* Violet */
    color: #fff; /* Texte blanc */
}

.badge-rejected {
    background-color: #f44336; /* Rouge plus vif */
    color: #fff; /* Texte blanc */
}

.badge-validated {
    background-color: #4caf50; /* Vert plus vif */
    color: #000; /* Texte noir pour meilleur contraste */
}

.badge-in-progress {
    background-color: #2196f3; /* Bleu plus vif */
    color: #fff; /* Texte blanc */
}

.badge-completed {
    background-color: #4caf50; /* Vert plus vif */
    color: #000; /* Texte noir pour meilleur contraste */
}

.badge-abandoned {
    background-color: #f44336; /* Rouge plus vif */
    color: #fff; /* Texte blanc */
}

.badge-postponed {
    background-color: #9e9e9e; /* Gris plus clair */
    color: #000; /* Texte noir pour meilleur contraste */
}

/* Document Cards */
.document-card {
    transition: all 0.3s;
    border-left: 5px solid #dee2e6;
}

.document-card.present {
    border-left-color: #28a745;
}

.document-card.missing {
    border-left-color: #dc3545;
}

.document-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.required-field label:after {
    content: " *";
    color: red;
}

/* Tables */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

/* Pagination */
.page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-card {
        margin-bottom: 20px;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* Progress bars */
.progress {
    height: 10px;
    border-radius: 5px;
}

/* Notifications */
.notification-item {
    border-left: 4px solid #dee2e6;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.notification-item.unread {
    border-left-color: #007bff;
    background-color: rgba(0, 123, 255, 0.05);
}

.notification-item.read {
    opacity: 0.7;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
