/* =====================================================
   ResiPlan - Dark Theme Ultra-Visible Badges & Elements
   Styles optimisés pour une visibilité maximale en thème sombre

   À inclure dans toutes les pages avec thème sombre:
   <link href="/css/dark-theme-badges-ultra-visible.css" rel="stylesheet">

   Créé: 2025-01-08
   ===================================================== */

/* =====================================================
   MEASURE TYPE BADGES - ULTRA VISIBLE
   Usage: Prevention, Protection, Transfer, Acceptance
   ===================================================== */

.measure-type-badge {
    padding: 0.45rem 0.9rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-prevention {
    background: rgba(40, 167, 69, 0.45) !important;
    color: #9ef0c0 !important;
    border: 3px solid rgba(125, 206, 160, 0.9) !important;
    text-shadow: 0 0 12px rgba(125, 206, 160, 0.9), 0 0 20px rgba(40, 167, 69, 0.5);
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.6), inset 0 0 10px rgba(125, 206, 160, 0.2);
}

.type-protection {
    background: rgba(0, 123, 255, 0.45) !important;
    color: #a8d1ff !important;
    border: 3px solid rgba(128, 189, 255, 0.9) !important;
    text-shadow: 0 0 12px rgba(128, 189, 255, 0.9), 0 0 20px rgba(0, 123, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.6), inset 0 0 10px rgba(128, 189, 255, 0.2);
}

.type-transfer {
    background: rgba(255, 193, 7, 0.45) !important;
    color: #fff4c4 !important;
    border: 3px solid rgba(255, 230, 156, 0.9) !important;
    text-shadow: 0 0 12px rgba(255, 230, 156, 0.9), 0 0 20px rgba(255, 193, 7, 0.5);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.6), inset 0 0 10px rgba(255, 230, 156, 0.2);
}

.type-acceptance {
    background: rgba(173, 181, 189, 0.45) !important;
    color: #f8f9fa !important;
    border: 3px solid rgba(222, 226, 230, 0.9) !important;
    text-shadow: 0 0 12px rgba(222, 226, 230, 0.9), 0 0 20px rgba(173, 181, 189, 0.5);
    box-shadow: 0 0 15px rgba(173, 181, 189, 0.6), inset 0 0 10px rgba(222, 226, 230, 0.2);
}

/* =====================================================
   STATUS BADGES - ULTRA VISIBLE
   Usage: Planned, In Progress, Completed, Cancelled, On Hold
   ===================================================== */

.status-planned {
    background: rgba(173, 181, 189, 0.4) !important;
    color: #f8f9fa !important;
    border: 2px solid rgba(222, 226, 230, 0.8) !important;
    font-weight: 700 !important;
    padding: 0.4rem 0.8rem !important;
    text-shadow: 0 0 10px rgba(222, 226, 230, 0.7);
    box-shadow: 0 0 12px rgba(173, 181, 189, 0.5);
}

.status-inprogress {
    background: rgba(255, 193, 7, 0.4) !important;
    color: #fff4c4 !important;
    border: 2px solid rgba(255, 230, 156, 0.8) !important;
    font-weight: 700 !important;
    padding: 0.4rem 0.8rem !important;
    text-shadow: 0 0 10px rgba(255, 230, 156, 0.8);
    box-shadow: 0 0 12px rgba(255, 193, 7, 0.6);
}

.status-completed {
    background: rgba(40, 167, 69, 0.4) !important;
    color: #9ef0c0 !important;
    border: 2px solid rgba(125, 206, 160, 0.8) !important;
    font-weight: 700 !important;
    padding: 0.4rem 0.8rem !important;
    text-shadow: 0 0 10px rgba(125, 206, 160, 0.8);
    box-shadow: 0 0 12px rgba(40, 167, 69, 0.6);
}

.status-cancelled {
    background: rgba(220, 53, 69, 0.4) !important;
    color: #ffb3ba !important;
    border: 2px solid rgba(255, 136, 145, 0.8) !important;
    font-weight: 700 !important;
    padding: 0.4rem 0.8rem !important;
    text-shadow: 0 0 10px rgba(255, 136, 145, 0.8);
    box-shadow: 0 0 12px rgba(220, 53, 69, 0.6);
}

.status-onhold {
    background: rgba(23, 162, 184, 0.4) !important;
    color: #a8eeff !important;
    border: 2px solid rgba(125, 211, 237, 0.8) !important;
    font-weight: 700 !important;
    padding: 0.4rem 0.8rem !important;
    text-shadow: 0 0 10px rgba(125, 211, 237, 0.8);
    box-shadow: 0 0 12px rgba(23, 162, 184, 0.6);
}

