/* =====================================================
   TREINAMENTO CORPORATIVO — CSS BASE DO TEMA
   Tokens via CSS custom properties; zero hex hardcoded
   ===================================================== */

/* --- RESET & TOKENS --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --color-primary:    #2563EB;
    --color-secondary:  #0F172A;
    --color-accent:     #F59E0B;
    --color-bg:         #F8FAFC;
    --color-text:       #1E293B;
    --color-text-muted: #64748B;
    --color-border:     #E2E8F0;
    --color-surface:    #FFFFFF;
    --color-danger:     #DC2626;
    --color-success:    #16A34A;
    --color-warning:    #D97706;
    --radius-sm:        6px;
    --radius:           12px;
    --radius-lg:        16px;
    --shadow-sm:        0 1px 3px rgba(0,0,0,.08);
    --shadow:           0 4px 16px rgba(0,0,0,.10);
    --shadow-lg:        0 8px 32px rgba(0,0,0,.14);
    --transition:       150ms ease;
    --font-sans:        'Plus Jakarta Sans', system-ui, sans-serif;
    --font-mono:        'JetBrains Mono', 'Fira Code', monospace;
    --sidebar-w:        240px;
    --topbar-h:         60px;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* --- LAYOUT --- */
.tc-layout {
    display: flex;
    min-height: 100vh;
}
.tc-main {
    flex: 1;
    min-width: 0;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
}
.tc-content {
    flex: 1;
    padding: 28px 32px;
    max-width: 1200px;
    width: 100%;
}

/* Viewer layout (course) */
.tc-layout-viewer .tc-main { margin-left: var(--sidebar-w); }
.tc-main-viewer { overflow: hidden; }
.tc-viewer-wrap {
    display: flex;
    height: calc(100vh - var(--topbar-h));
    overflow: hidden;
}

