:root {
    --primary: #4e73df;
    --secondary: #858796;
    --success: #1cc88a;
    --info: #36b9cc;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --light: #f8f9fc;
    --dark: #5a5c69;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #f8f9fc;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #224abe 100%);
}

.bg-login-image {
    background: linear-gradient(135deg, var(--primary) 0%, #224abe 100%);
}

/* STRUCTURE PRINCIPALE - APPROCHE MODERNE */
#wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fc 0%, #e3e6f0 100%);
}

/* SIDEBAR - POSITION FIXE À GAUCHE AVEC DESIGN MODERNE - ÉLARGIE */
.sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 16rem; /* Élargie de 6.5rem à 16rem */
    height: 100vh;
    background: linear-gradient(180deg, #1a1d29 0%, #2d3748 50%, #1a1d29 100%);
    z-index: 1000;
    transition: width 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 
        4px 0 20px rgba(0, 0, 0, 0.15),
        inset -1px 0 0 rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar.toggled {
    width: 5rem; /* Réduite quand collapsed */
}

/* CONTENT WRAPPER - MARGE À GAUCHE POUR ÉVITER LA SIDEBAR AVEC ANIMATION DE FOND */
#content-wrapper {
    margin-left: 16rem !important; /* Ajustée pour la nouvelle largeur */
    background: linear-gradient(135deg, #f8f9fc 0%, #e3e6f0 100%);
    min-height: 100vh;
    width: calc(100% - 16rem) !important; /* Ajustée pour la nouvelle largeur */
    transition: margin-left 0.3s ease, width 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* ANIMATION DE FOND POUR LE CONTENT WRAPPER */
#content-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: 16rem; /* Commence après la sidebar */
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(78, 115, 223, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(54, 185, 204, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(28, 200, 138, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 60% 80%, rgba(246, 194, 62, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 90% 60%, rgba(78, 115, 223, 0.06) 0%, transparent 50%);
    animation: backgroundFloat 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* ANIMATION SUPPLÉMENTAIRE POUR LES PARTICULES */
#content-wrapper::after {
    content: '';
    position: fixed;
    top: 0;
    left: 16rem;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(78, 115, 223, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(54, 185, 204, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 70% 10%, rgba(28, 200, 138, 0.03) 0%, transparent 40%);
    animation: backgroundFloat 35s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

@keyframes backgroundFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    25% { 
        transform: translateY(-20px) rotate(90deg) scale(1.1);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-40px) rotate(180deg) scale(1.2);
        opacity: 1;
    }
    75% { 
        transform: translateY(-20px) rotate(270deg) scale(1.1);
        opacity: 0.8;
    }
}

/* QUAND LA SIDEBAR EST RÉDUITE */
body.sidebar-toggled #content-wrapper {
    margin-left: 5rem !important;
    width: calc(100% - 5rem) !important;
}

body.sidebar-toggled #content-wrapper::before {
    left: 5rem;
}

body.sidebar-toggled #content-wrapper::after {
    left: 5rem;
}

body.sidebar-toggled .sidebar {
    width: 5rem;
}

/* CONTENT */
#content {
    flex: 1 0 auto;
    padding: 0;
    position: relative;
    z-index: 1; /* Au-dessus de l'animation de fond */
}

.container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    width: 100%;
    max-width: none;
    position: relative;
    z-index: 1;
}

/* TOPBAR MODERNE */
.topbar {
    height: 4.375rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(227, 230, 240, 0.5);
    box-shadow: 
        0 2px 20px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.topbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(78, 115, 223, 0.02) 50%, transparent 100%);
    pointer-events: none;
}

.topbar .navbar-nav .nav-item .nav-link {
    height: 4.375rem;
    align-items: center;
    padding: 0 0.75rem;
    display: flex;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 0.25rem;
}

.topbar .navbar-nav .nav-item .nav-link:focus {
    outline: none;
}

.topbar .navbar-nav .nav-item .nav-link:hover {
    color: var(--primary);
    background: rgba(78, 115, 223, 0.1);
    transform: translateY(-1px);
}

