:root {
    --page-bg-start: #eaf4ff;
    --page-bg-end: #f8fbff;
    --surface: #ffffff;
    --surface-border: #e1ebf6;
    --frame-shadow: 0 2px 8px rgba(22, 50, 79, 0.08);
    --title-color: #16324f;
    --metric-label: #5d7390;
    --metric-value: #10283f;
    --metric-border: #e2ebf6;
    --accent: #6d2c3a;
    --accent-strong: #471723;
    --sidebar-bg: #07211d;
    --sidebar-border: #173932;
    --sidebar-text: #f2ebdf;
    --sidebar-muted: #b1c4bc;
}

body {
    font-family: 'Manrope', sans-serif;
    background: linear-gradient(145deg, var(--page-bg-start), var(--page-bg-end));
    color: #1d3550;
    min-height: 100vh;
}

body.login-page {
    align-items: center;
    display: flex;
}

.login-shell {
    width: 100%;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(22, 50, 79, 0.18);
    max-width: 460px;
    padding: 1.6rem;
}

.login-logo {
    height: auto;
    max-width: 200px;
    width: 100%;
}

.login-help {
    color: #5d7390;
    font-size: 0.87rem;
    text-align: center;
}

@media (max-width: 575.98px) {
    .login-card {
        padding: 1.15rem;
    }
}

.dashboard-page {
    min-height: 100vh;
}