/* --- SIDEBAR (EMPLOYEE) --- */
.tc-sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--color-secondary);
    display: flex;
    flex-direction: column;
    z-index: 200;
    transition: transform var(--transition);
}
.tc-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.tc-sidebar-logo { height: 36px; object-fit: contain; }
.tc-sidebar-brand { color: #fff; font-weight: 700; font-size: 15px; }
.tc-sidebar-toggle {
    background: none; border: none; color: rgba(255,255,255,.5);
    padding: 4px; border-radius: var(--radius-sm);
    display: none;
}
.tc-sidebar-toggle:hover { color: #fff; background: rgba(255,255,255,.1); }

.tc-sidebar-nav {
    flex: 1;
    padding: 12px 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tc-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,.65);
    font-size: 13.5px;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
}
.tc-nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.tc-nav-item.active { background: var(--color-primary); color: #fff; }
.tc-nav-icon { flex-shrink: 0; display: flex; align-items: center; }
.tc-nav-label { flex: 1; }

.tc-sidebar-footer {
    padding: 16px 16px 20px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    gap: 10px;
}
.tc-user-info { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.tc-user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px;
    flex-shrink: 0;
}
.tc-user-meta { display: flex; flex-direction: column; min-width: 0; }
.tc-user-name {
    color: #fff; font-size: 13px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tc-user-dept { color: rgba(255,255,255,.5); font-size: 11px; }
.tc-logout-btn {
    color: rgba(255,255,255,.5); background: none; border: none;
    padding: 6px; border-radius: var(--radius-sm);
    display: flex; align-items: center;
    transition: color var(--transition), background var(--transition);
}
.tc-logout-btn:hover { color: #fff; background: rgba(255,255,255,.1); }

/* Mobile overlay */
.tc-sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 199;
}

/* --- TOPBAR --- */
.tc-topbar {
    position: sticky;
    top: 0;
    height: var(--topbar-h);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 12px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.tc-topbar-menu-toggle {
    display: none;
    background: none; border: none; color: var(--color-text-muted);
    padding: 6px; border-radius: var(--radius-sm);
}
.tc-topbar-menu-toggle:hover { background: var(--color-bg); color: var(--color-text); }
.tc-topbar-title { font-weight: 700; font-size: 15px; flex: 1; }
.tc-topbar-actions { display: flex; align-items: center; gap: 8px; position: relative; }

/* Notifications */
.tc-notif-btn {
    position: relative; background: none; border: none;
    color: var(--color-text-muted);
    padding: 8px; border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.tc-notif-btn:hover { background: var(--color-bg); color: var(--color-text); }
.tc-notif-badge {
    position: absolute; top: 4px; right: 4px;
    width: 16px; height: 16px;
    background: var(--color-danger);
    color: #fff; border-radius: 50%;
    font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.tc-notif-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    width: 320px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 300;
}
.tc-notif-header {
    padding: 12px 16px;
    font-weight: 600; font-size: 13px;
    border-bottom: 1px solid var(--color-border);
}
.tc-notif-list { max-height: 320px; overflow-y: auto; }
.tc-notif-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    font-size: 13px; line-height: 1.5;
}
.tc-notif-item:last-child { border-bottom: none; }
.tc-notif-empty { padding: 20px 16px; color: var(--color-text-muted); text-align: center; font-size: 13px; }

/* --- BUTTONS --- */
.tc-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600;
    border: none; cursor: pointer;
    transition: opacity var(--transition), box-shadow var(--transition), background var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.tc-btn:hover { opacity: .88; }
.tc-btn:active { opacity: .75; }
.tc-btn-primary { background: var(--color-primary); color: #fff; }
.tc-btn-primary:hover { opacity: 1; box-shadow: 0 4px 12px rgba(37,99,235,.35); }
.tc-btn-ghost {
    background: transparent; color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
}
.tc-btn-ghost:hover { background: var(--color-primary); color: #fff; opacity: 1; }
.tc-btn-danger { background: var(--color-danger); color: #fff; }
.tc-btn-sm { padding: 6px 12px; font-size: 12.5px; }
.tc-btn-lg { padding: 12px 24px; font-size: 15px; }
.tc-btn-full { width: 100%; justify-content: center; }
.tc-btn[disabled] { opacity: .45; cursor: not-allowed; }

/* --- FORMS --- */
.tc-form-group { display: flex; flex-direction: column; gap: 6px; }
.tc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tc-label { font-size: 13px; font-weight: 600; color: var(--color-text); }
.tc-hint { font-size: 11.5px; color: var(--color-text-muted); }
.tc-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 14px; color: var(--color-text);
    background: var(--color-surface);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.tc-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.tc-input[disabled] { background: var(--color-bg); color: var(--color-text-muted); cursor: not-allowed; }
.tc-input-wrapper { position: relative; }
.tc-input-wrapper .tc-input { padding-right: 40px; }
.tc-input-toggle-pass {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--color-text-muted);
    display: flex; align-items: center;
}
.tc-checkbox-label { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; cursor: pointer; }
.tc-checkbox-label input { margin-top: 2px; }
.tc-mb-4 { margin-bottom: 16px; }
.tc-mt-4 { margin-top: 16px; }

/* --- ALERTS --- */
.tc-alert {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    margin-bottom: 16px;
}
.tc-alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.tc-alert-success { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.tc-alert-info { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.tc-alert-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }

/* --- CARDS --- */
.tc-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

/* --- BADGES --- */
.tc-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .4px;
}
.tc-badge-green  { background: #DCFCE7; color: #166534; }
.tc-badge-yellow { background: #FEF9C3; color: #854D0E; }
.tc-badge-red    { background: #FEE2E2; color: #991B1B; }
.tc-badge-gray   { background: #F1F5F9; color: #475569; }
.tc-badge-blue   { background: #DBEAFE; color: #1D4ED8; }

/* --- PROGRESS BAR --- */
.tc-progress-bar-wrap { display: flex; align-items: center; gap: 8px; }
.tc-progress-bar {
    flex: 1; height: 6px;
    background: var(--color-border);
    border-radius: 99px; overflow: hidden;
}
.tc-progress-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 99px;
    transition: width .4s ease;
}
.tc-progress-label { font-size: 11.5px; font-weight: 600; color: var(--color-text-muted); min-width: 30px; }

/* --- COURSE CARDS --- */
.tc-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 16px;
}
.tc-course-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex; flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
    box-shadow: var(--shadow-sm);
}
.tc-course-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tc-course-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--color-bg);
    overflow: hidden;
}
.tc-course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tc-course-thumb-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-border);
}
.tc-course-thumb .tc-badge {
    position: absolute; top: 8px; right: 8px;
}
.tc-course-info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tc-course-title { font-size: 14px; font-weight: 600; line-height: 1.4; }
.tc-course-deadline { font-size: 11.5px; color: var(--color-warning); font-weight: 500; }
.tc-cert-link { font-size: 12px; color: var(--color-primary); font-weight: 600; }

/* --- WELCOME BANNER --- */
.tc-welcome-banner {
    background: linear-gradient(135deg, var(--color-primary), #1D4ED8);
    border-radius: var(--radius);
    padding: 24px 28px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    color: #fff;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.tc-welcome-title { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.tc-welcome-sub { opacity: .85; font-size: 14px; }
.tc-welcome-banner .tc-btn-primary {
    background: rgba(255,255,255,.2);
    border: 1.5px solid rgba(255,255,255,.4);
    color: #fff;
    backdrop-filter: blur(4px);
}
.tc-welcome-banner .tc-btn-primary:hover { background: rgba(255,255,255,.3); }

/* --- SUMMARY CARDS --- */
.tc-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.tc-summary-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex; align-items: center; gap: 14px;
    box-shadow: var(--shadow-sm);
}
.tc-summary-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.tc-summary-value { display: block; font-size: 24px; font-weight: 800; line-height: 1; }
.tc-summary-label { display: block; font-size: 12px; color: var(--color-text-muted); margin-top: 2px; }

/* --- SECTION HEADER --- */
.tc-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.tc-section-header h2 { font-size: 16px; font-weight: 700; }
.tc-link { font-size: 13px; color: var(--color-primary); font-weight: 600; }
.tc-link:hover { text-decoration: underline; }

/* --- PAGE HEADER --- */
.tc-page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap; gap: 8px;
}
.tc-page-title { font-size: 20px; font-weight: 800; }
.tc-page-count { font-size: 13px; color: var(--color-text-muted); }

/* --- FILTER BAR --- */
.tc-filter-bar {
    display: flex; gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.tc-filter-search { flex: 1; min-width: 200px; }
.tc-filter-select { min-width: 140px; width: auto; }

/* --- PAGINATION --- */
.tc-pagination {
    display: flex; gap: 6px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}
.tc-page-btn {
    min-width: 36px; height: 36px; padding: 0 8px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 13px; font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}
.tc-page-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.tc-page-btn.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* --- EMPTY STATE --- */
.tc-empty-state {
    grid-column: 1 / -1;
    padding: 32px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 14px;
}
.tc-empty-state-lg {
    padding: 64px 32px;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    color: var(--color-text-muted);
}
.tc-empty-state-lg svg { opacity: .3; }

/* --- SKELETON --- */
.tc-skeleton {
    background: linear-gradient(90deg, var(--color-bg) 25%, var(--color-border) 50%, var(--color-bg) 75%);
    background-size: 200% 100%;
    animation: tc-shimmer 1.4s infinite;
    border-radius: var(--radius-sm);
}
@keyframes tc-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.tc-skeleton-card { pointer-events: none; }
.tc-skeleton-card .tc-course-thumb { background: var(--color-bg); }
.tc-skeleton-line { height: 14px; margin: 6px 0; }
.tc-skeleton-bar { height: 6px; border-radius: 99px; margin-top: 8px; }

/* --- MODAL --- */
.tc-modal {
    position: fixed; inset: 0;
    z-index: 500;
    display: flex; align-items: center; justify-content: center;
}
.tc-modal-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(2px);
}
.tc-modal-box {
    position: relative; z-index: 1;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    width: 90%; max-width: 520px;
    box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}
.tc-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--color-border);
}
.tc-modal-header h2 { font-size: 16px; font-weight: 700; }
.tc-modal-close {
    background: none; border: none; font-size: 22px;
    color: var(--color-text-muted); cursor: pointer; line-height: 1;
    padding: 2px 6px; border-radius: var(--radius-sm);
}
.tc-modal-close:hover { background: var(--color-bg); color: var(--color-text); }
.tc-modal-body { padding: 20px 24px; overflow-y: auto; }
.tc-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--color-border);
    display: flex; justify-content: flex-end; gap: 8px;
}