/* CARDS MODERNES AVEC TRANSPARENCE */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    background-clip: border-box;
    border: 1px solid rgba(227, 230, 240, 0.5);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 
        0 4px 25px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 35px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.98);
}

.card .card-header {
    padding: 1rem 1.5rem;
    margin-bottom: 0;
    background: linear-gradient(135deg, rgba(248, 249, 252, 0.8) 0%, rgba(237, 242, 247, 0.8) 100%);
    border-bottom: 1px solid rgba(227, 230, 240, 0.5);
    border-radius: 16px 16px 0 0;
    position: relative;
    z-index: 1;
}

.card .card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--info) 100%);
    border-radius: 16px 16px 0 0;
}

/* CARTES STATISTIQUES MODERNES */
.stats-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

.stats-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.stats-card-body {
    padding: 2rem;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stats-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.stats-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.stats-icon i {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.stats-content {
    flex: 1;
    min-width: 0;
}

.stats-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
}

.stats-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stats-description {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

.stats-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.1;
    pointer-events: none;
}

/* Couleurs spécifiques pour chaque type de carte */
.stats-card-primary .stats-icon {
    background: linear-gradient(135deg, var(--primary) 0%, #2653d4 100%);
    box-shadow: 0 8px 25px rgba(78, 115, 223, 0.3);
}

.stats-card-primary .stats-decoration {
    background: linear-gradient(135deg, var(--primary) 0%, #2653d4 100%);
}

.stats-card-primary:hover .stats-number {
    background: linear-gradient(135deg, var(--primary) 0%, #2653d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-card-success .stats-icon {
    background: linear-gradient(135deg, var(--success) 0%, #17a673 100%);
    box-shadow: 0 8px 25px rgba(28, 200, 138, 0.3);
}

.stats-card-success .stats-decoration {
    background: linear-gradient(135deg, var(--success) 0%, #17a673 100%);
}

.stats-card-success:hover .stats-number {
    background: linear-gradient(135deg, var(--success) 0%, #17a673 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-card-warning .stats-icon {
    background: linear-gradient(135deg, var(--warning) 0%, #f4b619 100%);
    box-shadow: 0 8px 25px rgba(246, 194, 62, 0.3);
}

.stats-card-warning .stats-decoration {
    background: linear-gradient(135deg, var(--warning) 0%, #f4b619 100%);
}

.stats-card-warning:hover .stats-number {
    background: linear-gradient(135deg, var(--warning) 0%, #f4b619 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-card-info .stats-icon {
    background: linear-gradient(135deg, var(--info) 0%, #2c9faf 100%);
    box-shadow: 0 8px 25px rgba(54, 185, 204, 0.3);
}

.stats-card-info .stats-decoration {
    background: linear-gradient(135deg, var(--info) 0%, #2c9faf 100%);
}

.stats-card-info:hover .stats-number {
    background: linear-gradient(135deg, var(--info) 0%, #2c9faf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* SECTION TICKETS RÉCENTS MODERNE */
.modern-tickets-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    margin-bottom: 2rem;
}

.modern-tickets-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--info) 50%, var(--success) 100%);
}

.modern-tickets-header {
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, rgba(248, 249, 252, 0.9) 0%, rgba(237, 242, 247, 0.9) 100%);
    border-bottom: 1px solid rgba(227, 230, 240, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, #2653d4 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 8px 25px rgba(78, 115, 223, 0.3);
    position: relative;
    overflow: hidden;
}

.header-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.header-icon i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.header-text {
    flex: 1;
}

.header-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.02em;
}

.header-subtitle {
    font-size: 1rem;
    color: #718096;
    margin: 0;
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.modern-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.modern-btn:hover::before {
    left: 100%;
}

.modern-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.modern-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #2653d4 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 115, 223, 0.3);
}

.modern-btn-primary:hover {
    box-shadow: 0 8px 25px rgba(78, 115, 223, 0.4);
    color: white;
}

.modern-btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, #6c757d 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(133, 135, 150, 0.3);
}

.modern-btn-secondary:hover {
    box-shadow: 0 8px 25px rgba(133, 135, 150, 0.4);
    color: white;
}

.modern-tickets-body {
    padding: 2.5rem;
}

/* État vide */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(78, 115, 223, 0.1) 0%, rgba(54, 185, 204, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    color: var(--primary);
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.empty-description {
    font-size: 1rem;
    color: #718096;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Grille des tickets */
.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.ticket-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(227, 230, 240, 0.5);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: ticketSlideIn 0.6s ease-out forwards;
}

@keyframes ticketSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ticket-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.ticket-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(78, 115, 223, 0.3);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.ticket-id {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* NUMÉRO DE TICKET SIMPLE - JUSTE TEXTE PLUS GROS */
.ticket-number {
    font-size: 1.4rem; /* Plus gros */
    font-weight: 800; /* Plus gras */
    color: var(--primary); /* Couleur primaire */
    font-family: 'Courier New', monospace; /* Police monospace pour uniformité */
    letter-spacing: 0.02em;
    line-height: 1;
    display: inline-block;
    transition: all 0.3s ease;
}

.ticket-number:hover {
    color: #2653d4; /* Couleur plus foncée au hover */
    transform: scale(1.05); /* Légère augmentation au hover */
}

/* Variantes de couleur pour différents contextes si nécessaire */
.ticket-number.urgent {
    color: var(--danger);
}

.ticket-number.completed {
    color: var(--success);
}

.ticket-number.warning {
    color: var(--warning);
}

.ticket-meta {
    text-align: right;
}

.ticket-date {
    font-size: 0.85rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ticket-content {
    margin-bottom: 1.5rem;
}

.ticket-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.ticket-description {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.ticket-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #718096;
}

.client-info,
.attachment-info {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ticket-actions {
    display: flex;
    justify-content: flex-end;
}

.ticket-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, #2653d4 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ticket-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.ticket-action-btn:hover::before {
    left: 100%;
}

.ticket-action-btn:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(78, 115, 223, 0.3);
    color: white;
    text-decoration: none;
}

.tickets-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(227, 230, 240, 0.5);
    text-align: center;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: #2653d4;
    transform: translateX(4px);
    text-decoration: none;
}

/* HEADER DE PAGE MODERNE POUR TICKETS.PHP */
.modern-page-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.modern-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--info) 50%, var(--success) 100%);
}

.page-header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.page-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, #2653d4 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 25px rgba(78, 115, 223, 0.3);
    position: relative;
    overflow: hidden;
}

.page-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.page-icon i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.page-text {
    flex: 1;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 1rem;
    color: #718096;
    margin: 0;
    font-weight: 500;
}

.page-actions {
    display: flex;
    gap: 1rem;
}

/* STATISTIQUES RAPIDES */
.quick-stats-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.quick-stats-header {
    padding: 1.5rem 2rem 1rem;
    background: linear-gradient(135deg, rgba(248, 249, 252, 0.9) 0%, rgba(237, 242, 247, 0.9) 100%);
    border-bottom: 1px solid rgba(227, 230, 240, 0.3);
}

.stats-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    display: flex;
    align-items: center;
}

.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0;
    padding: 1.5rem 2rem;
}

.quick-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.quick-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.quick-stat-item:hover::before,
.quick-stat-item.active::before {
    opacity: 1;
}

.quick-stat-item:hover {
    transform: translateY(-2px) scale(1.02);
    background: rgba(78, 115, 223, 0.05);
}

.quick-stat-item.active {
    background: rgba(78, 115, 223, 0.1);
    transform: translateY(-2px) scale(1.02);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.stat-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.stat-icon-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #2653d4 100%);
    box-shadow: 0 4px 15px rgba(78, 115, 223, 0.3);
}

.stat-icon-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #f4b619 100%);
    box-shadow: 0 4px 15px rgba(246, 194, 62, 0.3);
}

.stat-icon-info {
    background: linear-gradient(135deg, var(--info) 0%, #2c9faf 100%);
    box-shadow: 0 4px 15px rgba(54, 185, 204, 0.3);
}

.stat-icon-success {
    background: linear-gradient(135deg, var(--success) 0%, #17a673 100%);
    box-shadow: 0 4px 15px rgba(28, 200, 138, 0.3);
}

.stat-icon-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #e02d1b 100%);
    box-shadow: 0 4px 15px rgba(231, 74, 59, 0.3);
}

.stat-icon-dark {
    background: linear-gradient(135deg, var(--dark) 0%, #343a40 100%);
    box-shadow: 0 4px 15px rgba(90, 92, 105, 0.3);
}

.stat-content {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* BARRE DE RECHERCHE ET FILTRES */
.search-filter-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.search-section {
    flex: 1;
    min-width: 300px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: #718096;
    font-size: 1.1rem;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid rgba(227, 230, 240, 0.5);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
    background: white;
}

.search-clear {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: #718096;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
}

.search-clear:hover {
    background: rgba(231, 74, 59, 0.1);
    color: var(--danger);
}

.filter-section {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-select {
    padding: 0.5rem 0.75rem;
    border: 2px solid rgba(227, 230, 240, 0.5);
    border-radius: 8px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
    background: white;
}

/* CARTES DE TICKETS MODERNES */
.tickets-container {
    position: relative;
}

.empty-tickets-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.empty-tickets-state .empty-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(78, 115, 223, 0.1) 0%, rgba(54, 185, 204, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    color: var(--primary);
}

.empty-tickets-state .empty-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.empty-tickets-state .empty-description {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.modern-ticket-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: ticketSlideIn 0.6s ease-out forwards;
}

.modern-ticket-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modern-ticket-card:hover::before {
    opacity: 1;
}

.modern-ticket-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.ticket-card-header {
    padding: 1.5rem 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.ticket-id-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ticket-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.attachment-badge {
    background: rgba(54, 185, 204, 0.1);
    color: var(--info);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(54, 185, 204, 0.2);
}

.ticket-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ticket-dates {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.created-date,
.updated-date {
    font-size: 0.8rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    justify-content: flex-end;
}

.due-date {
    margin-top: 0.5rem;
}

.ticket-card-body {
    padding: 0 1.5rem 1rem;
}

.ticket-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ticket-description {
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(248, 249, 252, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(227, 230, 240, 0.5);
}

.client-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, #2653d4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.client-details {
    flex: 1;
    min-width: 0;
}

.client-details strong {
    display: block;
    font-size: 0.9rem;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.client-details small {
    font-size: 0.8rem;
    color: #718096;
}

.ticket-card-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(227, 230, 240, 0.3);
    background: linear-gradient(135deg, rgba(248, 249, 252, 0.5) 0%, rgba(237, 242, 247, 0.5) 100%);
}

.ticket-actions {
    display: flex;
    justify-content: flex-end;
}

.ticket-action-btn.primary {
    background: linear-gradient(135deg, var(--primary) 0%, #2653d4 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(78, 115, 223, 0.3);
}

.ticket-action-btn.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.ticket-action-btn.primary:hover::before {
    left: 100%;
}

.ticket-action-btn.primary:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 25px rgba(78, 115, 223, 0.4);
    color: white;
    text-decoration: none;
}

/* ÉTAT AUCUN RÉSULTAT */
.no-results-state {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.no-results-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(133, 135, 150, 0.1) 0%, rgba(108, 117, 125, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--secondary);
}

.no-results-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.no-results-description {
    font-size: 1rem;
    color: #718096;
    margin-bottom: 1.5rem;
}

.shadow {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08) !important;
}

.border-left-primary {
    border-left: 4px solid var(--primary) !important;
    position: relative;
}

.border-left-primary::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary) 0%, rgba(78, 115, 223, 0.5) 100%);
    box-shadow: 0 0 10px rgba(78, 115, 223, 0.3);
}

.border-left-success {
    border-left: 4px solid var(--success) !important;
    position: relative;
}

.border-left-success::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--success) 0%, rgba(28, 200, 138, 0.5) 100%);
    box-shadow: 0 0 10px rgba(28, 200, 138, 0.3);
}

.border-left-info {
    border-left: 4px solid var(--info) !important;
    position: relative;
}

.border-left-info::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--info) 0%, rgba(54, 185, 204, 0.5) 100%);
    box-shadow: 0 0 10px rgba(54, 185, 204, 0.3);
}

