/* Vos styles existants... */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../IMG/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: white;
    padding-top: 25px;
}

.hero-section h1 {
    font-size: 40px;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Styles pour les tickets */
.tickets-card .tickets-header {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.ticket-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 0;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.ticket-item:hover {
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.15);
    transform: translateY(-2px);
}

.ticket-info {
    padding: 15px;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ticket-id {
    font-weight: bold;
    color: #6c5ce7;
    font-size: 16px;
}

.ticket-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-ouvert { background: #d1f2eb; color: #00695c; }
.status-en_cours { background: #fff3cd; color: #856404; }
.status-ferme { background: #f8d7da; color: #721c24; }
.status-resolu { background: #d4edda; color: #155724; }

.ticket-title {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
}

.ticket-description {
    margin: 0 0 15px 0;
    color: #000000;
    line-height: 1.4;
}

.ticket-details {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
}

.ticket-category, .ticket-priority {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 6px;
    background: #f0f0f0;
}

.priority-basse { background: #e3f2fd; color: #1565c0; }
.priority-normale { background: #fffde7; color: #f57f17; }
.priority-haute { background: #fff3e0; color: #ef6c00; }
.priority-urgente { background: #ffebee; color: #c62828; }

.ticket-dates {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ticket-created, .ticket-updated {
    color: #888;
    font-size: 11px;
}

.ticket-actions {
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.ticket-view-btn {
    display: inline-block;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ticket-view-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 92, 231, 0.3);
}

.tickets-footer, .no-tickets {
    text-align: center;
    padding: 20px;
}

.create-ticket-btn {
    display: inline-block;
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.create-ticket-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 184, 148, 0.3);
}

.no-tickets-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.no-tickets h4 {
    color: #333;
    margin-bottom: 10px;
}

.no-tickets p {
    color: #666;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .ticket-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .ticket-details {
        flex-direction: column;
        gap: 8px;
    }
}


/* Scrollable tickets container */
.tickets-scrollable {
    max-height: 500px; /* Hauteur max avant scroll */
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px; /* Espace pour la scrollbar */
}

/* Custom scrollbar styling */
.tickets-scrollable::-webkit-scrollbar {
    width: 8px;
}

.tickets-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.tickets-scrollable::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border-radius: 10px;
}

.tickets-scrollable::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a4fcf, #8b7ff7);
}

/* Fade effect pour indiquer qu'il y a plus de contenu */
.tickets-card {
    position: relative;
}

.tickets-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, rgba(255,255,255,0.8));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Améliorer l'espacement des tickets */
.ticket-item {
    margin-bottom: 15px;
}

.ticket-item:last-child {
    margin-bottom: 0;
}

/* Responsive - réduire la hauteur sur mobile */
@media (max-width: 768px) {
    .tickets-scrollable {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .tickets-scrollable {
        max-height: 300px;
    }
}

/* Animation smooth pour le scroll */
.tickets-scrollable {
    scroll-behavior: smooth;
}

/* Indicateur de scroll subtil */
.card-header.tickets-header {
    position: relative;
}

.card-header.tickets-header::after {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0.5;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(-50%);
    }
    40% {
        transform: translateY(-40%);
    }
    60% {
        transform: translateY(-45%);
    }
}

/* Header avec bouton créer ticket */
.tickets-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.tickets-header-content h3 {
    margin: 0;
    flex-grow: 1;
}

/* Bouton créer ticket dans le header */
.create-ticket-header-btn {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 184, 148, 0.3);
}

.create-ticket-header-btn:hover {
    background: linear-gradient(135deg, #00a085, #00b8b3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4);
    text-decoration: none;
    color: white;
}

.create-ticket-header-btn:active {
    transform: translateY(0);
}

/* Animation subtile */
.create-ticket-header-btn {
    position: relative;
    overflow: hidden;
}

.create-ticket-header-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;
}

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

/* Responsive */
@media (max-width: 768px) {
    .tickets-header-content {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .tickets-header-content h3 {
        font-size: 18px;
    }

    .create-ticket-header-btn {
        font-size: 13px;
        padding: 6px 12px;
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .tickets-header-content {
        flex-direction: row;
        align-items: center;
    }

    .tickets-header-content h3 {
        font-size: 16px;
    }

    .create-ticket-header-btn {
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* Variante plus compacte pour les petits écrans */
@media (max-width: 380px) {
    .create-ticket-header-btn {
        padding: 4px 8px;
    }

    .create-ticket-header-btn span {
        display: none; /* Cache le texte */
    }

    .create-ticket-header-btn::after {
        content: '➕'; /* Affiche seulement l'icône */
    }
}
