/* Public "Track Complaint" page - standalone, no admin shell. */

:root {
    --tc-bg: #f1f5f9;
    --tc-card: #ffffff;
    --tc-border: #e2e8f0;
    --tc-text: #1e293b;
    --tc-muted: #64748b;
    --tc-primary: #4338ca;
    --tc-primary-dark: #3730a3;
    --tc-radius: 14px;
}

* {
    box-sizing: border-box;
}

body.tc-body {
    margin: 0;
    background: linear-gradient(180deg, #eef2ff 0%, var(--tc-bg) 340px);
    color: var(--tc-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.tc-topbar {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    color: #fff;
    padding: 14px 20px;
    box-shadow: 0 4px 18px rgba(67, 56, 202, .18);
}

.tc-topbar-inner {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tc-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
}

.tc-brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.tc-topbar a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    background: rgba(255, 255, 255, .16);
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .22);
    transition: background .2s;
}

.tc-topbar a:hover {
    background: rgba(255, 255, 255, .28);
}

.tc-main {
    flex: 1;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 26px 18px 40px;
}

.tc-hero {
    text-align: center;
    margin-bottom: 22px;
}

.tc-hero h1 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.3px;
}

.tc-hero p {
    margin: 0;
    color: var(--tc-muted);
    font-size: 14px;
}

.tc-card {
    background: var(--tc-card);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius);
    padding: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.tc-card + .tc-card {
    margin-top: 18px;
}

.tc-card h2 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
}

.tc-card .tc-sub {
    margin: 0 0 18px;
    color: var(--tc-muted);
    font-size: 13px;
}

.tc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tc-field label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.tc-field .tc-hint {
    font-size: 11.5px;
    color: var(--tc-muted);
}

.tc-field input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--tc-text);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.tc-field input:focus {
    outline: none;
    border-color: var(--tc-primary);
    box-shadow: 0 0 0 3px rgba(67, 56, 202, .14);
}

.tc-actions {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.tc-btn {
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    background: linear-gradient(135deg, var(--tc-primary), #6d28d9);
    color: #fff;
    box-shadow: 0 8px 20px rgba(67, 56, 202, .28);
    transition: transform .15s, box-shadow .2s;
}

.tc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(67, 56, 202, .35);
}

.tc-btn-ghost {
    background: #fff;
    color: var(--tc-primary);
    border: 1px solid #c7d2fe;
    box-shadow: none;
}

.tc-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 16px;
}

.tc-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.tc-alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.tc-alert-warn {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
}

.tc-status-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: 22px;
    font-size: 13px;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
}

.tc-status-badge.st-pending { background: #fef3c7; color: #92400e; }
.tc-status-badge.st-in_progress { background: #dbeafe; color: #1e40af; }
.tc-status-badge.st-info_requested { background: #cffafe; color: #155e75; }
.tc-status-badge.st-resolved { background: #d1fae5; color: #065f46; }
.tc-status-badge.st-rejected { background: #fee2e2; color: #991b1b; }
.tc-status-badge.st-revert_back { background: #ffedd5; color: #c2410c; }
.tc-status-badge.st-re_verification { background: #ede9fe; color: #6d28d9; }
.tc-status-badge.st-escalated { background: #fee2e2; color: #b91c1c; }
.tc-status-badge.st-final_closed { background: #e0e7ff; color: #4338ca; }

.tc-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.tc-meta-item {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    padding: 11px 13px;
}

.tc-meta-item span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #94a3b8;
    font-weight: 600;
}

.tc-meta-item strong {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.tc-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    margin: 22px 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tc-timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 6px;
    border-left: 2px solid #e2e8f0;
}

.tc-timeline li {
    position: relative;
    padding: 0 0 16px 20px;
}

.tc-timeline li:last-child {
    padding-bottom: 0;
}

.tc-timeline li::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e2e8f0;
}

.tc-timeline li.is-current::before {
    background: var(--tc-primary);
    box-shadow: 0 0 0 2px #c7d2fe;
}

.tc-timeline-label {
    font-weight: 600;
    font-size: 14px;
}

.tc-timeline-meta {
    font-size: 12px;
    color: var(--tc-muted);
}

.tc-remark {
    border: 1px solid #eef2f7;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: #fff;
}

.tc-remark-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: var(--tc-muted);
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.tc-remark-head strong {
    color: #334155;
    font-weight: 600;
}

.tc-remark p {
    margin: 0;
    font-size: 14px;
    color: #334155;
    white-space: pre-wrap;
    word-break: break-word;
}

.tc-note {
    font-size: 12.5px;
    color: var(--tc-muted);
    background: #f8fafc;
    border-radius: 10px;
    padding: 11px 14px;
    margin-top: 18px;
}

.tc-footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 20px 18px;
    font-size: 13px;
    text-align: center;
}

.tc-footer a {
    color: #a5b4fc;
    text-decoration: none;
}

.tc-footer a:hover {
    text-decoration: underline;
}

.tc-contact {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.tc-disabled {
    text-align: center;
    padding: 34px 20px;
}

.tc-disabled i {
    font-size: 42px;
    color: #cbd5e1;
}

.tc-disabled h2 {
    margin: 12px 0 6px;
}

.tc-disabled p {
    margin: 0 0 18px;
    color: var(--tc-muted);
}

@media (max-width: 640px) {
    .tc-form-grid {
        grid-template-columns: 1fr;
    }

    .tc-hero h1 {
        font-size: 22px;
    }

    .tc-card {
        padding: 18px;
    }
}