.border-left-warning {
    border-left: 4px solid var(--warning) !important;
    position: relative;
}

.border-left-warning::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--warning) 0%, rgba(246, 194, 62, 0.5) 100%);
    box-shadow: 0 0 10px rgba(246, 194, 62, 0.3);
}

/* UTILITY CLASSES */
.text-xs {
    font-size: 0.7rem;
}

.text-gray-300 {
    color: #dddfeb !important;
}

.text-gray-400 {
    color: #d1d3e2 !important;
}

.text-gray-500 {
    color: #b7b9cc !important;
}

.text-gray-600 {
    color: #858796 !important;
}

.text-gray-700 {
    color: #6e707e !important;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

.text-gray-900 {
    color: #3a3b45 !important;
}

/* BUTTONS MODERNES */
.btn {
    border-radius: 12px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #2653d4 100%);
    border-color: var(--primary);
    box-shadow: 0 2px 10px rgba(78, 115, 223, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2653d4 0%, var(--primary) 100%);
    border-color: #2653d4;
    box-shadow: 0 4px 20px rgba(78, 115, 223, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #17a673 100%);
    border-color: var(--success);
    box-shadow: 0 2px 10px rgba(28, 200, 138, 0.2);
}

.btn-success:hover {
    background: linear-gradient(135deg, #17a673 0%, var(--success) 100%);
    border-color: #17a673;
    box-shadow: 0 4px 20px rgba(28, 200, 138, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, var(--info) 0%, #2c9faf 100%);
    border-color: var(--info);
    box-shadow: 0 2px 10px rgba(54, 185, 204, 0.2);
}

.btn-info:hover {
    background: linear-gradient(135deg, #2c9faf 0%, var(--info) 100%);
    border-color: #2c9faf;
    box-shadow: 0 4px 20px rgba(54, 185, 204, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #f4b619 100%);
    border-color: var(--warning);
    box-shadow: 0 2px 10px rgba(246, 194, 62, 0.2);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #f4b619 0%, var(--warning) 100%);
    border-color: #f4b619;
    box-shadow: 0 4px 20px rgba(246, 194, 62, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #e02d1b 100%);
    border-color: var(--danger);
    box-shadow: 0 2px 10px rgba(231, 74, 59, 0.2);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e02d1b 0%, var(--danger) 100%);
    border-color: #e02d1b;
    box-shadow: 0 4px 20px rgba(231, 74, 59, 0.3);
}

.form-control-user {
    border-radius: 10rem;
    padding: 1.5rem 1rem;
}

.btn-user {
    border-radius: 10rem;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

/* TABLES MODERNES */
.table {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
}

.table th {
    border-top: none;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    background: linear-gradient(135deg, rgba(248, 249, 252, 0.9) 0%, rgba(237, 242, 247, 0.9) 100%);
    padding: 1rem 0.75rem;
}

.table td {
    padding: 0.75rem;
    border-top: 1px solid rgba(227, 230, 240, 0.5);
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: rgba(78, 115, 223, 0.05);
    transform: scale(1.001);
    transition: all 0.2s ease;
}

.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 
        0 8px 35px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0.25rem 0.5rem;
}

.dropdown-item:hover {
    background: rgba(78, 115, 223, 0.1);
    color: var(--primary);
    transform: translateX(2px);
}

.sticky-footer {
    flex-shrink: 0;
}

.footer {
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(227, 230, 240, 0.5);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .sidebar {
        width: 0 !important;
        margin-left: -16rem;
    }
    
    .sidebar.toggled {
        width: 16rem !important;
        margin-left: 0;
    }
    
    #content-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    #content-wrapper::before,
    #content-wrapper::after {
        left: 0;
    }
    
    body.sidebar-toggled #content-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    body.sidebar-toggled #content-wrapper::before,
    body.sidebar-toggled #content-wrapper::after {
        left: 0;
    }
    
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Responsive pour les cartes statistiques */
    .stats-card-body {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .stats-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .stats-number {
        font-size: 2.5rem;
    }

    .stats-label {
        font-size: 1rem;
    }

    .stats-description {
        font-size: 0.8rem;
    }

    /* Responsive pour la section tickets */
    .modern-tickets-header {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .modern-tickets-body {
        padding: 1.5rem;
    }

    .tickets-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ticket-card {
        padding: 1rem;
    }

    .ticket-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .ticket-meta {
        text-align: left;
    }

    /* Responsive pour la page tickets */
    .modern-page-header {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .page-header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .page-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .quick-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
        padding: 1rem;
    }

    .quick-stat-item {
        padding: 0.75rem 0.5rem;
    }

    .stat-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .search-filter-card {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .search-section {
        min-width: auto;
    }

    .filter-section {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-select {
        min-width: auto;
    }

    .modern-ticket-card {
        margin-bottom: 1rem;
    }

    .ticket-card-header {
        padding: 1rem 1rem 0.5rem;
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .ticket-meta {
        text-align: left;
        width: 100%;
    }

    .ticket-dates {
        flex-direction: row;
        gap: 1rem;
        justify-content: space-between;
    }

    .ticket-card-body {
        padding: 0 1rem 0.5rem;
    }

    .ticket-card-footer {
        padding: 0.75rem 1rem 1rem;
    }

    /* Responsive pour le numéro de ticket */
    .ticket-number {
        font-size: 1.2rem;
    }
}

/* Custom animations */
.animated--grow-in {
    animation-name: growIn;
    animation-duration: 200ms;
    animation-timing-function: transform cubic-bezier(0.18, 1.25, 0.4, 1), opacity cubic-bezier(0, 1, 0.4, 1);
}

@keyframes growIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* File upload styles */
.file-upload-area {
    border: 2px dashed #e3e6f0;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(248, 249, 252, 0.8) 0%, rgba(237, 242, 247, 0.8) 100%);
    backdrop-filter: blur(10px);
}

.file-upload-area:hover {
    border-color: var(--primary);
    background: rgba(78, 115, 223, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(78, 115, 223, 0.1);
}

.file-upload-area.dragover {
    border-color: var(--primary);
    background: rgba(78, 115, 223, 0.1);
    transform: scale(1.02);
}

/* Status badges */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Quill editor */
.ql-toolbar {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-color: #e3e6f0;
    background: rgba(248, 249, 252, 0.8);
}

.ql-container {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border-color: #e3e6f0;
    background: rgba(255, 255, 255, 0.9);
}

.ql-editor {
    min-height: 200px;
}

/* Bootstrap Icons */
.bi {
    vertical-align: -0.125em;
}

/* Font Awesome compatibility */
.fa-2x {
    font-size: 2em;
}

/* Page animations */
@keyframes pageSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container-fluid {
    animation: pageSlideIn 0.6s ease-out;
}

/* Glassmorphism effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

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

::-webkit-scrollbar-track {
    background: rgba(248, 249, 252, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary) 0%, rgba(78, 115, 223, 0.5) 100%);
    border-radius: 4px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2653d4 0%, var(--primary) 100%);
    box-shadow: 0 0 10px rgba(78, 115, 223, 0.3);
}

/* ANIMATION SPÉCIALE POUR LES ÉLÉMENTS INTERACTIFS */
.card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(78, 115, 223, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* EFFET DE PARTICULES SUPPLÉMENTAIRES POUR LES GRANDES ZONES */
.container-fluid::before {
    content: '';
    position: fixed;
    top: 0;
    left: 16rem;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, rgba(78, 115, 223, 0.15), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(54, 185, 204, 0.1), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(28, 200, 138, 0.1), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(246, 194, 62, 0.08), transparent);
    background-repeat: repeat;
    background-size: 150px 100px;
    animation: particleFloat 60s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

@keyframes particleFloat {
    0% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-10px) translateX(5px); }
    50% { transform: translateY(-20px) translateX(-5px); }
    75% { transform: translateY(-10px) translateX(3px); }
    100% { transform: translateY(0px) translateX(0px); }
}

/* RESPONSIVE POUR L'ANIMATION */
@media (max-width: 768px) {
    .container-fluid::before {
        left: 0;
    }
}

/* EFFET DE BRILLANCE SUBTILE */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 8s ease-in-out infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::after {
    opacity: 1;
}