:root {
    --primary-color: #ff5722;
    --primary-hover: #ff7043;
    --red-color: #e53935;
    --secondary-color: #aaa;
    --success-color: #ff7043;
    --danger-color: #e53935;
    --warning-color: #ff8a65;
    --info-color: #ff5722;
    --dark-color: #0a0a0a;
    --light-color: #1a1a1a;
    --text-color: #ffffff;
    --text-muted: #aaa;
    --border-color: rgba(255, 87, 34, 0.2);
    --sidebar-width: 220px;
    --bs-primary: #ff5722;
    --bs-primary-rgb: 255, 87, 34;
    --bs-success: #ff7043;
    --bs-success-rgb: 255, 112, 67;
    --bs-info: #ff5722;
    --bs-info-rgb: 255, 87, 34;
    --bs-warning: #ff8a65;
    --bs-warning-rgb: 255, 138, 101;
    --bs-danger: #e53935;
    --bs-danger-rgb: 229, 57, 53;
}

.bg-primary { background-color: #ff5722 !important; }
.bg-success { background-color: #ff7043 !important; }
.bg-info { background-color: #ff5722 !important; }
.bg-warning { background-color: #ff8a65 !important; }
.bg-danger { background-color: #e53935 !important; }
.bg-light { background-color: #1a1a1a !important; }
.bg-white { background-color: #1a1a1a !important; }
.bg-secondary { background-color: #2a2a2a !important; }
.text-primary { color: #ff5722 !important; }
.text-success { color: #ff7043 !important; }
.text-info { color: #ff5722 !important; }
.text-warning { color: #ff8a65 !important; }
.text-danger { color: #e53935 !important; }
.text-dark { color: #ffffff !important; }
.btn-primary { background-color: #ff5722 !important; border-color: #ff5722 !important; }
.btn-primary:hover { background-color: #ff7043 !important; border-color: #ff7043 !important; }
.btn-outline-primary { color: #ff5722 !important; border-color: #ff5722 !important; }
.btn-outline-primary:hover { background-color: #ff5722 !important; color: white !important; }
.btn-success { background-color: #ff7043 !important; border-color: #ff7043 !important; }
.btn-info { background-color: #ff5722 !important; border-color: #ff5722 !important; }
.btn-light { background-color: #2a2a2a !important; border-color: #3a3a3a !important; color: white !important; }
.btn-light:hover { background-color: #3a3a3a !important; }

.form-control, .form-select, .input-group-text {
    background-color: #1a1a1a !important;
    border-color: rgba(255, 87, 34, 0.2) !important;
    color: white !important;
}

.form-control:focus, .form-select:focus {
    background-color: #1a1a1a !important;
    border-color: #ff5722 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 87, 34, 0.25) !important;
    color: white !important;
}

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

select.form-select option,
select.form-control option,
select option {
    background-color: #1a1a1a;
    color: #fff;
}

select.form-select option:checked,
select.form-control option:checked,
select option:checked {
    background-color: #2a6cf0;
    color: #fff;
}

.dropdown-menu {
    background-color: #1a1a1a !important;
    border: 1px solid rgba(255, 87, 34, 0.2) !important;
}

.dropdown-item {
    color: #aaa !important;
}

.dropdown-item:hover {
    background-color: rgba(255, 87, 34, 0.1) !important;
    color: #ff5722 !important;
}

.modal-content {
    background-color: #1a1a1a !important;
    border: 1px solid rgba(255, 87, 34, 0.2) !important;
}

.modal-header, .modal-footer {
    border-color: rgba(255, 87, 34, 0.1) !important;
}

.list-group-item {
    background-color: transparent !important;
    border-color: rgba(255, 87, 34, 0.1) !important;
    color: white !important;
}

.list-group-item:hover {
    background-color: rgba(255, 87, 34, 0.1) !important;
}

.card-footer {
    background-color: rgba(0, 0, 0, 0.2) !important;
    border-top: 1px solid rgba(255, 87, 34, 0.1) !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    color: var(--text-color);
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
    z-index: 1000;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.sidebar-header {
    padding: 16px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1px;
    color: white;
}

.sidebar-header small {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sidebar-menu {
    padding: 10px 0;
    overflow-y: auto;
    max-height: calc(100vh - 80px);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 0.78rem;
    font-weight: 500;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 87, 34, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-menu a i {
    margin-right: 10px;
    width: 18px;
    text-align: center;
    font-size: 0.82rem;
}

.sidebar-menu .submenu {
    display: none;
    padding-left: 0;
    background: rgba(0,0,0,0.2);
    border-left: 2px solid rgba(255,87,34,0.3);
    margin-left: 12px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.sidebar-menu .submenu.show {
    display: block;
}
.sidebar-menu .submenu a {
    padding: 6px 14px 6px 14px;
    font-size: 0.74rem;
    border-left: none;
}
.sidebar-menu .submenu a i {
    font-size: 0.72rem;
    width: 16px;
}

.sidebar-menu a.special-menu {
    background: transparent !important;
    border-radius: 6px;
    margin: 3px 0;
    transition: all 0.3s ease;
}

.sidebar-menu a.special-menu:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.sidebar-menu a.special-menu .red-text {
    color: #e53935 !important;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(229, 57, 53, 0.5);
}

.sidebar-menu a.special-menu .glow-icon {
    color: #ffffff !important;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
    animation: iconGlow 2s ease-in-out infinite alternate;
}

.sidebar-menu a.special-menu .green-text {
    color: #4caf50 !important;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.sidebar-menu a.special-menu .glow-icon-green {
    color: #4caf50 !important;
    filter: drop-shadow(0 0 8px rgba(76, 175, 80, 0.8)) drop-shadow(0 0 15px rgba(76, 175, 80, 0.6));
    animation: iconGlowGreen 2s ease-in-out infinite alternate;
}

@keyframes iconGlowGreen {
    from {
        filter: drop-shadow(0 0 5px rgba(76, 175, 80, 0.6)) drop-shadow(0 0 10px rgba(76, 175, 80, 0.4));
    }
    to {
        filter: drop-shadow(0 0 10px rgba(76, 175, 80, 0.9)) drop-shadow(0 0 20px rgba(76, 175, 80, 0.7));
    }
}

.sidebar-menu a.tree-menu:hover,
.sidebar-menu a.tree-menu.active {
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.2), transparent) !important;
    border-left: 3px solid #4caf50 !important;
}

@keyframes iconGlow {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
    }
    100% {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.7));
    }
}

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-navbar {
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.02em;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    text-align: right;
}

.user-info .name {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.user-info .role {
    font-size: 0.75rem;
    color: var(--primary-color);
}

.content-wrapper {
    padding: 30px;
    flex: 1;
}

.stat-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.6) 0%, rgba(10, 10, 10, 0.4) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.15);
    border-color: var(--primary-color);
}

.stat-card .icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.stat-card .icon.primary { background: rgba(255, 87, 34, 0.2); color: #ff5722; }
.stat-card .icon.success { background: rgba(255, 112, 67, 0.2); color: #ff7043; }
.stat-card .icon.warning { background: rgba(229, 57, 53, 0.2); color: #e53935; }
.stat-card .icon.danger { background: rgba(183, 28, 28, 0.2); color: #b71c1c; }
.stat-card .icon.info { background: rgba(255, 138, 101, 0.2); color: #ff8a65; }

.stat-card .value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.stat-card .label {
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 5px;
}

.text-white {
    color: #ffffff !important;
}

.text-orange {
    color: #ff5722 !important;
}

.text-red {
    color: #e53935 !important;
}

.card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.6) 0%, rgba(10, 10, 10, 0.4) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    backdrop-filter: blur(20px);
}

.card-header {
    background: rgba(255, 87, 34, 0.03);
    border-bottom: 1px solid rgba(255, 87, 34, 0.15);
    padding: 18px 22px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
}

.card-body {
    padding: 25px;
}

.missions-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.8) 0%, rgba(15, 15, 15, 0.9) 100%);
    border: 1px solid rgba(255, 87, 34, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 87, 34, 0.1);
    overflow: hidden;
}

.missions-card .card-header {
    background: linear-gradient(90deg, rgba(255, 87, 34, 0.08) 0%, transparent 100%);
    border-left: 3px solid #ff5722;
}

.missions-card .card-body {
    padding: 0;
}

.table-dark-custom {
    background: transparent !important;
}

.table-dark-custom thead {
    background: rgba(0, 0, 0, 0.3);
}

.table-dark-custom tbody tr {
    background: transparent;
    border-left: 3px solid transparent;
}

.table-dark-custom tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.01);
}

.table-dark-custom tbody tr:hover {
    border-left-color: #ff5722;
    background: linear-gradient(90deg, rgba(255, 87, 34, 0.12) 0%, rgba(255, 87, 34, 0.03) 100%) !important;
}

.table {
    margin-bottom: 0;
    color: var(--text-color);
    background: transparent !important;
    background-color: transparent !important;
}

.table, .table thead, .table tbody, .table tr, .table th, .table td {
    background-color: #0a0a0a !important;
    background: #0a0a0a !important;
}

.card .card-body {
    background: #0a0a0a !important;
}

.missions-card .card-body,
.missions-card .table,
.missions-card .table tbody,
.missions-card .table tr,
.missions-card .table td {
    background: #0a0a0a !important;
    background-color: #0a0a0a !important;
}

.table th {
    border-top: none;
    border-bottom: 1px solid rgba(255, 87, 34, 0.15);
    font-weight: 600;
    color: #ff8a65;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 12px 18px;
    background: rgba(255, 87, 34, 0.05);
}

.table td {
    padding: 14px 18px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

.table tbody tr {
    transition: all 0.25s ease;
}

.table tbody tr:hover {
    background: linear-gradient(90deg, rgba(255, 87, 34, 0.1) 0%, rgba(255, 87, 34, 0.05) 100%);
    transform: translateX(4px);
}

.table tbody tr:hover td {
    color: #fff;
}

.table a {
    color: #ff5722;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.table a:hover {
    color: #ff7043;
    text-shadow: 0 0 8px rgba(255, 87, 34, 0.4);
}

.badge-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    background-color: #0a0a0a !important;
}

.badge-status:hover {
    transform: scale(1.05);
}

span.badge.badge-status.badge-brouillon { 
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(230,230,230,0.9) 100%) !important; 
    color: #666 !important; 
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,1) !important;
}
span.badge.badge-status.badge-upload { 
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,220,200,0.9) 100%) !important; 
    color: #ff5722 !important; 
    border: none !important;
    box-shadow: 0 2px 8px rgba(255,87,34,0.3), inset 0 1px 0 rgba(255,255,255,1) !important;
}
span.badge.badge-status.badge-pretraitement { 
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,230,210,0.9) 100%) !important; 
    color: #ff8a65 !important; 
    border: none !important;
    box-shadow: 0 2px 8px rgba(255,138,101,0.3), inset 0 1px 0 rgba(255,255,255,1) !important;
}
span.badge.badge-status.badge-analyse_ia { 
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(200,240,200,0.9) 100%) !important; 
    color: #2e7d32 !important; 
    border: none !important;
    box-shadow: 0 2px 8px rgba(76,175,80,0.3), inset 0 1px 0 rgba(255,255,255,1) !important;
}
span.badge.badge-status.badge-rapport { 
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,220,200,0.9) 100%) !important; 
    color: #ff5722 !important; 
    border: none !important;
    box-shadow: 0 2px 8px rgba(255,87,34,0.3), inset 0 1px 0 rgba(255,255,255,1) !important;
}
span.badge.badge-status.badge-termine { 
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(200,240,200,0.9) 100%) !important; 
    color: #2e7d32 !important; 
    border: none !important;
    box-shadow: 0 2px 8px rgba(76,175,80,0.3), inset 0 1px 0 rgba(255,255,255,1) !important;
}
span.badge.badge-status.badge-annule { 
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,200,200,0.9) 100%) !important; 
    color: #c62828 !important; 
    border: none !important;
    box-shadow: 0 2px 8px rgba(229,57,53,0.3), inset 0 1px 0 rgba(255,255,255,1) !important;
}

span.badge.badge-status:hover {
    transform: scale(1.08) translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,1) !important;
}

.table td:last-child {
    color: #ffffff !important;
    font-weight: 500;
}

.badge-critique { background: rgba(244, 67, 54, 0.3); color: #ff6b6b; }
.badge-majeur { background: rgba(255, 87, 34, 0.3); color: var(--primary-color); }
.badge-mineur { background: rgba(255, 183, 77, 0.3); color: var(--warning-color); }
.badge-info { background: rgba(0, 188, 212, 0.3); color: var(--info-color); }

.badge-en_attente { background: rgba(255, 183, 77, 0.3); color: var(--warning-color); }
.badge-approuve { background: rgba(76, 175, 80, 0.3); color: var(--success-color); }
.badge-rejete { background: rgba(244, 67, 54, 0.3); color: var(--danger-color); }

.btn-thermal {
    background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.btn-thermal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.4);
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff7043 0%, #ff8a65 100%);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-light {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.form-control, .form-select {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background: rgba(26, 26, 26, 0.8);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.15);
    color: white;
}

.form-control::placeholder {
    color: #666;
}

.form-label {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.modal-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border-bottom: 1px solid var(--border-color);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-color);
}

.modal-body {
    background: transparent;
}

.modal-footer {
    background: transparent;
    border-top: 1px solid rgba(255, 87, 34, 0.1);
}

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

.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

.login-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(10px);
}

.login-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-logo-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.05em;
}

.login-logo-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.login-card {
    background: linear-gradient(135deg, rgba(35, 35, 35, 0.9) 0%, rgba(20, 20, 20, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 48px;
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.6s ease;
}

.login-card .form-control {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    padding: 12px 16px;
    border-radius: 8px;
}

.login-card .form-control:focus {
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-color: #ff5722 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 87, 34, 0.2) !important;
}

.login-card .form-label {
    color: #ccc;
    font-weight: 500;
    font-size: 0.88rem;
}

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

.login-card .login-title {
    text-align: center;
    margin-bottom: 30px;
}

.login-card h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.login-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.login-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(10px);
    text-align: center;
}

.login-footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.login-footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.login-footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.login-footer-links a:hover {
    color: var(--primary-hover);
}

.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(10, 10, 10, 0.3);
}

.upload-zone:hover {
    border-color: var(--primary-color);
    background: rgba(255, 87, 34, 0.05);
}

.upload-zone.dragover {
    border-color: var(--primary-color);
    background: rgba(255, 87, 34, 0.1);
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.image-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--border-color);
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 10px;
    color: white;
    font-size: 0.8rem;
}

