:root {
    --rhrm-primary: #7A1E1E;
    --rhrm-primary-dark: #551414;
    --rhrm-primary-soft: #f8eeee;
    --rhrm-accent: #C9A227;
    --rhrm-ink: #25202a;
    --rhrm-muted: #6f6672;
}

body { background: #f5f6f8; color: var(--rhrm-ink); }
.rhrm-topbar { background: #fff !important; }
.rhrm-topbar .navbar-header { background: #fff !important; }
.rhrm-module-nav { background: var(--rhrm-primary) !important; }
.rhrm-module-nav .nav-link, .rhrm-module-nav .nav-link i { color: #fff !important; }
.rhrm-module-nav .dropdown-menu { border: 0; box-shadow: 0 12px 28px rgba(37,32,42,.14); }
.brand-logo { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border: 1px solid rgba(122,30,30,.25); border-radius: 6px; color: var(--rhrm-primary); margin-right: .5rem; }
.brand-text { color: var(--rhrm-primary) !important; font-weight: 800 !important; }
.btn-rhrm { background: var(--rhrm-primary); border-color: var(--rhrm-primary); color: #fff; }
.btn-rhrm:hover, .btn-rhrm:focus { background: var(--rhrm-primary-dark); border-color: var(--rhrm-primary-dark); color: #fff; }
.btn-outline-rhrm { border-color: var(--rhrm-primary); color: var(--rhrm-primary); }
.btn-outline-rhrm:hover { background: var(--rhrm-primary); color: #fff; }
.badge-rhrm { background: var(--rhrm-primary-soft); color: var(--rhrm-primary); border: 1px solid rgba(122,30,30,.15); }
.badge-rhrm-success { background: #e9f7ef; color: #1e7e34; border: 1px solid rgba(30,126,52,.2); }
.card { border: 0; border-radius: 8px; box-shadow: 0 8px 22px rgba(37,32,42,.06); }
.rhrm-alert { border-radius: 8px; }
.rhrm-metric .card-body { min-height: 116px; }
.rhrm-metric h3 { color: var(--rhrm-primary); font-weight: 700; margin-bottom: .25rem; }
.rhrm-metric-icon { color: var(--rhrm-accent); font-size: 2.5rem; }
.rhrm-module-list { display: grid; gap: .75rem; }
.rhrm-module-chip { display: flex; align-items: center; gap: .65rem; padding: .75rem; border: 1px solid #ece9ed; border-radius: 8px; color: var(--rhrm-ink); }
.rhrm-module-chip:hover { border-color: var(--rhrm-primary); color: var(--rhrm-primary); }
.rhrm-horizontal .content-wrapper { padding-top: 1.5rem; }
.rhrm-login { min-height: 100vh; background: linear-gradient(135deg, var(--rhrm-primary-dark), var(--rhrm-primary) 52%, #2c2930); }
.login-wrapper { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.login-panel { width: min(430px, 100%); background: #fff; border-radius: 8px; padding: 2rem; box-shadow: 0 24px 70px rgba(0,0,0,.22); }
.login-panel h1, .rhrm-login h1 { color: var(--rhrm-primary); font-weight: 800; margin-bottom: .25rem; }
.login-panel p { color: var(--rhrm-muted); }
.login-mark { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 8px; background: var(--rhrm-primary-soft); color: var(--rhrm-primary); font-size: 1.8rem; margin-bottom: 1rem; }
.rhrm-module-toggle { display: grid; grid-template-columns: 48px 1fr; gap: .85rem; padding: 1rem; border: 1px solid #ece9ed; border-radius: 8px; min-height: 132px; cursor: pointer; }
.rhrm-module-toggle input { display: none; }
.toggle-visual { width: 42px; height: 24px; border-radius: 16px; background: #c9c3ca; position: relative; margin-top: .25rem; }
.toggle-visual::after { content: ""; position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .18s ease; }
.rhrm-module-toggle input:checked + .toggle-visual { background: var(--rhrm-primary); }
.rhrm-module-toggle input:checked + .toggle-visual::after { transform: translateX(18px); }
.module-copy strong { display: block; color: var(--rhrm-ink); margin-bottom: .35rem; }
.module-copy small { color: var(--rhrm-muted); line-height: 1.35; }
.rhrm-avatar { width: 90px; height: 90px; display: grid; place-items: center; margin: 0 auto 1rem; border-radius: 50%; background: var(--rhrm-primary-soft); color: var(--rhrm-primary); font-weight: 800; font-size: 2rem; }
.rhrm-detail-grid span { display: block; color: var(--rhrm-muted); font-size: .82rem; }
.rhrm-detail-grid strong { display: block; margin-bottom: 1rem; }
.rhrm-feature-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 8px; background: var(--rhrm-primary-soft); color: var(--rhrm-primary); font-size: 2rem; }
.rhrm-capability { padding: .85rem; border: 1px solid #ece9ed; border-radius: 8px; display: flex; gap: .6rem; align-items: center; min-height: 58px; }
.rhrm-capability i { color: var(--rhrm-primary); }

@media (max-width: 767px) {
    .content-wrapper { padding: 1rem; }
    .card-header { display: block !important; }
    .card-header .btn { margin-top: .75rem; }
}
