/* ─── FireBug Ticket-Liste ─────────────────────────────── */

.ticket-item {
    transition: all 0.15s ease;
}
.ticket-item:hover {
    background: rgba(255, 106, 18, 0.06);
}

.ticket-detail {
    transition: all 0.2s ease;
}

/* Status-Farben */
.ticket-status-backlog {
    background: rgba(100, 100, 120, 0.15);
    color: #a0a0b0;
}
.ticket-status-draft {
    background: rgba(80, 80, 100, 0.12);
    color: #888;
}
.ticket-status-in_progress {
    background: rgba(255, 106, 18, 0.12);
    color: #ff6a12;
}
.ticket-status-paused {
    background: rgba(255, 200, 50, 0.08);
    color: #ffc832;
}
.ticket-status-review {
    background: rgba(255, 200, 50, 0.12);
    color: #ffc832;
}
.ticket-status-done {
    background: rgba(50, 200, 100, 0.12);
    color: #32c864;
}
.ticket-status-rejected {
    background: rgba(255, 60, 60, 0.12);
    color: #ff3c3c;
}
.ticket-status-aborted {
    background: rgba(120, 60, 60, 0.10);
    color: #aa5555;
}

/* Priority-Badge */
.ticket-priority-critical {
    color: #ff3c3c;
}
.ticket-priority-high {
    color: #ff6a12;
}
.ticket-priority-medium {
    color: #ffc832;
}
.ticket-priority-low {
    color: #888;
}

/* Agent-Badge */
.ticket-agent {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 106, 18, 0.1);
    color: #ff6a12;
    border: 1px solid rgba(255, 106, 18, 0.2);
}
.ticket-agent[data-agent="jupp"] {
    background: rgba(52, 199, 89, 0.1);
    color: #34C759;
    border-color: rgba(52, 199, 89, 0.2);
}
.ticket-agent[data-agent="ursel"] {
    background: rgba(255, 59, 48, 0.1);
    color: #FF3B30;
    border-color: rgba(255, 59, 48, 0.2);
}

/* ─── Modal ────────────────────────────────────────────── */
#ticket-modal input,
#ticket-modal textarea,
#ticket-modal select {
    transition: border-color 0.2s, box-shadow 0.2s;
}
#ticket-modal input:focus,
#ticket-modal textarea:focus,
#ticket-modal select:focus {
    box-shadow: 0 0 0 2px rgba(255, 106, 18, 0.15);
}
#ticket-modal ::-webkit-scrollbar {
    width: 6px;
}
#ticket-modal ::-webkit-scrollbar-track {
    background: transparent;
}
#ticket-modal ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

/* Sidebar: Lange Listennamen kürzen */
.tickets-list-filter .flex.items-center {
    min-width: 0;
    overflow: hidden;
}
.tickets-list-filter .text-sm.font-medium {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.tickets-list-filter .ml-auto {
    flex-shrink: 0;
}

/* Chrome Autocomplete */
#ticket-modal input:-webkit-autofill,
#ticket-modal textarea:-webkit-autofill,
#ticket-modal select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #131517 inset !important;
    -webkit-text-fill-color: #e0e0e0 !important;
    caret-color: #e0e0e0 !important;
    border: 1px solid #1e293b !important;
    border-radius: 0.75rem !important;
    outline: none !important;
    transition: background-color 50000s ease-in-out 0s;
}
#ticket-modal input:-webkit-autofill:focus,
#ticket-modal textarea:-webkit-autofill:focus,
#ticket-modal select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #131517 inset, 0 0 0 2px rgba(255, 106, 18, 0.15) !important;
    border: 1px solid #ff6a12 !important;
    border-radius: 0.75rem !important;
    outline: none !important;
    transition: background-color 50000s ease-in-out 0s;
}