.pipeline-status {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 30px 0;
}

.pipeline-status::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.pipeline-step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.pipeline-step .icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: var(--text-muted);
}

.pipeline-step.active .icon {
    background: var(--primary-color);
    color: white;
}

.pipeline-step.completed .icon {
    background: var(--success-color);
    color: white;
}

.pipeline-step .label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pipeline-step.active .label,
.pipeline-step.completed .label {
    color: white;
    font-weight: 500;
}

.alert-floating {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-thermal {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 87, 34, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .sidebar {
        width: 0;
        overflow: hidden;
    }
    
    .sidebar.open {
        width: var(--sidebar-width);
    }
    
    .main-content {
        margin-left: 0;
    }

    .login-card {
        padding: 32px 24px;
    }
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 87, 34, 0.2);
}

.divider-text {
    padding: 0 10px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.weather-card {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px 30px;
    color: white;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.weather-icon {
    font-size: 3.5rem;
    color: #ff5722;
}

.weather-temp {
    font-family: 'Rajdhani', sans-serif;
    font-size: 3rem;
    font-weight: 300;
}

.weather-temp sup {
    font-size: 1.5rem;
    vertical-align: super;
}

.weather-info {
    flex: 1;
}

.weather-city {
    font-size: 1.3rem;
    font-weight: 600;
}

.weather-date {
    font-weight: 400;
    opacity: 0.9;
    margin-left: 10px;
}

.weather-details {
    margin-top: 8px;
    font-size: 0.95rem;
    opacity: 0.9;
}

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

.widget-card .card-header {
    background: transparent;
    border-bottom: none;
    font-weight: 600;
}

.chat-card {
    border: 1px solid var(--border-color);
}

.chat-card .card-header {
    background: rgba(10, 10, 10, 0.5);
    border-bottom: 1px solid rgba(255, 87, 34, 0.1);
}

.chat-messages {
    max-height: 350px;
    overflow-y: auto;
    padding: 15px;
    background: rgba(10, 10, 10, 0.3);
}

.chat-message {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.chat-message.sent {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 87, 34, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.chat-bubble {
    max-width: 70%;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 12px 16px;
}

.chat-message.sent .chat-bubble {
    background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%);
    color: white;
    border: none;
}

.chat-author {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 4px;
    color: var(--primary-color);
}

.chat-message.sent .chat-author {
    color: rgba(255,255,255,0.9);
}

.chat-time {
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.chat-message.sent .chat-time {
    color: rgba(255,255,255,0.7);
}

.chat-content {
    font-size: 0.95rem;
    line-height: 1.4;
}

.chat-card .card-footer {
    background: rgba(10, 10, 10, 0.5);
    border-top: 1px solid rgba(255, 87, 34, 0.1);
    padding: 15px;
}

.chat-card .input-group {
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.chat-card .form-control {
    border: none;
    background: rgba(10, 10, 10, 0.6);
}

.chat-card .form-control:focus {
    box-shadow: none;
    background: rgba(26, 26, 26, 0.8);
}

.chat-card .input-group-text {
    border: none;
    background: rgba(10, 10, 10, 0.6);
    color: var(--text-muted);
    cursor: pointer;
}

.chat-card .btn-primary {
    border-radius: 0 25px 25px 0;
    padding: 10px 20px;
}

.typing-indicator {
    font-style: italic;
    color: var(--text-muted);
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-primary {
    background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%) !important;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

.dropdown-menu {
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.dropdown-item {
    color: var(--text-color);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 87, 34, 0.1);
    color: var(--primary-color);
}

.dropdown-divider {
    border-color: rgba(255, 87, 34, 0.1);
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.alert-danger {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
}

.alert-warning {
    background: rgba(255, 183, 77, 0.1);
    border: 1px solid var(--warning-color);
    color: var(--warning-color);
}

.alert-info {
    background: rgba(0, 188, 212, 0.1);
    border: 1px solid var(--info-color);
    color: var(--info-color);
}

.list-group-item {
    background: transparent;
    border-color: rgba(255, 87, 34, 0.1);
    color: var(--text-color);
}

.list-group-item:hover {
    background: rgba(255, 87, 34, 0.05);
}

.list-group-item.active {
    background: rgba(255, 87, 34, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

hr {
    border-color: rgba(255, 87, 34, 0.1);
}

.nav-tabs {
    border-bottom-color: rgba(255, 87, 34, 0.2);
}

.nav-tabs .nav-link {
    color: var(--text-muted);
    border: none;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    background: transparent;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.nav-pills .nav-link {
    color: var(--text-muted);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%);
    color: white;
}

.progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.progress-bar {
    background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%);
}

.pagination .page-link {
    background: transparent;
    border-color: rgba(255, 87, 34, 0.2);
    color: var(--text-color);
}

.pagination .page-link:hover {
    background: rgba(255, 87, 34, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 87, 34, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 87, 34, 0.5);
}

.voice-assistant-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(13, 13, 13, 0.95) 100%);
    border: 1px solid rgba(255, 87, 34, 0.3);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(255, 87, 34, 0.15);
}

.voice-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.voice-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    animation: voice-pulse 2s infinite;
}

.voice-icon.active {
    animation: voice-pulse-active 1s infinite;
}

@keyframes voice-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 87, 34, 0); }
}

@keyframes voice-pulse-active {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.6); transform: scale(1); }
    50% { box-shadow: 0 0 0 15px rgba(255, 87, 34, 0); transform: scale(1.05); }
}

