/* ============================================
   Tickets View — Kanban Dual-Mode (Light + Dark)
   ============================================ */

/* === Page Container (Light Mode Default) === */
.tickets-view {
    position: fixed;
    top: 45px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-body);
    color: var(--text-main);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
    font-family: 'Inter', sans-serif;
}

.tickets-view::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-panel) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-panel) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

/* === Top Bar === */
.tickets-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
}

.tickets-topbar h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    letter-spacing: -0.02em;
}

[data-theme="neon"] .tickets-topbar h1 {
    font-family: 'Cyberpunk', sans-serif !important;
    color: #fcee09 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 2.2rem;
    text-shadow: 1px 1px 0 var(--info), -1px -1px 0 var(--secondary);
}

[data-theme="neon"] .tickets-topbar h1 i {
    color: #fcee09 !important;
}

.dark-mode .tickets-topbar h1 { color: #f8fafc; }

.tickets-topbar h1 i {
    color: #f59e0b;
    font-size: 1.4rem;
}

.btn-new-ticket {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.3rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
}

.btn-new-ticket:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.35);
}

.btn-mark-all {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.4rem;
    background: rgba(16, 185, 129, 0.1); /* Success with opacity */
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-mark-all:hover {
    background: var(--success);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    border-color: var(--success);
}



/* Specific styling for the unread count in the global button */
.btn-mark-all i {
    font-size: 1rem;
}


.btn-mark-all i {
    font-size: 1.1rem;
    background: var(--success);
    color: white;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-mark-all:hover i {
    background: white;
    color: var(--success);
    transform: scale(1.1);
}





/* === Filters Bar === */
.tickets-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 2rem 1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    border: 1px solid var(--border-panel);
    background: var(--bg-body-secondary);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.filter-chip:hover {
    background: var(--bg-hover);
    color: var(--text-main);
}

.filter-chip.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.filters-separator {
    width: 1px;
    height: 20px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0 0.25rem;
}

.dark-mode .filters-separator { background: rgba(255, 255, 255, 0.08); }

.sort-chip {
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.02);
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.sort-chip:hover { color: #64748b; }

.sort-chip.active {
    color: #1e293b;
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
}

.dark-mode .sort-chip {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(148, 163, 184, 0.6);
}

.dark-mode .sort-chip.active {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

/* === Kanban Layout === */
.tickets-kanban {
    flex: 1;
    display: flex;
    gap: 1.25rem;
    padding: 0 2rem 1.5rem;
    min-height: 0;
    position: relative;
    z-index: 5;
}

.kanban-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: var(--bg-panel);
    border: 1px solid var(--border-panel);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.kanban-column.archives {
    flex: 0.7;
    opacity: 0.9;
}

.kanban-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.dark-mode .kanban-header { border-color: rgba(255, 255, 255, 0.05); }

.kanban-header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
}

.dark-mode .kanban-header-title { color: #e2e8f0; }

.kanban-header-title i { font-size: 1rem; opacity: 0.7; }

.kanban-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.dark-mode .kanban-count {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.kanban-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.dark-mode .kanban-body { scrollbar-color: rgba(255, 255, 255, 0.08) transparent; }

.kanban-body::-webkit-scrollbar { width: 5px; }
.kanban-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}
.dark-mode .kanban-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); }

/* === Ticket Card === */
.tk-card {
    background: var(--bg-card);
    border: 1px solid var(--border-panel);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.tk-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* Left accent bar */
/* Status-based borders (All around) */
.tk-card.status-pending { border: 2px solid #94a3b8; }
.tk-card.status-in_progress { border: 2px solid #f59e0b; }
.tk-card.status-resolved { border: 2px solid #10b981; }
.tk-card.status-refused { border: 2px solid #ef4444; }

.dark-mode .tk-card.status-pending { border-color: #64748b; }
.dark-mode .tk-card.status-in_progress { border-color: #fbbf24; }
.dark-mode .tk-card.status-resolved { border-color: #34d399; }
.dark-mode .tk-card.status-refused { border-color: #f87171; }

.tk-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}


/* Category theme backgrounds */
.tk-card .tk-theme-bg {
    position: absolute;
    inset: 0;
    background-size: 80px;
    background-position: right -10px bottom -10px;
    background-repeat: no-repeat;
    opacity: 0.08;
    pointer-events: none;
    border-radius: 14px;
    z-index: 0;
}

[data-theme="dark"] .tk-card .tk-theme-bg,
[data-theme="neon"] .tk-card .tk-theme-bg {
    opacity: 0.06;
}

.tk-card .tk-theme-bg.theme-bug { background-image: url('../../images/tickets/theme_bug.png'); }
.tk-card .tk-theme-bg.theme-suggestion { background-image: url('../../images/tickets/theme_suggestion.png'); }
.tk-card .tk-theme-bg.theme-jeux { background-image: url('../../images/tickets/theme_jeux.png'); }
.tk-card .tk-theme-bg.theme-ui { background-image: url('../../images/tickets/theme_ui.png'); }
.tk-card .tk-theme-bg.theme-autre { background-image: url('../../images/tickets/theme_autre.png'); }

/* === Card Header === */
.tk-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tk-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-main);
    line-height: 1.4;
    flex: 1;
    margin: 0;
}

.tk-badges {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

/* Category Badge */
.tk-cat {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tk-cat.cat-bug { background: var(--bg-cat-bug); color: var(--text-cat-bug); }
.tk-cat.cat-suggestion { background: var(--bg-cat-suggestion); color: var(--text-cat-suggestion); }
.tk-cat.cat-jeux { background: var(--bg-cat-jeux); color: var(--text-cat-jeux); }
.tk-cat.cat-ui { background: var(--bg-cat-ui); color: var(--text-cat-ui); }
.tk-cat.cat-autre { background: var(--bg-badge-neutral); color: var(--text-badge-neutral); }

/* Status Badge */
.tk-status {
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tk-status.st-pending { background: var(--bg-badge-neutral); color: var(--text-badge-neutral); }
.tk-status.st-in_progress { background: var(--bg-badge-warning); color: var(--text-badge-warning); }
.tk-status.st-resolved { background: var(--bg-badge-success); color: var(--text-badge-success); }
.tk-status.st-refused { background: var(--bg-badge-danger); color: var(--text-badge-danger); }

.tk-btn-unread {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    border: 1px solid rgba(16, 185, 129, 0.4);
    cursor: pointer;
    background: rgba(16, 185, 129, 0.06); 
    color: var(--success);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}


.tk-btn-unread:hover {
    background: var(--success);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.tk-btn-unread i {
    font-size: 1rem;
}





/* === Card Body === */
.tk-body {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
    margin-bottom: 0.6rem;
    white-space: pre-wrap;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Edited indicator — inline with badges */
.tk-edited {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-badge-warning);
    background: var(--bg-badge-warning);
    cursor: pointer;
    transition: opacity 0.2s;
}
.tk-edited:hover { opacity: 1; }

/* Admin comment */
.tk-admin-reply {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.6rem 0.85rem;
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    font-size: 0.8rem;
    color: var(--text-main);
}

.tk-admin-reply .reply-label {
    font-weight: 800;
    color: var(--primary);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* === Card Footer === */
.tk-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border-panel);
}

.tk-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.tk-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
}

.tk-avatar.cat-bug { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.tk-avatar.cat-suggestion { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.tk-avatar.cat-jeux { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.tk-avatar.cat-ui { background: linear-gradient(135deg, #10b981, #059669); }
.tk-avatar.cat-autre { background: linear-gradient(135deg, #64748b, #475569); }

.tk-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.6;
}

.tk-resolved-date {
    font-size: 0.68rem;
    color: var(--success);
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.tk-resolved-date.refused { color: var(--danger); }

.tk-actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* === Vote Button === */
.tk-vote {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    border: 1px solid var(--border-panel);
    background: var(--bg-alternate);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.tk-vote:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.tk-vote.voted {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* Archived: non-interactive vote */
.tk-vote.disabled {
    cursor: default;
    opacity: 0.5;
    pointer-events: none;
}

.tk-vote i { font-size: 0.85rem; transition: transform 0.3s ease; }
.tk-vote:active i { transform: scale(1.3); }

/* Vote tooltip */
.tk-vote-tip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    border: 1px solid #334155;
    color: #e2e8f0;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tk-vote-tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1e293b;
}

/* === Action Buttons === */
.tk-btn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: 1px solid var(--border-panel);
    background: var(--bg-alternate);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tk-btn:hover {
    background: var(--bg-hover);
    color: var(--text-main);
}

.tk-btn.btn-danger:hover {
    background: var(--bg-badge-danger);
    color: var(--danger);
    border-color: var(--danger);
}

/* === Admin Panel === */
.tk-admin {
    margin-top: 0.6rem;
    padding: 0.6rem 0.75rem;
    background: var(--bg-alternate);
    border: 1px solid var(--border-panel);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.tk-admin select {
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--border-panel);
    border-radius: 7px;
    background: var(--bg-input);
    color: var(--text-main);
    font-size: 0.78rem;
    cursor: pointer;
}

.tk-admin select option { background: var(--bg-card); color: var(--text-main); }

.tk-admin .admin-input {
    flex: 1;
    min-width: 150px;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border-panel);
    border-radius: 7px;
    background: var(--bg-input);
    color: var(--text-main);
    font-size: 0.78rem;
}

.tk-admin .admin-input::placeholder { color: var(--text-muted); opacity: 0.5; }

.tk-admin .btn-reply {
    padding: 0.3rem 0.7rem;
    border-radius: 7px;
    border: none;
    background: #3b82f6;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.tk-admin .btn-reply:hover { background: #2563eb; }

/* === Modal === */
.tk-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: tkFadeIn 0.2s ease;
}

[data-theme="dark"] .tk-modal-overlay,
[data-theme="neon"] .tk-modal-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.tk-modal {
    background: var(--bg-modal);
    border: 1px solid var(--border-panel);
    border-radius: 18px;
    width: 90%;
    max-width: 540px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: tkSlideUp 0.3s ease;
}

.tk-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-panel);
}

.tk-modal-header h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.tk-modal-close {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: var(--bg-alternate);
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.tk-modal-close:hover { background: var(--bg-badge-danger); color: var(--danger); }

.tk-modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.tk-modal-body label {
    font-weight: 700;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.3rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark-mode .tk-modal-body label { color: #94a3b8; }

.tk-modal-body input,
.tk-modal-body textarea,
.tk-modal-body select {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: #fff;
    color: #1e293b;
    font-size: 0.88rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.dark-mode .tk-modal-body input,
.dark-mode .tk-modal-body textarea,
.dark-mode .tk-modal-body select {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #f1f5f9;
}

.tk-modal-body input:focus,
.tk-modal-body textarea:focus,
.tk-modal-body select:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.tk-modal-body input::placeholder,
.tk-modal-body textarea::placeholder { color: #94a3b8; }

.dark-mode .tk-modal-body input::placeholder,
.dark-mode .tk-modal-body textarea::placeholder { color: rgba(148, 163, 184, 0.4); }

.tk-modal-body textarea { resize: vertical; min-height: 120px; }

.dark-mode .tk-modal-body select option { background: #1e293b; color: #e2e8f0; }

.tk-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.dark-mode .tk-modal-footer { border-color: rgba(255, 255, 255, 0.06); }

.tk-modal-footer .btn-cancel {
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    color: #64748b;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
}

.dark-mode .tk-modal-footer .btn-cancel { background: rgba(255, 255, 255, 0.06); color: #94a3b8; }
.tk-modal-footer .btn-cancel:hover { background: #e2e8f0; color: #334155; }
.dark-mode .tk-modal-footer .btn-cancel:hover { background: rgba(255, 255, 255, 0.1); color: #e2e8f0; }

.tk-modal-footer .btn-save {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.25);
}

.tk-modal-footer .btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

/* === Diff Blocks === */
.diff-block {
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.diff-block.original { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.diff-block.current { background: #ecfdf5; border: 1px solid #bbf7d0; color: #047857; }

.dark-mode .diff-block.original { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.dark-mode .diff-block.current { background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.2); color: #6ee7b7; }

.diff-label { font-weight: 800; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.25rem; }
.diff-block.original .diff-label { color: #dc2626; }
.diff-block.current .diff-label { color: #059669; }
.dark-mode .diff-block.original .diff-label { color: #f87171; }
.dark-mode .diff-block.current .diff-label { color: #34d399; }

/* === Empty / Loading === */
.kanban-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #94a3b8;
}

.dark-mode .kanban-empty { color: rgba(148, 163, 184, 0.4); }

.kanban-empty i { font-size: 2.5rem; margin-bottom: 0.75rem; display: block; }
.kanban-empty p { font-size: 0.85rem; }

.tickets-loading {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    gap: 0.75rem;
}

.dark-mode .tickets-loading { color: rgba(148, 163, 184, 0.5); }

/* === Animations === */
@keyframes tkFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes tkSlideUp { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* === Responsive === */
@media (max-width: 900px) {
    .tickets-kanban { flex-direction: column; padding: 0 1rem 1rem; }
    .kanban-column.archives { flex: 1; }
    .tickets-topbar, .tickets-filters { padding-left: 1rem; padding-right: 1rem; }
}

@media (max-width: 640px) {
    .tickets-topbar h1 { font-size: 1.2rem; }
    .tk-header { flex-direction: column; }
    .tk-footer { flex-direction: column; align-items: stretch; gap: 0.5rem; }
    .tk-actions { justify-content: flex-end; }
    .tk-admin { flex-direction: column; }
}
