:root {
    --tercium-primary: #4f9698;
    --tercium-secondary: #8bcdcb;
    --tercium-accent: #e9e76c;
    --tercium-dark: #565656;
}

/* Styles de la page de login */
.login-page {
    background: linear-gradient(135deg, var(--tercium-primary), var(--tercium-secondary));
    min-height: 100vh;
    position: relative;
}

.login-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.login-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.login-form .input-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.login-form .input-group-text {
    background-color: white;
    color: var(--tercium-primary);
    border: 1px solid #e0e0e0;
    border-right: none;
    padding: 0.75rem 1rem;
}

.login-form .form-control {
    border: 1px solid #e0e0e0;
    border-left: none;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.login-form .form-control:focus {
    border-color: var(--tercium-secondary);
    box-shadow: none;
}

.login-form .btn-outline-secondary {
    border: 1px solid #e0e0e0;
    border-left: none;
    color: var(--tercium-primary);
}

.login-form .btn-outline-secondary:hover {
    background-color: var(--tercium-primary);
    color: white;
}

.login-form .form-check-input:checked {
    background-color: var(--tercium-primary);
    border-color: var(--tercium-primary);
}

.login-form .btn-primary {
    padding: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 12px;
    background: linear-gradient(45deg, var(--tercium-primary), var(--tercium-secondary));
    border: none;
    box-shadow: 0 4px 15px rgba(79, 150, 152, 0.3);
}

.alert {
    border-radius: 12px;
    border: none;
}

.alert-danger {
    background-color: #fff2f2;
    color: #dc3545;
}

/* Styles généraux */
body {
    color: var(--tercium-dark);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.navbar {
    background: linear-gradient(45deg, var(--tercium-primary), var(--tercium-secondary)) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    padding: 1rem 0;
}

.navbar .container-fluid {
    padding: 0 1.5rem;
}

.navbar-brand {
    color: white !important;
    font-weight: 600;
    margin-right: 2rem;
}

.timer-nav {
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-right: 1rem;
}

.timer-display, .current-project {
    color: white !important;
}

.timer-display i, .current-project i {
    color: rgba(255,255,255,0.8);
}

.quick-stats .stat-item {
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: white;
}

.quick-stats .badge {
    background: white;
    color: var(--tercium-primary);
}

.nav-item.dropdown .nav-link {
    color: white !important;
}

.nav-item.dropdown .avatar-circle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    color: var(--tercium-primary);
    font-weight: 600;
}

/* Animations */
/* @keyframes fadeIn retiré */

.login-box {
    /* Animation supprimée pour interface statique */
}

/* Autres styles existants */
.container {
    max-width: 1200px;
}

/* Styles pour les tableaux de données */
.table-responsive {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,.05);
}

/* Style pour les titres */
h1, h2, h3, h4, h5, h6 {
    color: var(--tercium-primary);
}

/* Style pour les liens */
a {
    color: var(--tercium-primary);
}

a:hover {
    color: var(--tercium-secondary);
}

/* Style pour les boutons */
.btn-primary {
    background-color: var(--tercium-primary);
    border-color: var(--tercium-primary);
}

.btn-primary:hover {
    background-color: var(--tercium-secondary);
    border-color: var(--tercium-secondary);
}

/* Style pour les formulaires */
.form-control:focus {
    border-color: var(--tercium-secondary);
    box-shadow: 0 0 0 0.2rem rgba(139, 205, 203, 0.25);
}

/* Style pour les éléments de mise en évidence */
.bg-primary {
    background-color: var(--tercium-primary) !important;
}

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

/* Style pour les alertes et notifications */
.alert-primary {
    background-color: var(--tercium-secondary);
    border-color: var(--tercium-primary);
    color: var(--tercium-dark);
}

/* Styles pour la sidebar */
#sidebar {
    background: #fff;
    border-right: 1px solid rgba(0,0,0,0.1);
}

/* Avatar utilisateur */
#sidebar .rounded-circle {
    background-color: var(--tercium-primary) !important;
    color: #fff !important;
}

