/* ===== PROFESSIONAL SUPPORT SITE THEME ===== */

/* CSS Custom Properties */
:root {
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-card: #1f2937;
    --bg-tertiary: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --border-color: #374151;
    --border-hover: #4b5563;
    --primary-color: #3b82f6;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #f9fafb;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Typography */
h1 {
    color: #f9fafb;
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    letter-spacing: -0.025em;
}

h2 {
    color: #e5e7eb;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    letter-spacing: -0.015em;
}

h3 {
    color: #d1d5db;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: #d1d5db;
}

a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* Layout */
main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px;
}

/* Container Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #374151;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-logout {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    box-shadow: 0 3px 12px rgba(220, 38, 38, 0.25), 
                0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    min-width: 110px;
}

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

.btn-logout:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(185, 28, 28, 0.35), 
                0 3px 8px rgba(0, 0, 0, 0.12);
    color: #ffffff;
    text-decoration: none;
}

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

/* Hotline Number Style */
.hotline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: center;
    background: rgba(0,0,0,0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    width: 100%;
    order: 1; /* Ensure it appears below the title on flex layouts */
}

.hotline strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: capitalize;
    border: 1px solid;
    transition: all 0.2s ease;
}

.status-badge.status-Ouvert {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
    border-color: #10b981;
}

.status-badge.status-En-cours {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #d97706;
    border-color: #f59e0b;
}

.status-badge.status-Fermé {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    color: #dc2626;
    border-color: #ef4444;
}

.status-badge.status-Résolu {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
    border-color: #3b82f6;
}

/* Beautiful Action Buttons */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    padding: 1.125rem 2.5rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.125rem;
    border: none;
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.3), 
                0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
    min-width: 180px;
}

.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.6s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4), 
                0 6px 20px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    text-decoration: none;
}

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

.btn-primary:active {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    transition: all 0.1s ease;
}

.btn-action {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.875rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25), 
                0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    min-width: 100px;
}

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

.btn-action:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35), 
                0 3px 10px rgba(0, 0, 0, 0.12);
    color: #ffffff;
    text-decoration: none;
}

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

.btn-assign {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.875rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25), 
                0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

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

.btn-assign:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.35), 
                0 3px 10px rgba(0, 0, 0, 0.12);
}

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

/* Main Content */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

table th {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    color: var(--text-primary);
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
}

table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    vertical-align: middle;
}

table tbody tr {
    transition: all 0.2s ease;
}

table tbody tr:hover {
    background: var(--bg-tertiary);
    transform: scale(1.001);
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* Forms */
form {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.ticket-form {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    margin-bottom: 0;
}

label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: var(--bg-secondary);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* Beautiful Buttons */
button, .btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: 1rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.025em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25), 
                0 1px 3px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-width: 140px;
}

button::before, .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.6s ease;
}

button:hover, button:focus, .btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4), 
                0 4px 15px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    text-decoration: none;
}

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

button:active, .btn:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    transition: all 0.1s ease;
}

/* Submit Button Specific */
.submit-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25), 
                0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
    padding: 1.125rem 2.5rem;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 12px 35px rgba(5, 150, 105, 0.4), 
                0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Cards & Messages */
.ticket-initial {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
}

