:root {
    --rc-teal: #0d9488;
    --rc-teal-dark: #0f766e;
    --rc-blue: #1d4ed8;
    --rc-blue-soft: #e0f2fe;
    --rc-bg: #f4f9fa;
    --rc-text: #1f2d3d;
}
body { background: var(--rc-bg); color: var(--rc-text); font-family: "Segoe UI", system-ui, -apple-system, sans-serif; }

/* Brand + nav */
.rc-brand { font-weight: 700; letter-spacing: .3px; color: #fff !important; }
.rc-nav { background: linear-gradient(90deg, var(--rc-teal-dark), var(--rc-blue)); }
.rc-nav .nav-link { color: rgba(255,255,255,.85); }
.rc-nav .nav-link:hover, .rc-nav .nav-link.active { color: #fff; font-weight: 600; }
.rc-nav .navbar-toggler { border-color: rgba(255,255,255,.5); }
.rc-nav .navbar-toggler-icon { filter: invert(1); }

/* Buttons */
.btn-rc { background: var(--rc-teal); border-color: var(--rc-teal); color: #fff; }
.btn-rc:hover, .btn-rc:focus { background: var(--rc-teal-dark); border-color: var(--rc-teal-dark); color: #fff; }
a { color: var(--rc-blue); }
.form-control:focus { border-color: var(--rc-teal); box-shadow: 0 0 0 .2rem rgba(13,148,136,.2); }

/* Auth pages */
.auth-wrap { min-height: 100vh; }
.auth-side {
    background: linear-gradient(160deg, var(--rc-teal-dark) 0%, var(--rc-blue) 100%);
    color: #fff; padding: 3rem;
}
.auth-side .logo { font-size: 1.8rem; font-weight: 700; }
.auth-side .lead { color: rgba(255,255,255,.9); }
.auth-side ul { list-style: none; padding: 0; }
.auth-side li { margin-bottom: .6rem; }
.auth-side li i { margin-right: .5rem; color: #99f6e4; }
.auth-form-col { background: #fff; }
.auth-card { max-width: 420px; width: 100%; }
.password-toggle { cursor: pointer; }

/* Chat */
.chat-box { background: #fff; border: 1px solid #d6e8ea; border-radius: .8rem; height: 58vh; min-height: 320px; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.chat-msg { max-width: 85%; padding: .6rem .9rem; border-radius: 1rem; white-space: pre-wrap; word-wrap: break-word; line-height: 1.45; }
.chat-msg.user { align-self: flex-end; background: var(--rc-teal); color: #fff; border-bottom-right-radius: .25rem; }
.chat-msg.assistant { align-self: flex-start; background: var(--rc-blue-soft); border-bottom-left-radius: .25rem; }
.chat-msg.typing { font-style: italic; opacity: .7; }
.chat-form { display: flex; gap: .5rem; align-items: stretch; }
.chat-form textarea { resize: none; }

/* Knowledge hub */
.kh-card { border: 1px solid #d6e8ea; border-radius: .8rem; background: #fff; height: 100%; text-decoration: none; color: inherit; display: block; transition: box-shadow .15s; }
.kh-card:hover { box-shadow: 0 4px 14px rgba(15,118,110,.15); color: inherit; }
.risk-badge-low { background: #198754; } .risk-badge-medium { background: #ffc107; color: #000; }
.risk-badge-high { background: #fd7e14; } .risk-badge-crisis { background: #dc3545; }

/* Dashboard */
.welcome-box { background: #fff; border-left: 5px solid var(--rc-teal); border-radius: .6rem; }
.support-card {
    background: linear-gradient(135deg, var(--rc-teal), #0891b2);
    color: #fff; border: 0; border-radius: 1rem;
}
.support-card .btn-light { color: var(--rc-teal-dark); font-weight: 600; }
.quick-card { border: 1px solid #d6e8ea; border-radius: .8rem; transition: box-shadow .15s; color: inherit; text-decoration: none; display: block; height: 100%; background: #fff; }
.quick-card:hover { box-shadow: 0 4px 14px rgba(15,118,110,.15); color: inherit; }
.quick-card .icon { font-size: 1.8rem; color: var(--rc-teal); }
.privacy-note { background: var(--rc-blue-soft); border-radius: .6rem; font-size: .9rem; color: #0c4a6e; }