/* Liens de navigation */
#sidebar .nav-link {
    color: var(--tercium-dark) !important;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

#sidebar .nav-link:hover, 
#sidebar .nav-link:focus {
    color: var(--tercium-primary) !important;
    background-color: rgba(79, 150, 152, 0.1) !important;
}

/* Sous-menus */
#sidebar .submenu {
    background-color: rgba(139, 205, 203, 0.1);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

#sidebar .submenu.submenu-open {
    max-height: 1000px !important;
    opacity: 1 !important;
    transition: max-height 0.5s ease-in, opacity 0.3s ease-in;
}

#sidebar .submenu .nav-link {
    padding-left: 2.75rem;
}

/* Lien actif */
#sidebar .nav-link.active {
    color: var(--tercium-primary) !important;
}

/* Lien actif dans le sous-menu uniquement */
#sidebar .submenu .nav-link.active {
    color: var(--tercium-primary) !important;
    background-color: rgba(79, 150, 152, 0.1) !important;
}

/* Sélecteur de filiale */
#sidebar .btn-light {
    background-color: transparent !important;
    border-color: rgba(79, 150, 152, 0.2) !important;
    color: var(--tercium-dark) !important;
}

#sidebar .btn-light:hover,
#sidebar .btn-light:focus {
    background-color: rgba(79, 150, 152, 0.1) !important;
    border-color: var(--tercium-primary) !important;
    color: var(--tercium-primary) !important;
}

/* Badges */
#sidebar .badge {
    background-color: var(--tercium-accent) !important;
    color: var(--tercium-dark) !important;
}

/* Icônes */
#sidebar .bi {
    color: inherit;
    font-size: 1.1rem;
}

/* Rotation icône sous-menu */
#sidebar .submenu-icon {
    transition: transform 0.2s ease;
}

#sidebar .has-submenu.active .submenu-icon {
    transform: rotate(180deg);
}

/* Style uniforme pour tous les avatars */
.avatar-circle, .message-avatar, .rounded-circle {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    aspect-ratio: 1 !important;
    flex-shrink: 0 !important;
}

/* Styles spécifiques pour les avatars dans la liste des connectés */
.connected-user .avatar-circle {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.8rem !important;
}

/* Styles spécifiques pour les avatars dans la section des tickets traités */
.activity-list .avatar-circle.bg-success-soft {
    color: #fff !important;
    background-color: var(--tercium-primary) !important;
}