/* Certificate modal */
.tc-modal-cert { max-width: 400px; }
.tc-modal-cert-body { text-align: center; }
.tc-cert-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: #F0FDF4;
    color: var(--color-success);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.tc-cert-modal-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }

/* --- ERROR PAGE --- */
.tc-error-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: var(--color-bg);
}
.tc-error-box { text-align: center; padding: 40px; }
.tc-error-code { display: block; font-size: 80px; font-weight: 900; color: var(--color-primary); line-height: 1; }
.tc-error-box h1 { font-size: 22px; margin: 12px 0 8px; }
.tc-error-box p { color: var(--color-text-muted); margin-bottom: 24px; }

/* --- CERTIFICATE CARDS --- */
.tc-certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.tc-cert-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
    transition: box-shadow var(--transition);
}
.tc-cert-card:hover { box-shadow: var(--shadow); }
.tc-cert-card-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--color-bg);
    overflow: hidden;
}
.tc-cert-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tc-cert-thumb-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-border);
}
.tc-cert-badge {
    position: absolute; top: 8px; right: 8px;
    display: flex; align-items: center; gap: 4px;
    background: #DCFCE7; color: #166534;
    padding: 4px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 700;
}
.tc-cert-card-body { padding: 14px 16px; flex: 1; }
.tc-cert-course-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.tc-cert-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.tc-cert-meta-item { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--color-text-muted); }
.tc-cert-uuid { font-size: 11px; color: var(--color-text-muted); word-break: break-all; }
.tc-cert-uuid code { font-family: var(--font-mono); }
.tc-cert-card-actions {
    padding: 12px 16px;
    border-top: 1px solid var(--color-border);
    display: flex; gap: 8px;
}

