/* ====================================================== */
/* TICKET SYSTEM STYLES                                  */
/* ====================================================== */

.ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    margin-bottom: 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    gap: 16px;
}

.ticket-item-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.ticket-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.ticket-info {
    flex: 1;
}

.ticket-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex: 1;
}

.ticket-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    flex: 1;
}

.ticket-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.ticket-description-preview {
    color: #4b5563;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.ticket-status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
    height: fit-content;
    line-height: 1.2;
}

.ticket-status-badge.status-open {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #3b82f6;
}

.ticket-status-badge.status-replied {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

.ticket-status-badge.status-waiting_user {
    background: #f3e8ff;
    color: #6b21a8;
    border: 1px solid #a855f7;
}

.ticket-status-badge.status-resolved {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.ticket-status-badge.status-closed {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #9ca3af;
}

/* Ticket Detail Modal */
.ticket-detail-info {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.ticket-detail-info h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item span {
    font-size: 15px;
    color: #111827;
    font-weight: 500;
}

.ticket-description {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
}

.ticket-description h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.ticket-description p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

.ticket-messages {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.ticket-messages h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message-item {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.message-item.public {
    background: #f9fafb;
    border-left: 4px solid #3b82f6;
}

.message-item.private {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.message-header strong {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.message-header span {
    font-size: 12px;
    color: #6b7280;
}

.message-content {
    color: #374151;
    line-height: 1.6;
    font-size: 14px;
}

@media (max-width: 768px) {
    .ticket-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .ticket-status-badge {
        align-self: flex-end;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

