.ticket-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 8px;
    flex-shrink: 0;
}

.ticket-icon i {
    font-size: 16px;
    color: #ffffff;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.status-new {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-badge.status-open {
    background-color: #dcfce7;
    color: #166534;
}

.status-badge.status-in-progress {
    background-color: #fef3c7;
    color: #92400e;
}

.status-badge.status-waiting {
    background-color: #ede9fe;
    color: #6d28d9;
}

.status-badge.status-resolved {
    background-color: #ccfbf1;
    color: #0f766e;
}

.status-badge.status-closed {
    background-color: #f3f4f6;
    color: #6b7280;
}

.status-badge.status-default {
    background-color: #e0f2fe;
    color: #0369a1;
}

.priority-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.priority-badge.priority-critical {
    background-color: #fecaca;
    color: #991b1b;
}

.priority-badge.priority-high {
    background-color: #fed7aa;
    color: #9a3412;
}

.priority-badge.priority-medium {
    background-color: #fef3c7;
    color: #92400e;
}

.priority-badge.priority-low {
    background-color: #dcfce7;
    color: #166534;
}

.priority-badge.priority-default {
    background-color: #f3f4f6;
    color: #6b7280;
}

.ticket-number {
    font-weight: 600;
    color: #64748b;
    font-size: 13px;
}

.message-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #64748b;
    margin-left: 8px;
}

.message-count i {
    font-size: 11px;
}

/* Autocomplete Styles */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #cbd5e1;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: none;
}

.autocomplete-results.active {
    display: block;
}

.autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: #f8fafc;
}

.autocomplete-no-results {
    padding: 12px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.autocomplete-item-name {
    font-weight: 500;
    color: #0f172a;
}
