/* ============================================
   HELPDESK TICKETS - Premium Styles
   Design inspire: Zendesk, Intercom, Freshdesk
   ============================================ */

/* ============================================
   TICKET CELL
   ============================================ */
.ticket-cell {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ticket-cell__subject {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticket-cell__preview {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

/* ============================================
   CATEGORY BADGE
   ============================================ */
.category-badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 0.5rem;
}

/* ============================================
   PRIORITY BADGES (Override)
   ============================================ */
.priority-badge-premium svg {
    width: 10px;
    height: 10px;
}

/* ============================================
   STATUS BADGES TICKET
   ============================================ */
.status-badge-ticket {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 9999px;
}

.status-badge-ticket svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.status-badge-ticket--open {
    background: #d1fae5;
    color: #059669;
}

.status-badge-ticket--in-progress {
    background: #dbeafe;
    color: #2563eb;
}

.status-badge-ticket--on-hold {
    background: #fef3c7;
    color: #d97706;
}

.status-badge-ticket--resolved {
    background: #ede9fe;
    color: #7c3aed;
}

.status-badge-ticket--closed {
    background: #f3f4f6;
    color: #6b7280;
}

/* ============================================
   CREATOR/ASSIGNEE CELL
   ============================================ */
.creator-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.creator-cell__name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.creator-cell__channel {
    font-size: 12px;
    color: #6b7280;
}

.assignee-cell {
    font-size: 14px;
    color: #374151;
}

.assignee-cell--empty {
    color: #9ca3af;
    font-style: italic;
}

/* ============================================
   DATE CELL
   ============================================ */
.date-cell-premium {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.date-cell-premium__date {
    font-size: 14px;
    color: #111827;
}

.date-cell-premium__time {
    font-size: 12px;
    color: #6b7280;
}

/* ============================================
   HELP CARDS (Sidebar)
   ============================================ */
.help-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

@media (max-width: 1024px) {
    .help-cards-grid {
        grid-template-columns: 1fr;
    }
}

.help-card-premium {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 24px;
}

.help-card-premium__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.help-card-premium__icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-card-premium__icon svg {
    width: 20px;
    height: 20px;
}

.help-card-premium__icon--purple {
    background: #ede9fe;
    color: #7c3aed;
}

.help-card-premium__icon--green {
    background: #d1fae5;
    color: #059669;
}

.help-card-premium__icon--blue {
    background: #dbeafe;
    color: #2563eb;
}

.help-card-premium__title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.help-card-premium__content {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* FAQ List */
.faq-list-premium {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-list-premium a {
    font-size: 14px;
    color: #7c3aed;
    text-decoration: none;
    transition: color 0.2s ease;
}

.faq-list-premium a:hover {
    color: #6d28d9;
}

/* Contact Info */
.contact-info-premium {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-info-premium__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.contact-info-premium__item svg {
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

/* System Status */
.system-status-premium {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.system-status-premium__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.system-status-premium__label {
    font-size: 14px;
    color: #6b7280;
}

.system-status-premium__value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #059669;
}

.system-status-premium__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.table-premium__row {
    animation: fadeIn-ticket 0.3s ease-out both;
}

@keyframes fadeIn-ticket {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .table-premium__row {
        animation: none;
    }
}