.voice-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.voice-status {
    font-size: 0.8rem;
    color: #888;
}

.voice-status.connected { color: #4caf50; }
.voice-status.connecting { color: #ff9800; }
.voice-status.error { color: #ef5350; }

.voice-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.voice-btn {
    background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%);
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.voice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

.voice-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.voice-btn.connected {
    background: linear-gradient(135deg, #e53935 0%, #ef5350 100%);
}

.voice-btn.mute {
    width: 45px;
    height: 45px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
}

.voice-btn.mute.muted {
    background: linear-gradient(135deg, #ef5350 0%, #e53935 100%);
}

.voice-visualizer {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 30px;
    margin-left: auto;
}

.voice-visualizer .bar {
    width: 4px;
    height: 8px;
    background: rgba(255, 87, 34, 0.3);
    border-radius: 2px;
    transition: height 0.1s ease;
}

.voice-visualizer.active .bar {
    animation: voice-bar 0.5s ease-in-out infinite;
    background: #ff5722;
}

.voice-visualizer.active .bar:nth-child(1) { animation-delay: 0s; }
.voice-visualizer.active .bar:nth-child(2) { animation-delay: 0.1s; }
.voice-visualizer.active .bar:nth-child(3) { animation-delay: 0.2s; }
.voice-visualizer.active .bar:nth-child(4) { animation-delay: 0.3s; }
.voice-visualizer.active .bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes voice-bar {
    0%, 100% { height: 8px; }
    50% { height: 25px; }
}

.voice-transcript {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 87, 34, 0.15);
    border-radius: 10px;
    padding: 15px;
    max-height: 120px;
    overflow-y: auto;
    font-size: 0.85rem;
}

.transcript-placeholder {
    color: #666;
    text-align: center;
    font-style: italic;
}

.transcript-line {
    margin-bottom: 8px;
    line-height: 1.4;
}

.transcript-line.user {
    color: #ff7043;
}

.transcript-line.assistant {
    color: #81c784;
}

.tree-assistant-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(13, 40, 24, 0.95) 100%);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.15);
    transition: all 0.3s ease;
}

.tree-assistant-card:hover {
    border-color: rgba(76, 175, 80, 0.6);
    box-shadow: 0 12px 40px rgba(76, 175, 80, 0.25);
    transform: translateY(-2px);
}

.tree-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.tree-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    animation: tree-pulse 3s infinite;
}