/* Styles pour les widgets statistiques */
.stat-card {
    transition: all 0.2s ease-in-out;
    border: 1px solid rgba(0,0,0,0.1);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Couleurs des icônes */
.bg-primary-soft { background-color: rgba(79, 150, 152, 0.1) !important; }
.bg-secondary-soft { background-color: rgba(139, 205, 203, 0.1) !important; }
.bg-accent-soft { background-color: rgba(233, 231, 108, 0.1) !important; }
.bg-dark-soft { background-color: rgba(86, 86, 86, 0.1) !important; }
.bg-success-soft { background-color: rgba(25, 135, 84, 0.1) !important; }
.bg-info-soft { background-color: rgba(13, 202, 240, 0.1) !important; }
.bg-danger-soft { background-color: rgba(220, 53, 69, 0.1) !important; }

.text-primary { color: var(--tercium-primary) !important; }
.text-secondary { color: var(--tercium-secondary) !important; }
.text-accent { color: var(--tercium-accent) !important; }
.text-dark { color: var(--tercium-dark) !important; }

/* Badges et trends */
.trend {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.trend.positive {
    color: var(--tercium-primary);
    background-color: rgba(79, 150, 152, 0.1);
}

.trend.negative {
    color: var(--tercium-secondary);
    background-color: rgba(139, 205, 203, 0.1);
}

/* Progress bars */
.progress-bar.bg-primary { background-color: var(--tercium-primary) !important; }
.progress-bar.bg-secondary { background-color: var(--tercium-secondary) !important; }
.progress-bar.bg-accent { background-color: var(--tercium-accent) !important; }
.progress-bar.bg-dark { background-color: var(--tercium-dark) !important; }

/* Badges dans les widgets */
.badge.bg-primary-soft {
    background-color: rgba(79, 150, 152, 0.1) !important;
    color: var(--tercium-primary) !important;
}

.badge.bg-secondary-soft {
    background-color: rgba(139, 205, 203, 0.1) !important;
    color: var(--tercium-secondary) !important;
}

.badge.bg-accent-soft {
    background-color: rgba(233, 231, 108, 0.1) !important;
    color: var(--tercium-dark) !important;
}

/* Styles pour les boutons du timer */
.timer-controls .btn-primary {
    background-color: var(--tercium-primary) !important;
    border-color: var(--tercium-primary) !important;
}

.timer-controls .btn-primary:hover {
    background-color: var(--tercium-secondary) !important;
    border-color: var(--tercium-secondary) !important;
}

.timer-controls .btn-outline-primary {
    color: var(--tercium-primary) !important;
    border-color: var(--tercium-primary) !important;
    background-color: transparent !important;
}

.timer-controls .btn-outline-primary:hover {
    color: #fff !important;
    background-color: var(--tercium-secondary) !important;
    border-color: var(--tercium-secondary) !important;
}

/* Couleur du timer */
.timer-display .display-4 {
    color: var(--tercium-primary) !important;
}

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

.timer-progress .progress-bar {
    background-color: var(--tercium-primary) !important;
}

/* Styles pour la grille des utilisateurs connectés */
.connected-user {
    background-color: #fff;
    transition: all 0.2s ease;
    border-color: rgba(0,0,0,0.1) !important;
}

.connected-user:hover {
    background-color: rgba(79, 150, 152, 0.05);
    border-color: var(--tercium-primary) !important;
}

.connected-user .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.connected-user .status-dot.disponible {
    background-color: var(--tercium-primary);
}

.connected-user .status-dot.occupé {
    background-color: var(--tercium-secondary);
}

.connected-user .status-dot.en.réunion {
    background-color: var(--tercium-accent);
}

.connected-user .smaller {
    font-size: 0.7rem;
}

/* Sticky table headers pour toutes les listes */
.table-responsive {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    position: relative;
}

.table thead th {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Style pour les tableaux avec en-tête de couleur */
.table thead.table-light th {
    background-color: #f8f9fa;
}

.table thead.bg-light th {
    background-color: #f8f9fa;
}

/* Assurer que les bordures restent visibles */
.table thead th {
    border-bottom: 2px solid #dee2e6;
}

/* Amélioration de la scrollbar */
.table-responsive::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--tercium-secondary);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--tercium-primary);
}

/* Style pour les lignes de devis acceptés - Spécificité élevée pour surcharger Bootstrap */
/* Important : appliquer sur les cellules TD car elles ont un fond blanc par défaut */
table.table.table-hover tbody tr.quote-accepted td {
    background-color: rgba(79, 150, 152, 0.12) !important;
}

table.table.table-hover tbody tr.quote-accepted:hover td {
    background-color: rgba(79, 150, 152, 0.18) !important;
}

.table.table-hover tbody tr.quote-accepted td {
    background-color: rgba(79, 150, 152, 0.12) !important;
}

.table.table-hover tbody tr.quote-accepted:hover td {
    background-color: rgba(79, 150, 152, 0.18) !important;
}

.table-hover tbody tr.quote-accepted td {
    background-color: rgba(79, 150, 152, 0.12) !important;
}

.table-hover tbody tr.quote-accepted:hover td {
    background-color: rgba(79, 150, 152, 0.18) !important;
}

/* Style de base pour tous les tableaux */
.table tbody tr.quote-accepted td {
    background-color: rgba(79, 150, 152, 0.12) !important;
}

.table tbody tr.quote-accepted:hover td {
    background-color: rgba(79, 150, 152, 0.18) !important;
} 