.status-pending {
    background: rgba(108, 117, 125, 0.4) !important;
    color: #e9ecef !important;
    border: 2px solid rgba(173, 181, 189, 0.8) !important;
    font-weight: 700 !important;
    padding: 0.4rem 0.8rem !important;
    text-shadow: 0 0 10px rgba(173, 181, 189, 0.7);
    box-shadow: 0 0 12px rgba(108, 117, 125, 0.5);
}

/* =====================================================
   PRIORITY BADGES - ULTRA VISIBLE
   Usage: Critical, High, Medium, Low
   ===================================================== */

.badge {
    font-weight: 800 !important;
    padding: 0.45rem 0.85rem !important;
    font-size: 0.9rem !important;
    border: 2px solid transparent;
    letter-spacing: 0.3px;
}

.badge.bg-low,
.priority-low {
    background-color: #28a745 !important;
    color: white !important;
    border-color: #5cb85c !important;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.7), 0 0 25px rgba(40, 167, 69, 0.4);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.badge.bg-medium,
.priority-medium {
    background-color: #ffc107 !important;
    color: #1a1a1a !important;
    border-color: #ffdb4d !important;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.8), 0 0 25px rgba(255, 193, 7, 0.5);
    font-weight: 900 !important;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
}

.badge.bg-high,
.priority-high {
    background-color: #fd7e14 !important;
    color: white !important;
    border-color: #ff9f43 !important;
    box-shadow: 0 0 15px rgba(253, 126, 20, 0.7), 0 0 25px rgba(253, 126, 20, 0.4);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.badge.bg-critical,
.priority-critical {
    background-color: #dc3545 !important;
    color: white !important;
    border-color: #ff5a6a !important;
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.8), 0 0 25px rgba(220, 53, 69, 0.5);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.badge.bg-danger {
    background-color: #dc3545 !important;
    color: white !important;
    border-color: #ff5a6a !important;
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.8), 0 0 25px rgba(220, 53, 69, 0.5);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.badge.bg-success {
    background-color: #28a745 !important;
    color: white !important;
    border-color: #5cb85c !important;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.7), 0 0 25px rgba(40, 167, 69, 0.4);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #1a1a1a !important;
    border-color: #ffdb4d !important;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.8), 0 0 25px rgba(255, 193, 7, 0.5);
    font-weight: 900 !important;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
}

.badge.bg-info {
    background-color: #17a2b8 !important;
    color: white !important;
    border-color: #63c5da !important;
    box-shadow: 0 0 15px rgba(23, 162, 184, 0.7), 0 0 25px rgba(23, 162, 184, 0.4);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.badge.bg-dark {
    background-color: #343a40 !important;
    color: #f8f9fa !important;
    border-color: #6c757d !important;
    box-shadow: 0 0 12px rgba(108, 117, 125, 0.5);
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
}

.badge.bg-secondary {
    background-color: #6c757d !important;
    color: white !important;
    border-color: #a8b1ba !important;
    box-shadow: 0 0 12px rgba(108, 117, 125, 0.6);
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

.badge.bg-primary {
    background-color: #667eea !important;
    color: white !important;
    border-color: #8b9aff !important;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.7), 0 0 25px rgba(102, 126, 234, 0.4);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

/* =====================================================
   EFFECTIVENESS STARS - ULTRA VISIBLE
   Usage: ⭐⭐⭐⭐⭐ ratings
   ===================================================== */

.effectiveness-stars,
.rating-stars,
.stars {
    font-size: 1.2rem;
    color: #ffe066 !important;
    text-shadow: 0 0 15px rgba(255, 224, 102, 1), 0 0 25px rgba(255, 193, 7, 0.7);
    filter: brightness(1.5) saturate(1.4);
    display: inline-block;
    letter-spacing: 2px;
}

/* =====================================================
   CARDS & CONTAINERS - DARK THEME
   ===================================================== */

.dark-card,
.measure-card,
.risk-card,
.timeline-item,
.section-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    padding: 1.25rem;
    transition: all 0.2s;
}

.dark-card:hover,
.measure-card:hover,
.risk-card:hover,
.timeline-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* =====================================================
   TEXT COLORS - DARK THEME
   ===================================================== */

.dark-theme-text h1,
.dark-theme-text h2,
.dark-theme-text h3,
.dark-theme-text h4,
.dark-theme-text h5,
.dark-theme-text h6 {
    color: #e9ecef !important;
}

.dark-theme-text p {
    color: #dee2e6 !important;
}

.dark-theme-text .text-muted {
    color: #adb5bd !important;
}

.dark-theme-text ul li,
.dark-theme-text ol li {
    color: #dee2e6 !important;
}

/* =====================================================
   BUTTONS - DARK THEME ENHANCED
   ===================================================== */

.btn {
    font-weight: 500 !important;
}

.btn-outline-primary {
    border-color: #8b9aff !important;
    border-width: 2px !important;
    color: #a8b5ff !important;
    background-color: rgba(102, 126, 234, 0.1) !important;
}

.btn-outline-primary:hover {
    background-color: #667eea !important;
    border-color: #667eea !important;
    color: white !important;
}

.btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.5) !important;
    border-width: 2px !important;
    color: #f8f9fa !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    color: white !important;
}

.btn-outline-danger {
    border-color: #ff6b7a !important;
    border-width: 2px !important;
    color: #ff8891 !important;
    background-color: rgba(220, 53, 69, 0.1) !important;
}

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

.btn-outline-info {
    border-color: #5bc0de !important;
    border-width: 2px !important;
    color: #7dd3ed !important;
    background-color: rgba(23, 162, 184, 0.1) !important;
}

.btn-outline-info:hover {
    background-color: #17a2b8 !important;
    border-color: #17a2b8 !important;
    color: white !important;
}

.btn-sm {
    border-width: 2px !important;
    font-weight: 600 !important;
}

/* =====================================================
   FORMS - DARK THEME
   ===================================================== */

.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #e9ecef !important;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
    color: #e9ecef !important;
}

.form-control::placeholder {
    color: #6c757d !important;
}

.form-select option {
    background-color: #1a1a24 !important;
    color: #e9ecef !important;
}

.form-label {
    font-weight: 500;
    color: #e9ecef !important;
    margin-bottom: 0.5rem;
}

/* =====================================================
   ALERTS - DARK THEME
   ===================================================== */

.alert {
    border-left: 4px solid;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.alert-info {
    border-left-color: #0dcaf0;
    background: rgba(13, 202, 240, 0.15) !important;
}

.alert-info h6,
.alert-info ul,
.alert-info li,
.alert-info p,
.alert-info .small,
.alert-info strong {
    color: #9fdbf0 !important;
}

.alert-warning {
    border-left-color: #ffc107;
    background: rgba(255, 193, 7, 0.15) !important;
}

.alert-warning h6,
.alert-warning ul,
.alert-warning li,
.alert-warning p,
.alert-warning .small,
.alert-warning strong {
    color: #ffe69c !important;
}

.alert-danger {
    border-left-color: #dc3545;
    background: rgba(220, 53, 69, 0.15) !important;
}

.alert-danger h6,
.alert-danger ul,
.alert-danger li,
.alert-danger p,
.alert-danger .small,
.alert-danger strong {
    color: #ff8891 !important;
}

.alert-success {
    border-left-color: #28a745;
    background: rgba(40, 167, 69, 0.15) !important;
}

.alert-success h6,
.alert-success ul,
.alert-success li,
.alert-success p,
.alert-success .small,
.alert-success strong {
    color: #7dcea0 !important;
}

/* =====================================================
   NAVIGATION - DARK THEME
   ===================================================== */

.nav-pills .nav-link {
    color: #dee2e6 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-pills .nav-link:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

.nav-pills .nav-link.active {
    background-color: #667eea !important;
    color: white !important;
    border-color: #667eea;
}

/* =====================================================
   MODALS - DARK THEME
   ===================================================== */

.modal-content {
    background: rgba(30, 30, 40, 1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-body {
    background: rgba(30, 30, 40, 1) !important;
}

.modal-footer {
    background: rgba(30, 30, 40, 1) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    color: white !important;
}

.modal-body .form-label,
.modal-body label {
    color: #e9ecef !important;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.btn-close-white {
    filter: none;
}

/* =====================================================
   PROGRESS BARS - DARK THEME
   ===================================================== */

.progress-bar-custom {
    height: 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1) !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.progress-bar-custom .progress-bar {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 24px;
    transition: width 0.6s ease;
    color: white !important;
}

/* =====================================================
   UTILITIES
   ===================================================== */

.dark-bg-primary {
    background: rgba(255, 255, 255, 0.05) !important;
}

.dark-bg-secondary {
    background: rgba(255, 255, 255, 0.03) !important;
}

.dark-border {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.dark-border-strong {
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.glow-effect {
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

.glow-effect-success {
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.5);
}

.glow-effect-danger {
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.5);
}

.glow-effect-warning {
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
}

.glow-effect-info {
    box-shadow: 0 0 15px rgba(23, 162, 184, 0.5);
}
