:root {
    --th-primary: #0a2d6e;      /* UBB-leaning corporate blue */
    --th-accent: #f5a623;       /* Jobee-leaning warm accent */
    --th-bg: #f4f6fa;
    --th-sidebar: #0a2d6e;
    --th-sidebar-hover: #14418f;
}

body {
    background: var(--th-bg);
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1d2533;
}

/* ---- Brand header ---- */
.th-header {
    background: #fff;
    border-bottom: 3px solid var(--th-accent);
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.th-logos { display: flex; align-items: center; gap: 1rem; }
.th-logos img { height: 34px; width: auto; }
.th-logos .th-sep { width: 1px; height: 30px; background: #dde3ee; }

/* ---- Sidebar ---- */
.th-sidebar {
    background: var(--th-sidebar);
    min-height: calc(100vh - 64px);
    width: 250px;
    color: #cdd7ee;
    transition: transform .2s ease;
}
.th-sidebar a {
    color: #cdd7ee;
    display: flex; align-items: center; gap: .65rem;
    padding: .65rem 1.1rem;
    text-decoration: none;
    border-left: 3px solid transparent;
    font-size: .95rem;
}
.th-sidebar a:hover { background: var(--th-sidebar-hover); color: #fff; }
.th-sidebar a.active {
    background: var(--th-sidebar-hover);
    color: #fff;
    border-left-color: var(--th-accent);
}
.th-sidebar .th-section {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
    color: #7e92c4; padding: 1rem 1.1rem .35rem;
}

.th-main { flex: 1; padding: 1.5rem; min-width: 0; }

/* ---- Cards / dashboard ---- */
.th-stat { border: none; border-radius: .75rem; box-shadow: 0 2px 8px rgba(10,45,110,.06); }
.th-stat .display-6 { color: var(--th-primary); font-weight: 600; }

.match-ring {
    --val: 0;
    width: 64px; height: 64px; border-radius: 50%;
    background: conic-gradient(var(--th-accent) calc(var(--val)*1%), #e6ebf5 0);
    display: grid; place-items: center;
    font-weight: 700; color: var(--th-primary);
}
.match-ring span { background: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; }

.avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--th-primary); color: #fff;
    display: grid; place-items: center; font-weight: 600;
    object-fit: cover;
}
.avatar-lg { width: 96px; height: 96px; font-size: 2rem; }

.skill-bar { height: 8px; border-radius: 4px; background: #e6ebf5; overflow: hidden; }
.skill-bar > i { display: block; height: 100%; background: var(--th-accent); }

.ai-note {
    background: #fff7e6; border-left: 4px solid var(--th-accent);
    padding: .6rem .85rem; border-radius: .35rem; font-size: .85rem; color: #6b4e00;
}

.btn-primary { background: var(--th-primary); border-color: var(--th-primary); }
.btn-primary:hover { background: #082453; border-color: #082453; }
.text-brand { color: var(--th-primary) !important; }
a { color: var(--th-primary); }

.timeline { list-style: none; padding-left: 0; }
.timeline li { border-left: 2px solid #dde3ee; padding: 0 0 1rem 1rem; position: relative; }
.timeline li::before { content:""; position:absolute; left:-6px; top:3px; width:10px; height:10px; border-radius:50%; background: var(--th-accent); }

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .th-sidebar {
        position: fixed; top: 64px; left: 0; z-index: 1040;
        transform: translateX(-100%);
    }
    .th-sidebar.open { transform: translateX(0); }
}

/* Accessibility: visible focus */
a:focus, button:focus, .form-control:focus, .form-select:focus {
    outline: 2px solid var(--th-accent); outline-offset: 1px;
}