.dashboard-shell {
    background: transparent;
    border: 0;
    border-radius: 14px;
    box-shadow: none;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.dashboard-sidebar {
    background: linear-gradient(180deg, #0a2823 0%, var(--sidebar-bg) 100%);
    border: 1px solid var(--sidebar-border);
    border-radius: 14px;
    box-shadow: var(--frame-shadow);
}

.sidebar-toggle-btn {
    border-radius: 10px;
    font-weight: 700;
    padding: 0;
    text-align: left;
    color: var(--sidebar-text);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn {
    border-radius: 8px;
}

.sidebar-brand-link {
    color: var(--sidebar-text);
    display: inline-flex;
    text-decoration: none;
    width: 100%;
}

.sidebar-brand-link:hover {
    color: #ffffff;
}

.sidebar-title {
    align-items: center;
    color: var(--sidebar-text);
    display: flex;
    font-weight: 700;
    gap: 0.7rem;
    line-height: 1.2;
    margin: 0;
    width: 100%;
}

.sidebar-logo {
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
}

.sidebar-logo-mobile {
    max-height: 52px;
    object-fit: contain;
    object-position: left center;
}

.sidebar-logo-desktop {
    max-height: 88px;
    object-fit: contain;
    object-position: left center;
}

.sidebar-brand-main {
    display: block;
    font-size: 1.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;
}

.sidebar-brand-sub {
    color: var(--sidebar-muted);
    display: block;
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-top: 0.3rem;
    text-transform: uppercase;
}

.sidebar-brand-mark {
    align-items: center;
    background: linear-gradient(140deg, #6a2c38, #471723);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: #f7ead7;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 800;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.sidebar-link {
    color: var(--sidebar-muted);
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 600;
    padding: 0.62rem 0.8rem;
}

.sidebar-link:focus,
.sidebar-link:active,
.sidebar-link:visited {
    color: var(--sidebar-muted);
    border-color: transparent;
    box-shadow: none;
    outline: none;
}

.sidebar-link:hover,
.sidebar-link:focus,
.sidebar-link:focus-visible,
.sidebar-link:active {
    color: #fff5e7;
}

.sidebar-link.active,
.sidebar-link.active:hover,
.sidebar-link.active:focus,
.sidebar-link.active:focus-visible,
.sidebar-link.active:active {
    color: #fff8ef;
}

.sidebar-section-toggle:focus,
.sidebar-section-toggle:focus-visible,
.sidebar-toggle-btn:focus,
.sidebar-toggle-btn:focus-visible {
    box-shadow: none;
    outline: none;
}

.sidebar-link:focus-visible,
.sidebar-section-toggle:focus-visible,
.sidebar-toggle-btn:focus-visible {
    box-shadow: 0 0 0 0.15rem rgba(109, 44, 58, 0.18);
}

.sidebar-section-title {
    color: #89a49a;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.sidebar-section-toggle {
    align-items: center;
    border: 0;
    color: #89a49a;
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0.25rem;
    text-align: left;
    width: 100%;
}

.sidebar-section-toggle:hover {
    color: #b6c8c1;
}

.sidebar-section-toggle .sidebar-section-title {
    color: inherit;
}

.sidebar-section-chevron {
    font-size: 0.8rem;
    transition: transform 0.18s ease;
}

.sidebar-section-toggle.collapsed .sidebar-section-chevron {
    transform: rotate(-90deg);
}

.sidebar-sublink {
    font-size: 0.92rem;
    margin-left: 0;
    padding-left: 0.8rem;
}

.sidebar-link:hover {
    color: #fff5e7;
    background: rgba(255, 255, 255, 0.07);
}

.sidebar-link.active {
    color: #fff8ef;
    background: linear-gradient(110deg, #6d2c3a, #471723);
    border-color: rgba(255, 255, 255, 0.18);
}

.sidebar-meta {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar-user-avatar {
    align-items: center;
    background: linear-gradient(130deg, #ad9368, #8f754d);
    border-radius: 50%;
    color: #f9f3ea;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 800;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.sidebar-user-name {
    color: #efe5d9;
    font-size: 0.88rem;
    font-weight: 700;
}

.sidebar-user-role {
    color: #95ab9f;
    font-size: 0.76rem;
}

.sidebar-logout-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #d6e5df;
    padding: 0.3rem 0.5rem;
}

.sidebar-logout-btn:hover,
.sidebar-logout-btn:focus,
.sidebar-logout-btn:focus-visible,
.sidebar-logout-btn:active {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    color: #fff8ef;
}

.dashboard-main-column {
    min-width: 0;
}

.dashboard-topbar {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    box-shadow: var(--frame-shadow);
    display: grid;
    gap: 0.8rem;
    grid-template-columns: auto 1fr auto;
    padding: 0.8rem 1rem;
}

.topbar-chip {
    background: #f4ebe0;
    border: 1px solid #e8ddd1;
    border-radius: 999px;
    color: #5d473b;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.22rem 0.65rem;
    text-transform: uppercase;
}

.topbar-scope-dropdown {
    flex: 0 0 auto;
    align-self: center;
}

.topbar-scope-toggle {
    align-items: center;
    box-shadow: none;
    display: inline-flex;
    gap: 0.35rem;
    white-space: nowrap;
}

.topbar-scope-toggle:hover,
.topbar-scope-toggle:focus,
.topbar-scope-toggle:focus-visible,
.topbar-scope-toggle:active {
    background: #ede2d5;
    border-color: #dbcab8;
    box-shadow: none;
    color: #5d473b;
}

.topbar-scope-toggle::after {
    margin-left: 0.15rem;
}

.topbar-scope-menu {
    border: 1px solid #dfe8f3;
    box-shadow: 0 14px 24px rgba(22, 50, 79, 0.14);
    min-width: 11rem;
    padding: 0.35rem;
}

.topbar-scope-menu .dropdown-item {
    border-radius: 8px;
    color: #16324f;
    font-size: 0.9rem;
    font-weight: 600;
}

.topbar-scope-menu .dropdown-item:hover,
.topbar-scope-menu .dropdown-item:focus {
    background: #f7fbff;
    color: #16324f;
}

.topbar-search-wrap {
    align-items: center;
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    width: 100%;
    position: relative;
}

.topbar-search-wrap .topbar-search-group {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}

.topbar-search-group .input-group-text {
    background: #fbf7f2;
    border-color: #e6d9ca;
    color: #8c7365;
}

.topbar-search-group .form-control {
    background: #fbf7f2;
    border-color: #e6d9ca;
    color: #392b23;
}

.topbar-search-group .form-control:focus {
    border-color: #c7a892;
    box-shadow: 0 0 0 0.2rem rgba(117, 57, 73, 0.12);
}

.global-search-results {
    background: #ffffff;
    border: 1px solid #dfe8f3;
    border-radius: 12px;
    box-shadow: 0 16px 30px rgba(22, 50, 79, 0.15);
    left: 0;
    max-height: 340px;
    overflow-y: auto;
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    z-index: 1040;
}

.global-search-results .global-search-result {
    border: 0;
    border-bottom: 1px solid #eef3f9;
    color: #16324f;
    display: block;
    padding: 0.85rem 0.95rem;
    text-decoration: none;
}

.global-search-results .global-search-result:last-child {
    border-bottom: 0;
}

.global-search-results .global-search-result:hover,
.global-search-results .global-search-result:focus {
    background: #f7fbff;
    color: #16324f;
    outline: none;
}

.global-search-result-title {
    font-weight: 700;
    line-height: 1.25;
}

.global-search-result-meta {
    color: #6a7f98;
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

.global-search-empty,
.global-search-loading {
    color: #6a7f98;
    padding: 0.9rem 0.95rem;
}

.project-detail-collapse-toggle {
    color: #16324f;
}

.project-detail-collapse-toggle:hover,
.project-detail-collapse-toggle:focus,
.project-detail-collapse-toggle:focus-visible,
.project-detail-collapse-toggle:active {
    color: #16324f;
    box-shadow: none;
}

.project-detail-collapse-toggle i {
    transition: transform 0.2s ease;
}

.project-detail-collapse-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.topbar-icon-btn {
    background: #f4ebe0;
    border: 1px solid #e8ddd1;
    color: #5d473b;
    padding: 0.42rem 0.62rem;
}

.topbar-icon-btn:hover {
    background: #ebdfd2;
}

.project-edit-collapse-toggle {
    color: #16324f;
}

.project-edit-collapse-toggle:hover,
.project-edit-collapse-toggle:focus,
.project-edit-collapse-toggle:focus-visible,
.project-edit-collapse-toggle:active {
    color: #16324f;
    box-shadow: none;
}

.project-edit-collapse-toggle i {
    transition: transform 0.2s ease;
}

.project-edit-collapse-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.topbar-create-btn {
    background: linear-gradient(110deg, #6d2c3a, #471723);
    border: 1px solid rgba(71, 23, 35, 0.7);
    color: #fff8ef;
    padding: 0.42rem 0.62rem;
}

.topbar-create-btn:hover {
    background: linear-gradient(110deg, #58202d, #351019);
    color: #fff;
}

.btn-primary {
    background: linear-gradient(110deg, #6d2c3a, #471723);
    border: 1px solid rgba(71, 23, 35, 0.7);
    color: #fff8ef;
}

.btn-primary:hover {
    background: linear-gradient(110deg, #58202d, #351019);
    border-color: rgba(53, 16, 25, 0.85);
    color: #fff;
}

.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle,
.btn-check:checked + .btn-primary,
:not(.btn-check) + .btn-primary:active {
    background: linear-gradient(110deg, #58202d, #351019);
    border-color: rgba(53, 16, 25, 0.85);
    color: #fff;
}

.btn-primary:focus,
.btn-primary:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(109, 44, 58, 0.25);
}

.dashboard-content {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    box-shadow: var(--frame-shadow);
}

.dashboard-title {
    color: var(--title-color);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.metric-card {
    border: 1px solid var(--metric-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--frame-shadow);
}

.metric-label {
    color: var(--metric-label);
    font-weight: 600;
    font-size: 0.9rem;
}

.metric-value {
    color: var(--metric-value);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
}

.metric-subvalue {
    color: #6a7f98;
    font-size: 0.9rem;
}

.form-label-required::after {
    color: #c03a2b;
    content: ' *';
}

.app-toast-host {
    z-index: 1095;
}

.app-feedback-toast {
    box-shadow: 0 12px 30px rgba(22, 50, 79, 0.18);
    min-width: 320px;
}

.app-feedback-toast .toast-body {
    padding-top: 0.35rem;
}

.werf-overzicht-chart {
    min-height: 190px;
}

.werf-overzicht-layout {
    align-items: center;
    display: grid;
    gap: 0.95rem;
    grid-template-columns: auto 1fr;
}

.werf-overzicht-pie {
    align-items: center;
    border-radius: 50%;
    display: flex;
    height: 130px;
    justify-content: center;
    position: relative;
    width: 130px;
}

.werf-overzicht-center {
    align-items: center;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    height: 74px;
    justify-content: center;
    width: 74px;
}

.werf-overzicht-total-label {
    color: #6a7f98;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.werf-overzicht-total-value {
    color: #16324f;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
}

.werf-overzicht-legend {
    list-style: none;
    margin: 0;
    padding: 0;
}

.werf-overzicht-legend-item {
    align-items: center;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 0.7rem 1fr auto;
    padding: 0.25rem 0;
}

.werf-overzicht-dot {
    border-radius: 50%;
    display: inline-block;
    height: 0.65rem;
    width: 0.65rem;
}

.werf-overzicht-legend-label {
    color: #395a7d;
    font-size: 0.86rem;
    font-weight: 600;
}

.werf-overzicht-legend-value {
    color: #6a7f98;
    font-size: 0.82rem;
}

.metric-trend {
    border-radius: 999px;
    display: inline-block;
    font-weight: 700;
    margin-right: 0.35rem;
    padding: 0.15rem 0.5rem;
}

.trend-up {
    background: #d8f5e7;
    color: #1f7a4c;
}

.trend-down {
    background: #d8f5e7;
    color: #1f7a4c;
}

.trend-neutral {
    background: #eaf1fb;
    color: #395a7d;
}

.klant-Fase-chart {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.klant-chart-row {
    border-top: 1px solid #eef3f9;
    padding-top: 0.65rem;
}

.klant-chart-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.klant-chart-group + .klant-chart-group {
    margin-top: 0.85rem;
}

.klant-chart-track {
    background: #eaf1fb;
    border-radius: 0;
    height: 0.45rem;
    overflow: hidden;
}

.klant-chart-bar {
    height: 100%;
}

.klant-chart-bar-prijs {
    background: #21864f;
}

.pushes-like-table thead th {
    color: #6a7f98;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pushes-like-table tbody tr {
    border-top: 1px solid #e9eff7;
}

.pushes-like-table tbody td {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    vertical-align: middle;
}

.push-like-main {
    align-items: center;
    display: flex;
    gap: 0.65rem;
    min-width: 260px;
}

.klant-status-icon {
    align-items: center;
    display: inline-flex;
    font-size: 1rem;
    justify-content: center;
    line-height: 1;
    width: 1.2rem;
}

.klant-status-icon-actief {
    color: #1f7a4c;
}

.klant-status-icon-inactief {
    color: #c03a2b;
}

.klant-status-icon-onbekend {
    color: #6a7f98;
}

.project-status-icon {
    align-items: center;
    display: inline-flex;
    font-size: 1rem;
    justify-content: center;
    line-height: 1;
    width: 1.2rem;
}

.project-status-icon-afgerond {
    color: #1f7a4c;
}

.project-status-icon-uitvoering {
    color: #2f6fad;
}

.project-status-icon-voorbereiding {
    color: #b98400;
}

.project-status-icon-vertraging {
    color: #c03a2b;
}

.project-status-icon-onhold {
    color: #6a7f98;
}

.project-status-icon-geannuleerd {
    color: #c03a2b;
}

.project-status-icon-onbekend {
    color: #6a7f98;
}

.push-like-icon {
    align-items: center;
    background: #e8f2ff;
    color: #235589;
    display: inline-flex;
    font-size: 0.85rem;
    height: 1.6rem;
    justify-content: center;
    width: 1.6rem;
}

.push-like-title {
    color: #16324f;
    display: inline-block;
    font-weight: 700;
    margin-bottom: 0.1rem;
    text-decoration: none;
}

.push-like-title:hover {
    color: #1d4f84;
    text-decoration: underline;
}

.push-like-meta {
    color: #6a7f98;
    font-size: 0.82rem;
}

#project-detail-carousel {
    background: #eef3f9;
    border: 1px solid #dfe8f3;
    border-radius: 12px;
    overflow: hidden;
}

#project-detail-carousel .carousel-inner {
    aspect-ratio: 4 / 3;
    background: #dfe8f3;
}

#project-detail-carousel .carousel-item,
#project-detail-carousel .carousel-item img {
    height: 100%;
}

#project-detail-carousel .carousel-item img {
    object-fit: cover;
    object-position: center;
}

#project-detail-carousel .carousel-item img.project-detail-carousel-image {
    cursor: zoom-in;
}

.project-detail-carousel-caption {
    background: #f7fafd;
    border: 1px solid #dfe8f3;
    border-radius: 10px;
    color: #4b627e;
    font-size: 0.9rem;
    margin-top: 0.8rem;
    min-height: 3rem;
    padding: 0.75rem 0.9rem;
}

.project-detail-photo-modal-content {
    background: rgba(8, 18, 28, 0.96);
    color: #f3f7fb;
}

.project-detail-photo-modal-content .modal-body {
    position: relative;
}

.project-detail-photo-modal-image {
    max-height: calc(100vh - 9rem);
    object-fit: contain;
}

.project-detail-photo-modal-nav {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #f3f7fb;
    display: inline-flex;
    font-size: 1.15rem;
    height: 3rem;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    z-index: 2;
}

.project-detail-photo-modal-nav:hover,
.project-detail-photo-modal-nav:focus,
.project-detail-photo-modal-nav:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: none;
    color: #ffffff;
}

.project-detail-photo-modal-prev {
    left: 1.5rem;
}

.project-detail-photo-modal-next {
    right: 1.5rem;
}

.project-detail-photo-modal-caption {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    color: #d8e6f2;
    max-width: min(920px, 100%);
    padding: 0.85rem 1rem;
    text-align: center;
}

@media (min-width: 992px) {
    .dashboard-layout {
        grid-template-columns: 290px 1fr;
        gap: 1.25rem;
        align-items: start;
    }

    .dashboard-sidebar {
        position: fixed;
        top: 1rem;
        left: 1rem;
        width: 290px;
        height: calc(100vh - 2rem);
        overflow-y: auto;
        z-index: 1030;
    }

    .dashboard-main-column {
        display: block;
        min-height: 0;
    }
}

@media (max-width: 767.98px) {
    .dashboard-topbar {
        grid-template-columns: 1fr;
    }

    .topbar-actions {
        justify-content: flex-end;
    }

    .sidebar-logo-mobile {
        max-height: 44px;
    }

    .global-search-results {
        max-height: 260px;
    }

    .werf-overzicht-layout {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .werf-overzicht-legend {
        width: 100%;
    }

    #project-detail-carousel .carousel-inner {
        aspect-ratio: 5 / 4;
    }

    .project-detail-photo-modal-prev {
        left: 0.75rem;
    }

    .project-detail-photo-modal-next {
        right: 0.75rem;
    }
}

@media (max-width: 991.98px) {
    .sidebar-toggle-btn,
    .sidebar-toggle-btn:hover,
    .sidebar-toggle-btn:focus,
    .sidebar-toggle-btn:focus-visible,
    .sidebar-toggle-btn:active,
    .sidebar-toggle-btn:not(:disabled):not(.disabled):active {
        background: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
        outline: none !important;
    }
}


