:root {
    --rb-black: #1D1E1C;
    --rb-white: #FFFFFF;
    --rb-red: #E10B17;
    --rb-red-hover: #C90914;
    --rb-gray-900: #252724;
    --rb-gray-800: #2E2F2D;
    --rb-gray-100: #F5F5F5;
    --rb-font-family: 'Puffin Display Soft', puffin-display-soft, Puffin, puffin, system-ui, sans-serif;
    --rb-radius-btn: 9999px;
    --rb-radius-card: 0;
}

body.rb-app-shell,
body.rb-guest-body,
body.rb-customer-body {
    font-family: var(--rb-font-family);
}

/* =============================================================================
   App shell — dark sidebar + navbar (matches login binnenkomer)
   ============================================================================= */
body.rb-app-shell {
    --bs-primary: #E10B17;
    --bs-primary-rgb: 225, 11, 23;
    --bs-link-color: #E10B17;
    --bs-link-hover-color: #C90914;
}

body.rb-app-shell .sidebar,
body.rb-app-shell .sidebar-content,
body.rb-app-shell .sidebar-nav,
body.rb-app-shell .sidebar-item {
    background: var(--rb-black) !important;
    border-right: none;
}

body.rb-app-shell .sidebar {
    border-right: 1px solid var(--rb-gray-800);
}

body.rb-app-shell .sidebar-brand {
    padding: 1.25rem 1.5rem;
    background: var(--rb-black) !important;
    border-bottom: 3px solid var(--rb-red);
}