.checkbox-group {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.ticket-initial:hover, .ticket-message:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.ticket-reply {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.ticket-reply:hover {
    background: var(--bg-secondary);
    border-color: var(--border-hover);
}

.message-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #3b82f6;
    transition: all 0.2s ease;
}

.message-item:hover {
    background: var(--bg-secondary);
    border-color: var(--border-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* Navigation */
nav {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

nav .container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

nav a {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    color: var(--text-primary);
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

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

nav a:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    color: #ffffff;
    border-color: #3b82f6;
}

nav a:hover::before {
    left: 100%;
}

nav a:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.info-card {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: #93c5fd;
}

/* Login Page Specific Styles */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #111827 0%, #1a202c 100%);
}

/* Welcome Page (Login) */
.accueil-container {
    max-width: 450px;
    width: 100%;
    margin: 1rem;
    background: rgba(31, 41, 55, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.login-page .accueil-container:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.login-page .btn-primary {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.accueil-logo {
    max-width: 280px;
    width: 100%;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.accueil-title {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.accueil-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.accueil-desc {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Ticket List Containers */
.ticket-list-container {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.ticket-list-container:hover {
    box-shadow: var(--shadow-xl);
}

.ticket-list-header, .ticket-list-row {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.ticket-list-header {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    color: var(--text-primary);
    font-weight: 600;
    padding: 1rem;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.ticket-list-body .ticket-list-row {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.ticket-list-row:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.ticket-list-cell {
    padding: 0 1rem;
    box-sizing: border-box;
}

.ticket-list-cell.id { flex: 0 0 80px; font-weight: 700; color: var(--text-muted); }
.ticket-list-cell.user { flex: 1 1 140px; }
.ticket-list-cell.subject { flex: 2 1 300px; font-weight: 500; }
.ticket-list-cell.category { flex: 1 1 120px; }
.ticket-list-cell.status { flex: 0 0 140px; }
.ticket-list-cell.date { flex: 1 1 160px; color: var(--text-muted); font-size: 0.875rem; }
.ticket-list-cell.assigned { flex: 1 1 140px; }
.ticket-list-cell.action { flex: 0 0 100px; text-align: center; }
.ticket-list-cell.assign-action { flex: 0 0 140px; text-align: center; }

/* Ticket Form Layout */
.ticket-form-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

.form-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.info-section {
    position: sticky;
    top: 2rem;
}

.ticket-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

@media (max-width: 1024px) {
    .ticket-form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-section {
        position: static;
        order: -1;
    }
}

/* Legacy Status Classes */
.status-ferme, .status-ouvert, .status-encours, .status-resolu {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: capitalize;
    border: 1px solid;
    margin-right: 0.5rem;
    transition: all 0.2s ease;
}

.status-ferme {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    color: #dc2626;
    border-color: #ef4444;
}

.status-ouvert {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
    border-color: #10b981;
}

.status-encours {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #d97706;
    border-color: #f59e0b;
}

.status-resolu {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
    border-color: #3b82f6;
}

/* Announcements & Alerts */
.announcement {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    padding: 1.5rem;
    border-left: 4px solid #3b82f6;
    margin-bottom: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.announcement strong {
    color: #1d4ed8;
    font-weight: 700;
}

.info-box {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.5) 0%, rgba(31, 41, 55, 0.5) 100%);
    color: #d1d5db;
    padding: 1.5rem;
    border-left: 4px solid #f59e0b;
    margin: 2rem 0;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.info-box p {
    margin-bottom: 0;
}

.info-box strong {
    color: #f59e0b;
    font-weight: 700;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px; /* Espace entre l'avatar et le nom */
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #4a5568; /* Bordure discrète */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.test-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #f59e0b;
}

/* Ticket Display Styles */
.ticket-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.ticket-info-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ticket-info-value {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
}

.ticket-info-date {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.ticket-message-content {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-top: 1rem;
}

.message-author {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-tag {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 400;
}

.admin-tag {
    color: #60a5fa;
    font-size: 0.875rem;
    font-weight: 600;
}

.message-text {
    color: var(--text-secondary);
    line-height: 1.6;
    white-space: pre-wrap;
    margin-bottom: 1rem;
}

.message-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.closed-message {
    text-align: center;
    color: var(--text-muted);
    font-weight: 500;
    font-style: italic;
}

.error-message {
    background: rgba(220, 38, 38, 0.1);
    color: #fca5a5;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

/* Legal Page Styles */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.legal-info {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1rem 0 2rem 0;
}

.legal-info p {
    margin-bottom: 0.75rem;
}

.legal-info p:last-child {
    margin-bottom: 0;
}

.legal-info ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-info li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.legal-footer {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    margin: 2rem 0 1rem 0;
    font-size: 0.875rem;
}

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

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .ticket-form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-section {
        position: static;
        order: -1;
    }
    
    .ticket-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    header .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav .container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    nav a {
        text-align: center;
        width: 100%;
        min-width: auto;
    }
    
    .ticket-list-header, .ticket-list-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ticket-list-cell {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .ticket-list-cell::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 0.05em;
    }
    
    .ticket-list-cell:last-child {
        border-bottom: none;
    }
    
    .ticket-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .btn-primary, .btn-action, .btn-assign {
        width: 100%;
        justify-content: center;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .form-section, .card {
        padding: 1.5rem;
    }
    
    .ticket-initial {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .btn-primary {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Chat Interface Styles */
.chat-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.chat-message {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    max-width: 85%;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4a5568;
    flex-shrink: 0;
}

.chat-message-content {
    background-color: #2d3748;
    border-radius: 0.75rem;
    padding: 1rem;
    flex: 1;
}

.chat-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #e2e8f0;
}

.chat-message-header strong {
    font-weight: 600;
}

.chat-message-date {
    font-size: 0.8rem;
    color: #a0aec0;
}

.chat-message-body {
    color: #cbd5e0;
    line-height: 1.6;
}

.chat-message-body p {
    margin: 0;
}

/* User vs Admin messages */
.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.user-message .chat-message-content {
    background-color: #4a5568;
}

.admin-message {
    align-self: flex-start;
}

/* Homepage Grid Layout */
.homepage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.homepage-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.homepage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.homepage-card h4 {
    color: var(--primary-color);
    font-size: 1.125rem;
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.homepage-card p, .homepage-card ul {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
}

.homepage-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.homepage-card li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.homepage-card li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
}

/* Availability Box */
.availability-box {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.5) 0%, rgba(31, 41, 55, 0.5) 100%);
    color: #d1d5db;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    margin: 2rem 0;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.availability-box h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
}

.availability-box ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.availability-box li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.availability-box li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
}

/* Features Grid on Login Page */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2.5rem 0;
    text-align: left;
}

.feature-card {
    background: rgba(55, 65, 81, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    background: rgba(55, 65, 81, 0.7);
    border-color: var(--primary-color);
}

.feature-card h3 {
    color: var(--primary-color);
    font-size: 1.125rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Adjustments for login container */
.accueil-container {
    max-width: 600px; /* Increased width for new content */
}

.accueil-container .btn-primary {
    width: 100%;
    margin-top: 1.5rem;
}
