/* TECHenya Support Portal Styles */
.tesp-portal { max-width: 800px; margin: 0 auto; }
.tesp-auth-form { max-width: 400px; margin: 0 auto; }
.tesp-input { width: 100%; padding: 10px 14px; border: 2px solid var(--te-border, #e2e8f0); border-radius: 8px; font-size: 14px; outline: none; transition: border-color 0.2s; }
.tesp-input:focus { border-color: #0a66c2; box-shadow: 0 0 0 3px rgba(10,102,194,0.1); }
.tesp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; border: none; transition: all 0.2s; }
.tesp-btn-primary { background: #0a66c2; color: var(--te-bg-raised, #fff); }
.tesp-btn-primary:hover { background: #084e96; }
.tesp-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.tesp-btn-secondary { background: var(--te-bg-section-alt, #f1f5f9); color: var(--te-text-body, #334155); }
.tesp-btn-secondary:hover { background: var(--te-border, #e2e8f0); }
.tesp-msg { font-size: 13px; margin-top: 8px; text-align: center; }
.tesp-msg-error { color: var(--te-error, #dc2626); }
.tesp-msg-success { color: var(--te-success, #16a34a); }
.tesp-ticket-list { list-style: none; padding: 0; margin: 0; }
.tesp-ticket-item { padding: 12px 16px; border: 1px solid var(--te-border, #e2e8f0); border-radius: 8px; margin-bottom: 8px; cursor: pointer; transition: all 0.2s; display: flex; justify-content: space-between; align-items: center; }
.tesp-ticket-item:hover { border-color: #0a66c2; background: var(--te-bg-sunken, #f8fafc); }
.tesp-ticket-subject { font-weight: 600; color: var(--te-text-heading, #0f172a); font-size: 14px; }
.tesp-ticket-meta { font-size: 11px; color: var(--te-text-subtle, #94a3b8); }
.tesp-status { padding: 2px 8px; border-radius: 10px; font-size: 10px; color: var(--te-bg-raised, #fff); font-weight: 600; text-transform: uppercase; }
.tesp-status-open { background: var(--te-error, #dc2626); }
.tesp-status-in_progress { background: #f59e0b; }
.tesp-status-waiting { background: #6366f1; }
.tesp-status-resolved { background: var(--te-success, #16a34a); }
.tesp-status-closed { background: var(--te-text-muted, #64748b); }
.tesp-chat { max-height: 400px; overflow-y: auto; padding: 10px 0; }
.tesp-chat-msg { margin-bottom: 12px; padding: 10px 14px; border-radius: 10px; max-width: 85%; font-size: 14px; line-height: 1.5; }
.tesp-chat-customer { background: var(--te-bg-section-alt, #f1f5f9); margin-left: auto; }
.tesp-chat-agent { background: #eff6ff; border-left: 3px solid #0a66c2; }
.tesp-chat-ai { background: #fdf4ff; border-left: 3px solid #a855f7; }
.tesp-chat-system { background: #f0fdf4; border-left: 3px solid var(--te-success, #16a34a); font-style: italic; font-size: 13px; }
.tesp-chat-sender { font-size: 11px; color: var(--te-text-muted, #64748b); margin-bottom: 4px; }
.tesp-chat-time { font-size: 10px; color: var(--te-text-subtle, #94a3b8); margin-top: 4px; }
.tesp-reply-box { border-top: 1px solid var(--te-border, #e2e8f0); padding-top: 12px; margin-top: 12px; }
.tesp-reply-textarea { width: 100%; padding: 10px; border: 2px solid var(--te-border, #e2e8f0); border-radius: 8px; resize: vertical; min-height: 80px; font-size: 14px; }
.tesp-reply-textarea:focus { border-color: #0a66c2; outline: none; }
.tesp-activity-item { padding: 6px 0; border-bottom: 1px solid var(--te-bg-section-alt, #f1f5f9); font-size: 13px; }
.tesp-activity-label { font-weight: 500; color: var(--te-text-heading, #0f172a); }
.tesp-activity-date { font-size: 11px; color: var(--te-text-subtle, #94a3b8); }
.tesp-code-input { font-family: monospace; font-size: 24px; letter-spacing: 8px; text-align: center; padding: 12px; }
.tesp-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: var(--te-bg-raised, #fff); border-radius: 50%; animation: tesp-spin 0.6s linear infinite; }
@keyframes tesp-spin { to { transform: rotate(360deg); } }