/* --- PROFILE PAGE --- */
.tc-profile-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: start;
}
.tc-profile-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.tc-profile-avatar-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tc-profile-avatar-lg {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 800;
    margin-bottom: 8px;
}
.tc-profile-name { font-size: 17px; font-weight: 800; }
.tc-profile-dept { font-size: 13px; color: var(--color-text-muted); }
.tc-profile-cargo { font-size: 12.5px; color: var(--color-text-muted); }
.tc-profile-stats {
    display: flex; gap: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-top: 16px; width: 100%;
}
.tc-profile-stat {
    flex: 1; padding: 12px 8px; text-align: center;
    border-right: 1px solid var(--color-border);
}
.tc-profile-stat:last-child { border-right: none; }
.tc-profile-stat-value { display: block; font-size: 20px; font-weight: 800; }
.tc-profile-stat-label { font-size: 11px; color: var(--color-text-muted); }
.tc-profile-form { display: flex; flex-direction: column; gap: 16px; }
.tc-profile-section-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.tc-profile-lgpd-text { font-size: 13px; color: var(--color-text-muted); line-height: 1.6; margin-bottom: 16px; }
.tc-profile-lgpd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tc-profile-form-card { grid-column: 2; }
.tc-profile-lgpd-card { grid-column: 2; }

/* Password strength */
.tc-password-strength {
    height: 4px; border-radius: 99px;
    background: var(--color-border);
    overflow: hidden; margin-top: 4px;
}
.tc-strength-fill {
    height: 100%; border-radius: 99px;
    transition: width .3s, background .3s;
}
.tc-strength-fill.weak { background: var(--color-danger); }
.tc-strength-fill.fair { background: var(--color-warning); }
.tc-strength-fill.good { background: var(--color-accent); }
.tc-strength-fill.strong { background: var(--color-success); }

/* --- CERTIFICATE VERIFICATION PAGE --- */
.tc-verify-page {
    min-height: 100vh;
    background: var(--color-bg);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 32px 20px;
    gap: 24px;
}
.tc-verify-branding { text-align: center; }
.tc-verify-logo { height: 48px; margin: 0 auto 8px; }
.tc-verify-brand-name { font-size: 22px; font-weight: 800; display: block; }
.tc-verify-subtitle { font-size: 13px; color: var(--color-text-muted); }
.tc-verify-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%; max-width: 520px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.tc-verify-icon {
    width: 80px; height: 80px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.tc-verify-icon-success { background: #F0FDF4; color: var(--color-success); }
.tc-verify-icon-error   { background: #FEF2F2; color: var(--color-danger); }
.tc-verify-icon-neutral { background: #EFF6FF; color: var(--color-primary); }
.tc-verify-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.tc-verify-text { color: var(--color-text-muted); font-size: 14px; margin-bottom: 24px; }
.tc-verify-details {
    text-align: left;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
}
.tc-verify-detail-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border);
    gap: 12px;
}
.tc-verify-detail-row:last-child { border-bottom: none; }
.tc-verify-detail-label { font-size: 12.5px; color: var(--color-text-muted); font-weight: 600; min-width: 100px; }
.tc-verify-detail-value { font-size: 13px; font-weight: 500; text-align: right; }
.tc-verify-uuid code { font-family: var(--font-mono); font-size: 11px; word-break: break-all; }
.tc-verify-seal {
    display: inline-flex; align-items: center; gap: 6px;
    background: #F0FDF4; color: #166534;
    padding: 8px 16px; border-radius: 20px;
    font-size: 12.5px; font-weight: 600;
}
.tc-verify-form { display: flex; flex-direction: column; gap: 12px; }
.tc-verify-input { text-align: center; font-family: var(--font-mono); font-size: 13px; }
.tc-verify-footer { font-size: 12px; color: var(--color-text-muted); text-align: center; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .tc-main { margin-left: 0; }
    .tc-sidebar { transform: translateX(-100%); }
    .tc-sidebar.open { transform: translateX(0); }
    .tc-sidebar-toggle { display: flex; }
    .tc-topbar-menu-toggle { display: flex; }
    .tc-sidebar-overlay.open { display: block; }
    .tc-content { padding: 20px 16px; }
    .tc-profile-grid { grid-template-columns: 1fr; }
    .tc-profile-form-card,
    .tc-profile-lgpd-card { grid-column: 1; }
    .tc-form-row { grid-template-columns: 1fr; }
    .tc-welcome-banner { flex-direction: column; align-items: flex-start; }
    .tc-viewer-wrap { flex-direction: column; height: auto; }
}

@media (max-width: 600px) {
    .tc-summary-grid { grid-template-columns: 1fr 1fr; }
    .tc-courses-grid { grid-template-columns: 1fr; }
    .tc-certs-grid { grid-template-columns: 1fr; }
    .tc-filter-bar { flex-direction: column; }
    .tc-filter-select { width: 100%; }
    .tc-verify-card { padding: 24px 16px; }
}