@keyframes tree-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    50% { box-shadow: 0 0 20px 10px rgba(76, 175, 80, 0.2); }
}

.tree-title {
    color: #4caf50;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.tree-status {
    color: #81c784;
    font-size: 0.85rem;
}

.tree-features {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tree-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 20px;
    color: #a5d6a7;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.tree-feature i {
    color: #4caf50;
}

.tree-assistant-card:hover .tree-feature {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.4);
}

.tree-cta {
    text-align: right;
}

.glow-icon-cyan {
    color: #00e5ff;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
    animation: glowPulseCyan 2s ease-in-out infinite;
}

@keyframes glowPulseCyan {
    0%, 100% { text-shadow: 0 0 8px rgba(0, 229, 255, 0.4); }
    50% { text-shadow: 0 0 16px rgba(0, 229, 255, 0.8), 0 0 32px rgba(0, 229, 255, 0.3); }
}

.cyan-text {
    color: #00e5ff;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(0, 229, 255, 0.3);
}

.nouveau-site-tab:hover {
    background: rgba(0, 229, 255, 0.15) !important;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.25) !important;
    color: #fff !important;
}

.menu-toggle-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 280px;
    background: #141418;
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 20px rgba(168,85,247,0.08);
    z-index: 9999;
    overflow: hidden;
    animation: menuPanelIn 0.2s ease;
}
.menu-toggle-panel.show { display: block; }

@keyframes menuPanelIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.menu-toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 14px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 0.74rem;
}
.menu-toggle-item:hover { background: rgba(255,255,255,0.04); }
.menu-toggle-item .mti-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e0e0e0;
    font-weight: 500;
}
.menu-toggle-item .mti-label i { font-size: 0.9rem; width: 20px; text-align: center; }
.menu-toggle-item.disabled .mti-label { color: #555; text-decoration: line-through; }

.mti-switch {
    position: relative;
    width: 34px;
    height: 18px;
    background: #333;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
.mti-switch.active { background: #00e676; }
.mti-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.mti-switch.active::after { transform: translateX(16px); }

#menuToggleBtn:hover {
    background: rgba(168,85,247,0.12);
    border-color: rgba(168,85,247,0.5);
    box-shadow: 0 0 12px rgba(168,85,247,0.15);
}

.sidebar-menu a.menu-hidden {
    display: none !important;
}