body.rb-app-shell .sidebar-brand-text {
    color: var(--rb-white) !important;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

body.rb-app-shell .sidebar-header {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-top: 1rem;
}

body.rb-app-shell .sidebar-link,
body.rb-app-shell a.sidebar-link,
body.rb-app-shell .sidebar-link span {
    color: rgba(255, 255, 255, 0.72) !important;
    background: transparent !important;
    font-weight: 500;
    border-radius: 0 !important;
    border-left: none !important;
    transition: background 0.15s ease, color 0.15s ease;
}

body.rb-app-shell .sidebar-link i,
body.rb-app-shell .sidebar-link svg,
body.rb-app-shell a.sidebar-link i,
body.rb-app-shell a.sidebar-link svg {
    color: inherit !important;
    stroke: currentColor;
}

body.rb-app-shell .sidebar-link:hover,
body.rb-app-shell .sidebar-link:hover i,
body.rb-app-shell .sidebar-link:hover svg {
    color: var(--rb-white) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

body.rb-app-shell .sidebar-item.active > .sidebar-link,
body.rb-app-shell .sidebar-item.active .sidebar-link,
body.rb-app-shell .sidebar-item.active > .sidebar-link:hover {
    color: var(--rb-white) !important;
    background: var(--rb-red) !important;
    background-image: none !important;
    border-left: none !important;
}

body.rb-app-shell .sidebar-item.active .sidebar-link i,
body.rb-app-shell .sidebar-item.active .sidebar-link svg {
    color: inherit !important;
}

/* Subitems: inspringing, zelfde kleur als hoofditems */
body.rb-app-shell .sidebar-subitem .sidebar-link {
    padding-left: 2.75rem !important;
    color: rgba(255, 255, 255, 0.72) !important;
    background: transparent !important;
}

body.rb-app-shell .sidebar-subitem .sidebar-link:hover {
    color: var(--rb-white) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

body.rb-app-shell .sidebar-subitem.active > .sidebar-link,
body.rb-app-shell .sidebar-subitem.active .sidebar-link {
    color: var(--rb-white) !important;
    background: var(--rb-red) !important;
}

body.rb-app-shell .sidebar-item {
    position: relative;
}

body.rb-app-shell .rb-sidebar-badge {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.25rem;
    text-align: center;
    color: var(--rb-white);
    background: var(--rb-red);
    border-radius: 9999px;
}

body.rb-app-shell .navbar-bg {
    background: var(--rb-gray-900) !important;
    border-bottom: none;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.rb-app-shell .navbar-bg .hamburger,
body.rb-app-shell .navbar-bg .hamburger::before,
body.rb-app-shell .navbar-bg .hamburger::after {
    background: var(--rb-white) !important;
}

body.rb-app-shell .navbar-bg .nav-link,
body.rb-app-shell .navbar-bg .nav-icon {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.rb-app-shell .navbar-bg #timerTaskLink {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* User menu trigger — hide Bootstrap's chunky caret */
body.rb-app-shell .rb-user-menu-toggle::after {
    display: none !important;
    content: none !important;
    border: none !important;
}

body.rb-app-shell .rb-user-menu-toggle {
    gap: 0.5rem;
    padding: 0.35rem 0.5rem !important;
    border-radius: 6px;
    transition: background 0.15s ease;
}

body.rb-app-shell .rb-user-menu-toggle:hover,
body.rb-app-shell .rb-user-menu-toggle.show {
    background: rgba(255, 255, 255, 0.08);
}

body.rb-app-shell .rb-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

body.rb-app-shell .rb-user-name {
    font-weight: 500;
    font-size: 0.9rem;
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.rb-app-shell .rb-user-chevron {
    width: 16px !important;
    height: 16px !important;
    opacity: 0.65;
    flex-shrink: 0;
    transition: transform 0.2s ease, opacity 0.15s ease;
}

body.rb-app-shell .rb-user-menu-toggle.show .rb-user-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

body.rb-app-shell .rb-user-menu {
    min-width: 220px;
    margin-top: 0.5rem !important;
    padding: 0.35rem 0;
    border-radius: 0;
    border: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

body.rb-app-shell .rb-user-menu-header {
    padding: 0.65rem 1rem 0.5rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 0.25rem;
}

body.rb-app-shell .rb-user-menu-header strong {
    display: block;
    font-size: 0.9rem;
    color: #111;
}

body.rb-app-shell .rb-user-menu-header small {
    display: block;
    color: #6c757d;
    font-size: 0.78rem;
}

body.rb-app-shell .rb-user-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    color: #212529;
}

body.rb-app-shell .rb-user-menu .dropdown-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #6c757d;
}

body.rb-app-shell .rb-user-menu .dropdown-item:hover,
body.rb-app-shell .rb-user-menu .dropdown-item:focus {
    background: #fff5f5;
    color: #212529;
}

body.rb-app-shell .rb-user-menu .dropdown-item.text-danger {
    color: var(--rb-red) !important;
}

body.rb-app-shell .rb-user-menu .dropdown-item.text-danger svg {
    color: var(--rb-red);
}

body.rb-app-shell .rb-user-menu .dropdown-item:active {
    background-color: var(--rb-red);
    color: var(--rb-white) !important;
}

body.rb-app-shell .rb-user-menu .dropdown-item:active svg {
    color: var(--rb-white);
}

body.rb-app-shell .rb-user-menu .dropdown-divider {
    margin: 0.35rem 0;
    border-color: #eee;
}

/* Light content mode (default) */
body.rb-app-shell.rb-content-light .main {
    background-color: var(--rb-gray-100);
}

body.rb-app-shell.rb-content-light .content {
    background-color: var(--rb-gray-100);
    color: #212529;
}

body.rb-app-shell.rb-content-light .card {
    background-color: var(--rb-white);
    border-radius: var(--rb-radius-card);
    border: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

body.rb-app-shell.rb-content-light .card-header {
    background: var(--rb-white);
    border-bottom: 2px solid var(--rb-gray-100);
    font-weight: 600;
}

body.rb-app-shell.rb-content-light .footer {
    background: transparent;
    border-top: 1px solid #e5e5e5;
}

/* Dark content mode (profile setting) */
body.rb-app-shell.rb-content-dark .main,
body.rb-app-shell.rb-content-dark .content {
    background-color: var(--rb-black);
    color: rgba(255, 255, 255, 0.9);
}

body.rb-app-shell.rb-content-dark .card {
    background: var(--rb-gray-900);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--rb-gray-800);
    border-radius: 0;
}

body.rb-app-shell.rb-content-dark .card-header {
    background: var(--rb-gray-900);
    border-bottom-color: var(--rb-gray-800);
    color: var(--rb-white);
}

body.rb-app-shell.rb-content-dark .table {
    color: rgba(255, 255, 255, 0.88);
    --bs-table-bg: transparent;
}

body.rb-app-shell.rb-content-dark .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

body.rb-app-shell.rb-content-dark .border-bottom {
    border-color: var(--rb-gray-800) !important;
}

body.rb-app-shell.rb-content-dark .form-control,
body.rb-app-shell.rb-content-dark .form-select {
    background: var(--rb-gray-800);
    border-color: #333;
    color: var(--rb-white);
}

/* Shared app UI polish */
body.rb-app-shell .h1,
body.rb-app-shell .h2,
body.rb-app-shell h1,
body.rb-app-shell h2.h2,
body.rb-app-shell h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

body.rb-app-shell .border-bottom {
    border-color: #e8e8e8 !important;
}

body.rb-app-shell .btn {
    border-radius: var(--rb-radius-btn);
}

body.rb-app-shell .btn-group > .btn,
body.rb-app-shell .input-group > .btn {
    border-radius: 0;
}

body.rb-app-shell .btn-group > .btn:first-child {
    border-top-left-radius: var(--rb-radius-btn);
    border-bottom-left-radius: var(--rb-radius-btn);
}

body.rb-app-shell .btn-group > .btn:last-child {
    border-top-right-radius: var(--rb-radius-btn);
    border-bottom-right-radius: var(--rb-radius-btn);
}

body.rb-app-shell .input-group > .btn:first-child {
    border-top-left-radius: var(--rb-radius-btn);
    border-bottom-left-radius: var(--rb-radius-btn);
}

body.rb-app-shell .input-group > .btn:last-child {
    border-top-right-radius: var(--rb-radius-btn);
    border-bottom-right-radius: var(--rb-radius-btn);
}

body.rb-app-shell .btn-primary {
    background-color: var(--rb-red);
    border-color: var(--rb-red);
    font-weight: 600;
}

body.rb-app-shell .btn-primary:hover,
body.rb-app-shell .btn-primary:focus,
body.rb-app-shell .btn-primary:active {
    background-color: var(--rb-red-hover);
    border-color: var(--rb-red-hover);
}

body.rb-app-shell .btn-outline-primary {
    color: var(--rb-red);
    border-color: var(--rb-red);
}

body.rb-app-shell .btn-outline-primary:hover {
    background-color: var(--rb-red);
    border-color: var(--rb-red);
    color: var(--rb-white);
}

/* Dropdowns in tables: .table-responsive clips overflow — fixed popper + z-index */
body.rb-app-shell .table-responsive .dropdown-menu {
    z-index: 1060;
}

body.rb-app-shell .table thead th {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
    border-bottom-width: 2px;
}

body.rb-app-shell .badge.bg-primary,
body.rb-app-shell .bg-primary {
    background-color: var(--rb-red) !important;
}

body.rb-app-shell .pagination .page-item.active .page-link {
    background-color: var(--rb-red);
    border-color: var(--rb-red);
}

body.rb-app-shell a:not(.btn):not(.sidebar-link):not(.nav-link):not(.dropdown-item):not(.page-link) {
    color: var(--rb-red);
}

body.rb-app-shell a:not(.btn):not(.sidebar-link):not(.nav-link):not(.dropdown-item):not(.page-link):hover {
    color: var(--rb-red-hover);
}

/* Page header accent line (dashboard, lists) */
body.rb-app-shell .content > .container-fluid > .border-bottom,
body.rb-app-shell .content .border-bottom.mb-3,
body.rb-app-shell .content .border-bottom.mb-2 {
    border-bottom: 2px solid var(--rb-gray-100) !important;
    padding-bottom: 0.75rem;
    position: relative;
}

body.rb-app-shell.rb-content-light .content > .container-fluid > .d-flex.border-bottom > :is(h1, h2, .h1, .h2)::after,
body.rb-app-shell.rb-content-light .content > .container-fluid > .border-bottom.mb-3 > :is(h1, h2, .h1, .h2)::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--rb-red);
    margin-top: 0.5rem;
}

/* Legacy alias */
body.rb-content-light .content {
    background-color: var(--rb-gray-100);
    color: #212529;
}

body.rb-content-light .card {
    background-color: var(--rb-white);
}

/* Stat numbers (dashboard) */
.rb-stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    color: var(--rb-red);
    letter-spacing: -0.02em;
}

.rb-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
    font-weight: 600;
}

.rb-stat-card {
    border-left: 4px solid var(--rb-red);
}

/* CTA */
.btn-rb-primary {
    background-color: var(--rb-red);
    border-color: var(--rb-red);
    color: var(--rb-white);
    border-radius: var(--rb-radius-btn);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
}

.btn-rb-primary:hover,
.btn-rb-primary:focus {
    background-color: var(--rb-red-hover);
    border-color: var(--rb-red-hover);
    color: var(--rb-white);
}

/* Guest / login layout */
.rb-guest-body {
    background-color: var(--rb-black);
    min-height: 100vh;
    color: var(--rb-white);
    overflow-x: hidden;
}

.rb-guest-hero {
    position: relative;
    min-height: 100vh;
    background-color: var(--rb-black);
    overflow: visible;
}

.rb-guest-hero::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(42vw, 520px);
    height: min(42vh, 420px);
    background-color: var(--rb-red);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    pointer-events: none;
    z-index: 0;
}

