/* ========== JEWTECH Client Manager — Frontend CSS ========== */
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@400;600;700;800&display=swap');

.jt-wrap { font-family: 'Assistant', sans-serif; direction: rtl; text-align: right; color: #1a2035; max-width: 900px; margin: 0 auto; padding: 20px 16px; }
.jt-rtl { direction: rtl; text-align: right; }

/* Cards */
.jt-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.07); margin-bottom: 20px; overflow: hidden; }
.jt-card-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #f0f2f5; }
.jt-card-title { font-size: 15px; font-weight: 800; color: #1a2035; }
.jt-card-body { padding: 20px; }
.jt-card-border-warning { border-right: 4px solid #f39c12; }
.jt-card-border-success  { border-right: 4px solid #27ae60; }

/* Auth */
.jt-auth-card { max-width: 560px; margin: 40px auto; background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,.1); padding: 36px; }
.jt-auth-logo { font-size: 22px; font-weight: 900; color: #1a2035; margin-bottom: 14px; }
.jt-auth-logo span { color: #3b8fe8; }
.jt-auth-title { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.jt-auth-sub { color: #888; font-size: 14px; margin-bottom: 20px; }

/* Buttons */
.jt-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 8px; border: none; font-family: 'Assistant', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; transition: all .2s; }
.jt-btn-primary { background: linear-gradient(135deg, #3b8fe8, #1a6fd4); color: #fff; }
.jt-btn-primary:hover { background: linear-gradient(135deg, #1a6fd4, #1558b0); transform: translateY(-1px); }
.jt-btn-outline { background: #fff; color: #3b8fe8; border: 1.5px solid #3b8fe8; }
.jt-btn-outline:hover { background: #f0f7ff; }
.jt-btn-sm { padding: 7px 14px; font-size: 13px; }
.jt-btn-full { width: 100%; justify-content: center; }

/* Forms */
.jt-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(max-width:600px){ .jt-form-row { grid-template-columns: 1fr; } }
.jt-fg { display: flex; flex-direction: column; gap: 5px; }
.jt-fg.jt-full { grid-column: 1 / -1; }
.jt-fg label { font-size: 13px; font-weight: 700; color: #555; }
.jt-fg input, .jt-fg select, .jt-fg textarea { padding: 9px 12px; border: 1.5px solid #dde4ee; border-radius: 8px; font-family: 'Assistant', sans-serif; font-size: 14px; outline: none; transition: border-color .2s; }
.jt-fg input:focus, .jt-fg select:focus, .jt-fg textarea:focus { border-color: #3b8fe8; }

/* Badges */
.jt-badge { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 20px; padding: 3px 10px; }
.jt-open    { background: #d4edda; color: #155724; }
.jt-answered{ background: #cce5ff; color: #004085; }
.jt-closed  { background: #f8d7da; color: #721c24; }
.jt-pending { background: #fff3cd; color: #856404; }
.jt-active  { background: #d4edda; color: #155724; }
.jt-badge-warning { background: #fff3cd; color: #856404; }
.jt-badge-success { background: #d4edda; color: #155724; }
.jt-badge-danger  { background: #f8d7da; color: #721c24; }

/* Alerts */
.jt-alert { padding: 10px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; margin: 8px 0; }
.jt-alert-success { background: #d4edda; color: #155724; }
.jt-alert-danger  { background: #f8d7da; color: #721c24; }

/* Info grid */
.jt-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:600px){ .jt-info-grid { grid-template-columns: 1fr; } }
.jt-info-field.jt-full { grid-column: 1 / -1; }
.jt-field-label { font-size: 12px; color: #aaa; font-weight: 700; text-transform: uppercase; margin-bottom: 3px; }
.jt-field-value { font-size: 15px; font-weight: 700; color: #1a2035; }
.jt-ro-note { font-size: 12px; color: #aaa; margin-top: 12px; background: #f9f9f9; border-radius: 6px; padding: 8px 12px; }

/* Status banner */
.jt-status-banner { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 10px; padding: 12px 20px; margin-bottom: 16px; box-shadow: 0 1px 6px rgba(0,0,0,.06); }
.jt-section-label { font-size: 12px; font-weight: 800; color: #aaa; text-transform: uppercase; letter-spacing: .5px; margin: 16px 0 8px; }

/* Ticket cards */
.jt-ticket-card { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 10px; box-shadow: 0 1px 6px rgba(0,0,0,.06); padding: 16px 20px; margin-bottom: 12px; border-right: 4px solid #ddd; transition: transform .15s, box-shadow .15s; }
.jt-ticket-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.jt-ticket-open     { border-right-color: #f39c12; }
.jt-ticket-answered { border-right-color: #3b8fe8; }
.jt-ticket-closed   { border-right-color: #bbb; opacity: .85; }
.jt-tc-id    { font-weight: 800; color: #aaa; min-width: 54px; font-size: 13px; }
.jt-tc-main  { flex: 1; }
.jt-tc-title { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.jt-tc-meta  { font-size: 12px; color: #888; }

/* Page title */
.jt-page-title { font-size: 22px; font-weight: 900; color: #1a2035; margin: 0 0 20px; }

/* Empty state */
.jt-empty-state { text-align: center; padding: 40px 20px; color: #aaa; font-size: 15px; }

/* Filter chips */
.jt-filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.jt-chip { background: #f0f2f5; color: #555; border: none; border-radius: 20px; padding: 6px 14px; font-family: 'Assistant', sans-serif; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .2s; }
.jt-chip.active { background: #1a2035; color: #fff; }

/* Timeline */
.jt-timeline { position: relative; padding-right: 20px; }
.jt-timeline::before { content:''; position: absolute; right: 7px; top: 0; bottom: 0; width: 2px; background: #eee; }
.jt-tl-item { display: flex; gap: 16px; margin-bottom: 20px; position: relative; }
.jt-tl-dot { width: 14px; height: 14px; border-radius: 50%; background: #3b8fe8; flex-shrink: 0; margin-top: 5px; border: 2px solid #fff; box-shadow: 0 0 0 2px #3b8fe8; }
.jt-dot-admin  { background: #7b1fa2; box-shadow: 0 0 0 2px #7b1fa2; }
.jt-dot-system { background: #888; box-shadow: 0 0 0 2px #888; }
.jt-dot-msg    { background: #e65100; box-shadow: 0 0 0 2px #e65100; }
.jt-tl-card { flex: 1; background: #fff; border-radius: 10px; box-shadow: 0 1px 6px rgba(0,0,0,.06); padding: 14px 18px; }
.jt-tl-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.jt-tl-tag  { font-size: 11px; font-weight: 800; border-radius: 4px; padding: 2px 8px; margin-bottom: 4px; display: inline-block; }
.jt-tag-ticket { background: #d4edda; color: #155724; }
.jt-tag-admin  { background: #e8d5f5; color: #6a1b9a; }
.jt-tag-system { background: #f0f2f5; color: #555; }
.jt-tag-msg    { background: #ffe0cc; color: #c0392b; }
.jt-tl-title { font-weight: 800; font-size: 14px; color: #1a2035; }
.jt-tl-time  { font-size: 11px; color: #aaa; white-space: nowrap; }
.jt-tl-body  { font-size: 13px; color: #555; line-height: 1.5; }
