/* Styles généraux */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 123, 255, 0.6)), url('../images/tech-background.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.stats-card {
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.stats-card .card-value {
    font-size: 4rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.stats-card .card-title {
    font-size: 1.2rem;
    opacity: 0.9;
}

.blue-card {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
}

.yellow-card {
    background: linear-gradient(135deg, #ffc107, #e5ac00);
}

.cyan-card {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.green-card {
    background: linear-gradient(135deg, #198754, #157347);
}

.recent-tasks {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.recent-tasks .card-header {
    background-color: #0d6efd;
    color: white;
    padding: 1rem;
    border-radius: 8px 8px 0 0;
}

.action-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Badge personnalisé pour préparation de postes */
.bg-purple {
    background-color: #FFDD00 !important; /* Jaune vif */
    color: #000000 !important; /* Texte noir */
    font-weight: 900 !important; /* Extra bold */
    padding: 10px 15px !important;
    border-radius: 4px !important;
    border: 3px solid #000000 !important;
    font-size: 18px !important;
    text-transform: uppercase !important;
    display: inline-block !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
    white-space: nowrap !important;
}

.bg-purple .bi-exclamation-triangle-fill {
    font-size: 1.3rem !important;
    color: #FF0000 !important;
}

.text-purple {
    color: #FF9900 !important;
    font-weight: bold !important;
}

.badge.bg-purple {
    background-color: #FF9900 !important;
    color: #000000 !important;
}

.table tr.preparation-postes {
    background-color: #FFF8E1 !important; /* Fond jaune clair */
    position: relative !important;
    border: 5px solid #FF9900 !important;
    box-shadow: 0 0 10px rgba(255, 153, 0, 0.7) !important;
}

.table tr.preparation-postes td {
    border-color: #FFB74D !important;
    font-weight: bold !important;
    font-size: 16px !important;
}

.table tr.preparation-postes td:first-child {
    border-left: 10px solid #FF9900 !important;
}

/* Add a yellow stripe to the left of the rows to make them even more visible */
.table tr.preparation-postes::before {
    content: "";
    display: block !important;
    position: absolute !important;
    left: -12px !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 12px !important;
    background-color: #FF9900 !important;
}

.footer {
    background-color: #333;
    color: white;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer p {
    margin-bottom: 0;
}

/* Style pour coller le footer en bas */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

.main-content {
    flex: 1 0 auto;
}

footer.bg-dark {
    margin-top: auto;
}

/* Suppression des styles conflictuels */
.container-fluid {
    /* flex: 1 0 auto; */ /* Commenté car redondant */
}

/* Style pour toutes les catégories */
td span.category {
    background-color: #000000;
    color: #FFFFFF;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
    font-size: 14px;
}

/* Style spécifique pour chaque type de catégorie */
td span.category-standard {
    background-color: #333333;
}

td span.category-maintenance {
    background-color: #0066CC;
}

td span.category-reunion {
    background-color: #6600CC;
}

td span.category-formation {
    background-color: #009900;
}

/* BADGES CATÉGORIES - VERSION AMÉLIORÉE AVEC CONTRASTE MAXIMAL */
.badge.bg-purple, 
span.badge.bg-purple {
    background: #FF0000 !important; /* ROUGE VIF */
    color: #FFFFFF !important; /* TEXTE BLANC */
    border: 3px solid #000000 !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    padding: 8px 12px !important;
    border-radius: 5px !important;
    text-transform: uppercase !important;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.7) !important;
    display: inline-block !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.category,
td span.category {
    background: #222222 !important;
    color: #FFFFFF !important;
    font-weight: bold !important;
    padding: 5px 10px !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    display: inline-block !important;
    border: 2px solid #000000 !important;
}

td span.category-standard {
    background-color: #333333 !important;
}

td span.category-maintenance {
    background-color: #0066CC !important;
}

td span.category-reunion {
    background-color: #6600CC !important;
}

td span.category-formation {
    background-color: #009900 !important;
}

/* PRÉPARATION POSTES - LIGNE ENTIÈRE */
.table tr.preparation-postes {
    background-color: #FFE0E0 !important; /* Fond rose pâle */
    border: 3px solid #FF0000 !important;
    position: relative !important;
}

/* Si les badges ne s'affichent pas, utiliser cette classe de secours */
span.preparation-postes {
    background: #FF0000 !important;
    color: #FFFFFF !important;
    padding: 5px 10px !important;
    font-weight: bold !important;
    border-radius: 5px !important;
    display: inline-block !important;
} 