.rb-guest-row {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    align-items: center;
}

.rb-guest-copy {
    color: var(--rb-white);
}

.rb-guest-form-col {
    position: relative;
    z-index: 2;
}

.rb-guest-headline {
    font-weight: 800;
    line-height: 1.05;
    margin: 0;
}

.rb-guest-headline-lead,
.rb-guest-headline-accent {
    display: block;
    max-width: 100%;
    overflow-wrap: break-word;
}

.rb-guest-headline-lead {
    color: var(--rb-white) !important;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

.rb-guest-headline-accent {
    color: var(--rb-red) !important;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.rb-guest-sublead {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 36rem;
}

.rb-guest-features {
    color: rgba(255, 255, 255, 0.85);
}

.rb-guest-rabbit,
.rb-brand-rabbit--hero {
    max-height: 280px;
    width: auto;
}

.rb-brand-rabbit--empty {
    width: 72px;
    height: auto;
}

.rb-asset-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--rb-red);
    border-radius: 0;
    box-sizing: border-box;
    text-align: center;
}

.rb-asset-placeholder--light {
    color: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.rb-asset-placeholder--dark {
    color: #5c5c5c;
    border-color: var(--rb-red);
    background: rgba(225, 11, 23, 0.05);
}

.rb-asset-placeholder--sm {
    min-width: 7rem;
    min-height: 2.25rem;
    padding: 0.35rem 0.5rem;
}

.rb-asset-placeholder--md {
    min-width: 9rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
}

.rb-asset-placeholder--lg {
    min-width: 11rem;
    min-height: 11rem;
    padding: 1rem;
}

.rb-asset-placeholder__text {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.35;
}

.rb-brand-rabbit-placeholder--hero {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.rb-brand-rabbit-placeholder--empty {
    margin-left: auto;
    margin-right: auto;
}

.rb-empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.rb-empty-state--compact {
    padding: 1.5rem 1rem;
}

.rb-empty-state__title {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.rb-empty-state--compact .rb-empty-state__title {
    margin-top: 0.75rem;
    font-size: 1rem;
}

.rb-empty-state__description {
    color: #666;
    margin-bottom: 1rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.rb-empty-state--compact .rb-brand-rabbit--empty,
.rb-empty-state--compact .rb-brand-rabbit-placeholder--empty {
    transform: scale(0.85);
}

.rb-command-palette-empty {
    padding: 1.5rem;
    text-align: center;
    color: #666;
}

.rb-command-palette-empty img,
.rb-command-palette-empty .rb-brand-rabbit-placeholder {
    margin: 0 auto 0.5rem;
    transform: scale(0.8);
}

.rb-onboarding-rabbit {
    max-width: 120px;
    margin: 0 auto 1rem;
    display: block;
}

.rb-login-card {
    background: var(--rb-white);
    color: #212529;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.rb-login-card .form-control {
    border-radius: 0;
    border-color: #dee2e6;
}

.rb-login-card .form-control:focus {
    border-color: var(--rb-red);
    box-shadow: 0 0 0 0.2rem rgba(225, 11, 23, 0.15);
}

.rb-customer-body {
    background: var(--rb-gray-100);
}

.rb-customer-nav {
    background: var(--rb-black) !important;
}

/* Command palette */
.rb-command-palette {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    background: rgba(0, 0, 0, 0.55);
}

.rb-command-palette.show {
    display: flex;
}

.rb-command-palette-dialog {
    width: min(560px, 92vw);
    background: var(--rb-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.rb-command-palette-input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #eee;
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
    outline: none;
}

.rb-command-palette-results {
    max-height: 320px;
    overflow-y: auto;
}

.rb-command-palette-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
}

.rb-command-palette-item:hover,
.rb-command-palette-item.active {
    background: #fff5f5;
}

.rb-command-palette-item small {
    color: #6c757d;
    display: block;
}

/* Timer reminder banner */
.rb-timer-reminder {
    background: #fff3cd;
    border-left: 4px solid var(--rb-red);
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    display: none;
}

.rb-timer-reminder.show {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
