/* Algemene body en html styling voor mobiele weergave */
html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Stijlen voor readonly invoer- en tekstgebieden */
input[readonly],
textarea[readonly] {
    background-color: #e0f7fa;
    /* Lichtblauwe achtergrond */
    color: #000;
    /* Zwarte tekstkleur */
    cursor: not-allowed;
    /* Cursor weergeven als 'niet toegestaan' */
}

/* Algemene styling voor de kalender */
.flatpickr-calendar .flatpickr-day {
    background-color: #d4edda;
    color: #000;
    border-color: #c3e6cb;
}

/* ----------------------------------------------------------
   Overeenkomst detail pagina enhancements
   ---------------------------------------------------------- */

.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover,
.hover-lift:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(20, 20, 43, 0.12) !important;
}

.summary-grid .summary-card {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.summary-card .summary-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bs-secondary-color, #6c757d);
    font-weight: 600;
}

.summary-card .summary-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--bs-body-color);
}

.summary-card .summary-meta {
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.85rem;
}

.summary-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.detail-column {
    display: grid;
    gap: 1.5rem;
}

.detail-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.detail-card .card-header {
    border-bottom: none;
    background: transparent;
    padding-bottom: 0;
}

.detail-card .card-body {
    padding-top: 0.75rem;
}

.section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bs-secondary-color, #6c757d);
    font-weight: 700;
}

.detail-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.detail-list li:last-child {
    border-bottom: none;
}

.info-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    background-color: rgba(15, 118, 110, 0.1);
    color: #0f766e;
}

.info-chip.icon-warning {
    background-color: rgba(255, 193, 7, 0.15);
    color: #b8860b;
}

.info-chip.icon-danger {
    background-color: rgba(220, 53, 69, 0.12);
    color: #b02a37;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.progress-sm {
    height: 0.45rem;
    border-radius: 999px;
}

.detail-divider {
    border-top: 1px dashed rgba(148, 163, 184, 0.4);
    margin: 1.25rem 0 1rem;
}

.detail-accordion {
    display: grid;
    gap: 1rem;
}

.detail-accordion .accordion-item {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    background-color: #fff;
}

.detail-accordion .accordion-button {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    gap: 0.75rem;
    background-color: transparent;
}

.detail-accordion .accordion-button:focus {
    box-shadow: none;
}

.detail-accordion .accordion-button.collapsed {
    background-color: transparent;
}

.detail-accordion .accordion-body {
    background-color: #f8fafc;
    padding: 1.5rem;
}

.detail-accordion .meta-stack {
    min-width: 140px;
}

.detail-accordion .service-meta {
    font-size: 0.85rem;
    color: var(--bs-secondary-color, #6c757d);
}

@media (max-width: 576px) {
    .detail-accordion .accordion-button {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .detail-accordion .meta-stack {
        text-align: left;
        margin-top: 0;
    }
}

.status-timeline {
    list-style: none;
    padding-left: 1.25rem;
    margin: 0;
    position: relative;
}

.status-timeline::before {
    content: "";
    position: absolute;
    left: 0.35rem;
    top: 0.35rem;
    bottom: 0.35rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.25), rgba(13, 110, 253, 0));
}

.status-timeline li {
    position: relative;
    margin-bottom: 0.85rem;
}

.status-timeline li:last-child {
    margin-bottom: 0;
}

.status-timeline li::before {
    content: "";
    position: absolute;
    left: -1.25rem;
    top: 0.25rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--bs-primary);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}

.status-timeline li.inactive::before {
    background-color: rgba(148, 163, 184, 0.8);
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.15);
}

.status-timeline .timeline-label {
    font-weight: 600;
}

.status-timeline .timeline-meta {
    font-size: 0.85rem;
    color: var(--bs-secondary-color, #6c757d);
}

.action-list {
    display: grid;
    gap: 0.75rem;
}

.action-list .btn {
    justify-content: flex-start;
}

@media (max-width: 992px) {
    .summary-grid .summary-card {
        padding: 1rem;
    }

    .detail-column {
        gap: 1.25rem;
    }

    .status-timeline::before {
        left: 0.25rem;
    }

    .status-timeline li::before {
        left: -1.15rem;
    }
}

@media (max-width: 576px) {
    .summary-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem;
        margin: 0;
        padding: 0;
    }

    .summary-grid>[class*='col-'] {
        max-width: 100%;
        padding: 0;
    }

    .summary-card {
        display: block;
        padding: 0.4rem 0.5rem 0.3rem;
        border-radius: 0.5rem;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
        min-height: auto;
    }

    .summary-card .d-flex {
        align-items: flex-start;
        gap: 0.35rem;
    }

    .summary-card .summary-icon {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
        border-radius: 6px;
        flex-shrink: 0;
        margin-top: 0.1rem;
    }

    .summary-card .summary-label {
        font-size: 0.6rem;
        letter-spacing: 0.04em;
        margin-bottom: 0.1rem;
    }

    .summary-card .summary-value {
        font-size: 0.9rem;
        margin-bottom: 0.1rem;
        line-height: 1.1;
    }

    .summary-card .summary-meta {
        font-size: 0.68rem;
        margin-bottom: 0.05rem;
        line-height: 1.15;
    }

    .summary-card .summary-meta:last-child {
        margin-bottom: 0;
    }

    .detail-card {
        border-radius: 0.75rem;
    }

    .detail-card .card-header {
        padding: 0.6rem 0.85rem 0.3rem;
    }

    .detail-card .card-body {
        padding: 0.5rem 0.85rem 0.6rem;
    }

    .action-list {
        grid-template-columns: 1fr;
    }

    .detail-accordion {
        gap: 0.4rem;
    }

    .detail-accordion .accordion-item {
        border-radius: 0.5rem;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    }

    .detail-accordion .accordion-button {
        padding: 0.4rem 0.55rem;
        gap: 0.25rem;
        flex-direction: row;
        align-items: flex-start;
    }

    .detail-accordion .accordion-button .w-100 {
        display: flex;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .detail-accordion .accordion-button .d-flex.flex-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
        flex: 1;
    }

    .detail-accordion .accordion-button .d-flex.flex-wrap .d-flex {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.25rem;
    }

    .detail-accordion .accordion-button .fas.fa-check-circle {
        order: -1;
        margin-right: 0.25rem;
    }

    .detail-accordion .accordion-body {
        padding: 0.5rem 0.6rem;
    }

    .detail-accordion .meta-stack {
        min-width: auto;
        font-size: 0.76rem;
        text-align: left;
        margin-top: 0;
        align-self: flex-start;
    }

    .detail-divider {
        margin: 0.6rem 0 0.5rem;
    }
}

.flatpickr-calendar .flatpickr-day:hover,
.flatpickr-calendar .flatpickr-day.selected {
    background-color: #c3e6cb;
    color: #0b2e13;
}

.flatpickr-calendar .flatpickr-day.flatpickr-disabled,
.flatpickr-calendar .flatpickr-day.flatpickr-disabled:hover {
    color: red;
    cursor: not-allowed;
    background: transparent;
    border-color: #e9e9e9;
}

/* Card layout en spacing verbeteringen */
.row.g-3 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

/* Zorg voor gelijke hoogtes van cards */
.card.h-100 {
    height: 100% !important;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* Verbeterde card content styling */
.card-body .row.g-2 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 0.5rem;
}

.card-body .row.g-2>* {
    padding-bottom: 0.5rem;
}

.card-body .row.g-2>*:nth-child(odd) {
    font-weight: 500;
    color: #6b7280;
}

.card-body .row.g-2>*:nth-child(even) {
    color: #374151;
    font-weight: 400;
}

/* Styling voor services/diensten lijst */
.card-body .d-flex.justify-content-between {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.card-body .d-flex.justify-content-between:last-child {
    border-bottom: none;
}

/* Card header layout fix - altijd horizontal op alle schermgroottes */
.card-header.d-flex,
.card-header .d-flex {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

/* Uniforme card header styling */
.card-header span {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    padding-left: 0.25rem;
}

/* Customer card booking link styling */
.card .col-8 a {
    color: #D4AF37;
    transition: color 0.15s ease-in-out;
}

.card .col-8 a:hover {
    color: #B8860B;
    text-decoration: underline !important;
}

.card .col-8 a small {
    color: #6c757d !important;
}

.card-header span i {
    flex-shrink: 0;
}

.card-header span i.me-2 {
    margin-right: 0.75rem !important;
}

.card-header .dropdown {
    flex-shrink: 0;
    margin-left: auto;
    padding-right: 0.25rem;
}

.card-header .btn {
    flex-shrink: 0;
}

/* Consistente icon spacing in alle card headers */
.card-header i.fas {
    width: 1.25rem;
    text-align: center;
    margin-right: 0.75rem;
}

/* Extra padding voor card headers */
.card-header.d-flex {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
}

/* Dropdown button styling in card headers */
.card-header .dropdown-toggle {
    min-width: 36px;
    height: 36px;
    padding: 0.375rem 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 1rem;
}

.card-header .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.card-header .dropdown-toggle:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* Desktop dropdown positioning */
.card-header .dropdown {
    position: relative;
}

.card-header .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    margin-top: 0.25rem;
    min-width: 200px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1050;
}

/* Moderne container styling */
.container,
.container-fluid {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Verbeterde responsive grid */
@media (min-width: 576px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 992px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Styling voor readonly velden */
.readonly-bg {
    background-color: #D1ECEC !important;
}

#sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, #1a1d29 0%, #2c3e50 100%);
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

/* Sidebar Header */
.sidebar-header {
    padding: 1.5rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header a {
    transition: all 0.3s ease;
}

.sidebar-header a:hover {
    transform: translateY(-1px);
}

.logo-container {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.logo-container:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.site-info {
    flex: 1;
    min-width: 0;
}

.site-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    display: block;
    line-height: 1.2;
}

.site-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    margin-top: 2px;
}

/* Sidebar Dividers */
.sidebar-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0;
    opacity: 0.5;
}

/* User Info Section */
.user-info-section {
    padding: 0 1.25rem;
}

.user-avatar-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    color: inherit;
    text-decoration: none;
}

.user-avatar-container:hover {
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    text-decoration: none;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-role .badge-role {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 500;
}

/* Navigation Section */
.nav-section {
    padding: 0 0.75rem;
}

#sidebar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

#sidebar .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #D4AF37;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

#sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(3px);
}

#sidebar .nav-link:hover::before {
    transform: scaleY(1);
}

#sidebar .nav-link.active {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

#sidebar .nav-link.active::before {
    transform: scaleY(1);
    background: #fff;
}

#sidebar .nav-link i {
    margin-right: 0.75rem;
    width: 1.25rem;
    text-align: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* Logout Section */
.logout-section,
.login-section {
    padding: 0 1.25rem 1.5rem;
}

.logout-link,
.login-link {
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.logout-link:hover,
.login-link:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.3);
    color: #fff !important;
    transform: translateY(-1px);
}

.logout-link i,
.login-link i {
    margin-right: 0.75rem;
    width: 1.25rem;
    text-align: center;
}

/* Navigation Groups */
.nav-group {
    margin-bottom: 1.5rem;
}

.nav-group-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-group-header i {
    margin-right: 0.5rem;
    width: 1rem;
    text-align: center;
    font-size: 0.7rem;
}

.nav-group-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-group-items .nav-item {
    margin-bottom: 0.25rem;
}

.nav-group-items .nav-link {
    padding-left: 1.5rem;
    font-size: 0.85rem;
    position: relative;
}

.nav-group-items .nav-link::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 50%;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.nav-group-items .nav-link:hover::before,
.nav-group-items .nav-link.active::before {
    background: #fff;
    transform: translateY(-50%) scale(1.5);
}

/* Compact sidebar for smaller screens */
@media (max-width: 992px) {
    .nav-group-header {
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem;
    }

    .nav-group-items .nav-link {
        padding: 0.6rem 1.25rem;
        font-size: 0.8rem;
    }

    .nav-group {
        margin-bottom: 1rem;
    }
}

#sidebarCollapse {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1100;
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    color: white;
    padding: 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sidebarCollapse:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #B8860B 0%, #996B0A 100%);
}

#sidebarCollapse:active {
    transform: translateY(0);
}

#sidebarCollapse i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

#sidebarCollapse:hover i {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        z-index: 1000;
        left: -250px;
        width: 250px;
        top: 0;
        height: 100%;
        transition: all 0.3s;
        overflow-y: auto;
        /* Scrollen mogelijk maken */
    }

    #sidebar::-webkit-scrollbar {
        width: 0;
        background: transparent;
        /* Verbergt de scrollbar */
    }

    #sidebar.active {
        left: 0;
    }

    main {
        padding: 10px;
        margin-left: 0;
        transition: margin-left 0.3s;
    }

    #sidebarCollapse {
        display: block;
    }

    /* Mobiele layout aanpassingen */
    .flex-container {
        flex-direction: column;
    }

    .sidebar-wrapper {
        min-height: auto;
    }

    .content-wrapper {
        width: 100%;
        padding: 0;
    }

    .container {
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Moderne card styling voor mobiel */
    .card {
        margin-bottom: 1.5rem !important;
        border-radius: 12px !important;
        border: 1px solid #e1e5e9 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        overflow: visible !important;
    }

    .card-body {
        padding: 1.25rem 1rem !important;
    }

    .card-header {
        padding: 1rem !important;
        font-size: 0.95rem !important;
        overflow: visible !important;
    }

    /* Verbeterde grid spacing op mobiel */
    .row.g-3 {
        --bs-gutter-x: 1rem !important;
        --bs-gutter-y: 1.25rem !important;
        margin: 0 !important;
    }

    .col-12.col-md-6.col-xl-4 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}

/* Moderne badge styling */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    text-transform: capitalize;
}

.badge.bg-success {
    background: linear-gradient(135deg, #10b981, #34d399) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #ef4444, #f87171) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8) !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #6b7280, #9ca3af) !important;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    border: none;
    padding: 0.5rem 1rem;
}

.btn-sm {
    border-radius: 6px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Dropdown styling verbetering */
.dropdown-menu {
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    z-index: 1050;
}

/* Ensure dropdowns always appear above other content */
.card .dropdown {
    position: relative;
    z-index: 1051;
}

.card .dropdown-menu {
    z-index: 1052;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: 0;
}

.dropdown-item i {
    width: 1.2rem;
    margin-right: 0.5rem;
    text-align: center;
}

/* Verbeterde focus states en accessibility */
.btn:focus,
.dropdown-toggle:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    outline: none;
}

/* Table styling verbeteringen */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e1e5e9;
    font-weight: 600;
    color: #374151;
}

.table td {
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.table-responsive {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Text styling verbeteringen */
.text-muted {
    color: #6b7280 !important;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Moderne card styling */
.card {
    --bs-card-spacer-y: 1.5rem;
    --bs-card-spacer-x: 1.5rem;
    --bs-card-title-spacer-y: 0.75rem;
    --bs-card-border-width: 1px;
    --bs-card-border-color: #e1e5e9;
    --bs-card-border-radius: 12px;
    --bs-card-inner-border-radius: 11px;
    --bs-card-cap-padding-y: 1rem;
    --bs-card-cap-padding-x: 1.5rem;
    --bs-card-cap-bg: #f8f9fa;
    --bs-card-bg: #fff;
    --bs-card-img-overlay-padding: 1rem;
    --bs-card-group-margin: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: var(--bs-card-height);
    word-wrap: break-word;
    background-color: var(--bs-card-bg);
    background-clip: border-box;
    border: var(--bs-card-border-width) solid var(--bs-card-border-color);
    border-radius: var(--bs-card-border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    /* Allow dropdowns to extend beyond card boundaries */
    overflow: visible;
}

/* Card header allows overflow for dropdowns */
.card-header {
    overflow: visible;
}

/* Extra styling voor verschillende card content types */
.card-body .row.g-2>div {
    line-height: 1.5;
}

/* Toast Notification System */
.toast-container {
    max-width: 400px;
    width: 100%;
    z-index: 9999 !important;
}

.toast-notification {
    display: flex;
    align-items: center;
    min-height: 60px;
    margin-bottom: 0.75rem;
    padding: 0.875rem 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    max-width: 100%;
    word-wrap: break-word;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

.toast-notification::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--toast-color, #D4AF37);
}

.toast-notification .toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.875rem;
    color: #fff;
    background: var(--toast-color, #D4AF37);
}

.toast-notification .toast-content {
    flex: 1;
    min-width: 0;
}

.toast-notification .toast-title {
    font-weight: 600;
    font-size: 0.925rem;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.toast-notification .toast-message {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

.toast-notification .toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: 0.5rem;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.toast-notification .toast-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Toast types */
.toast-success {
    --toast-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(52, 211, 153, 0.05) 100%);
    border-color: rgba(16, 185, 129, 0.2);
}

.toast-error {
    --toast-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(248, 113, 113, 0.05) 100%);
    border-color: rgba(239, 68, 68, 0.2);
}

.toast-warning {
    --toast-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(251, 191, 36, 0.05) 100%);
    border-color: rgba(245, 158, 11, 0.2);
}

.toast-info {
    --toast-color: #0ea5e9;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(56, 189, 248, 0.05) 100%);
    border-color: rgba(14, 165, 233, 0.2);
}

/* Progress bar for auto-dismiss */
.toast-notification .toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--toast-color, #D4AF37);
    border-radius: 0 0 12px 12px;
    transition: width linear;
    width: 100%;
}

.toast-notification.auto-dismiss .toast-progress {
    animation: toast-progress linear;
}

@keyframes toast-progress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .toast-container {
        max-width: calc(100vw - 1rem);
        left: 0.5rem !important;
        right: 0.5rem !important;
        top: 1rem !important;
        padding: 0 !important;
    }

    .toast-notification {
        margin-bottom: 0.5rem;
        padding: 0.75rem;
        border-radius: 8px;
        min-height: 50px;
    }

    .toast-notification .toast-icon {
        width: 20px;
        height: 20px;
        margin-right: 0.5rem;
        font-size: 0.75rem;
    }

    .toast-notification .toast-title {
        font-size: 0.875rem;
    }

    .toast-notification .toast-message {
        font-size: 0.8rem;
    }

    .toast-notification .toast-close {
        width: 20px;
        height: 20px;
        font-size: 0.875rem;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .toast-container {
        max-width: calc(100vw - 0.5rem);
        left: 0.25rem !important;
        right: 0.25rem !important;
    }

    .toast-notification {
        padding: 0.625rem;
        margin-bottom: 0.375rem;
    }

    .toast-notification .toast-title {
        font-size: 0.8rem;
    }

    .toast-notification .toast-message {
        font-size: 0.75rem;
    }
}

/* Specificke styling voor verschillende card content types */
.card-body .row.g-2>div {
    line-height: 1.5;
}

/* Email Messages Card - Verbeterde mobiele layout */
.email-message-card {
    margin: 0 !important;
    margin-bottom: 0.75rem !important;
}

.email-message-card .card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.email-message-card .card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.email-message-card .card-body {
    padding: 1rem !important;
}

/* Header sectie met badges en status */
.email-message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.email-message-badges {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.email-message-status {
    flex-shrink: 0;
}

/* Subject en ontvanger sectie */
.email-message-content {
    margin-bottom: 0.75rem;
}

.email-message-subject {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.email-message-recipient {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.85rem;
}

.email-message-recipient i {
    margin-right: 0.5rem;
    width: 1rem;
    text-align: center;
}

/* Meta informatie sectie */
.email-message-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f3f4;
    font-size: 0.8rem;
    color: #6c757d;
}

.email-message-date {
    display: flex;
    align-items: center;
}

.email-message-date i {
    margin-right: 0.375rem;
}

.email-message-ids {
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Actie sectie */
.email-message-actions {
    text-align: center;
}

.email-message-actions .btn {
    min-width: 100px;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

/* Badge styling voor mobiel */
.badge-sm {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

/* Responsive aanpassingen */
@media (max-width: 576px) {
    .email-message-card {
        margin-bottom: 1rem !important;
    }

    .email-message-card .card-body {
        padding: 0.875rem !important;
    }

    .email-message-subject {
        font-size: 0.9rem;
    }

    .email-message-recipient {
        font-size: 0.8rem;
    }

    .email-message-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .email-message-ids {
        align-self: flex-end;
    }
}

/* Zeer kleine schermen */
@media (max-width: 480px) {
    .email-message-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .email-message-badges {
        justify-content: flex-start;
        width: 100%;
    }

    .email-message-status {
        align-self: flex-end;
        margin-top: -2rem;
    }
}

.card-body .row.g-2>div:nth-child(odd) {
    font-weight: 500;
    color: #6b7280;
    font-size: 0.9rem;
}

.card-body .row.g-2>div:nth-child(even) {
    color: #374151;
    font-weight: 400;
}

.card-body {
    flex: 1 1 auto;
    padding: var(--bs-card-spacer-y) var(--bs-card-spacer-x);
    color: var(--bs-card-color);
    background-color: #fff;
}

/* Moderne card header styling */
.card-header {
    padding: var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);
    margin-bottom: 0;
    color: #495057;
    background-color: var(--bs-card-cap-bg);
    border-bottom: 1px solid #e1e5e9;
    border-top-left-radius: var(--bs-card-inner-border-radius);
    border-top-right-radius: var(--bs-card-inner-border-radius);
    font-weight: 600;
    font-size: 1rem;
}

/* Specifieke kleuren voor verschillende card types */
.card-header.bg-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    color: white !important;
    border-bottom: none;
}

.card-header.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%) !important;
    color: white !important;
    border-bottom: none;
}

.card-header.bg-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%) !important;
    color: white !important;
    border-bottom: none;
}

.card-header.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%) !important;
    color: white !important;
    border-bottom: none;
}

.card-header.bg-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%) !important;
    color: white !important;
    border-bottom: none;
}

.container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.table-sm td {
    white-space: normal;
    /* Zorgt ervoor dat de tekst in tabelcellen wordt gewrapt */
}

@media (max-width: 768px) {
    .card {
        margin-bottom: 15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .card-body {
        padding: 15px 10px;
    }

    /* Uitzondering voor card headers - behoud flex row layout */
    .card-header.d-flex,
    .card-header .d-flex {
        flex-direction: row !important;
    }

    .d-flex:not(.card-header):not(.card-header *) {
        flex-direction: column;
    }

    .d-flex:not(.card-header)>*:not(.card-header *) {
        margin-bottom: 10px;
    }

    .d-flex:not(.card-header)>*:last-child:not(.card-header *) {
        margin-bottom: 0;
    }

    .container {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
}

.modal-header {
    background-color: #D4AF37;
    color: #fff;
}

.modal-content {
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.modal-footer .btn {
    padding: 10px 20px;
    font-size: 16px;
}

.content {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.card-footer {
    margin-top: auto;
}

.btn-warning,
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-warning .fas,
.btn-primary .fas {
    margin-right: 5px;
}

.card-header i {
    margin-right: 5px;
}

.card {
    border-radius: 8px;
    overflow: hidden;
}

.card-header {
    position: relative;
}

/* Flex container styling */
.flex-container {
    display: flex;
    min-height: 100vh;
    /* Vul de volledige schermhoogte */
    flex-direction: row;
}

/* Sidebar styling */
.sidebar-wrapper {
    display: flex;
    flex-direction: column;
    background-color: #343a40;
    /* Kleur van de sidebar */
    min-height: 100vh;
    /* Sidebar vult de volledige hoogte */
}

/* Content area styling */
.content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    /* Vult resterende ruimte */
    width: 100%;
    min-width: 0;
    /* Voorkomt overflow problemen */
}

/* Main content styling to fill the space above the footer */
main {
    flex: 1;
    padding: 20px;
    padding-bottom: 20px;
    /* Ruimte voor footer */
    width: 100%;
    box-sizing: border-box;
}

/* Footer styling to span full width at the bottom */
.footer {
    background: #fff !important;
    border-top: 1px solid #e9ecef !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    margin-top: auto;
    padding: 0 !important;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    z-index: 1;
}

.footer .container-fluid {
    max-width: 100%;
}

.footer-status {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.status-item:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.status-item i {
    font-size: 0.75rem;
}

.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.footer-contact a:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-1px);
}

.fs-sm {
    font-size: 0.875rem;
}

/* Mobile footer adjustments */
@media (max-width: 768px) {
    .footer-status {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .status-item {
        font-size: 0.75rem;
        padding: 0.25rem;
    }

    .footer-contact {
        margin-top: 0.5rem;
    }

    .footer .row {
        text-align: center !important;
    }

    .footer .col-md-4 {
        margin-bottom: 0.5rem;
    }
}

/* Gebruikersbeheer specifieke stijlen */
.card-header .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.card-body .btn-sm {
    padding: 0.375rem 0.75rem;
    min-width: 38px;
}

.table-responsive {
    margin: 0;
    padding: 0;
}

.gap-2 {
    gap: 0.5rem !important;
}

.text-truncate {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Verbeterde tabel styling */
.table.table-sm td {
    padding: 0.5rem;
    vertical-align: middle;
}

/* Mobiele responsive aanpassingen */
@media (max-width: 768px) {
    .flex-container {
        flex-direction: column;
    }

    .sidebar-wrapper {
        min-height: auto;
    }

    .content-wrapper {
        width: 100%;
        padding: 0;
    }

    main {
        padding: 10px;
        width: 100%;
    }

    .container {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-left: 0;
        margin-right: 0;
    }

    .card-body {
        padding: 15px 10px;
    }

    .footer {
        width: 100vw !important;
        margin-left: 0 !important;
        position: relative;
    }

    /* Overeenkomst detail specifieke styling */
    .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }

    .row.g-3 {
        margin: 0;
    }

    .col-12.col-md-6.col-xl-4 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .table-responsive {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .modal-dialog {
        margin: 0.5rem;
    }

    .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .text-truncate {
        max-width: 100px !important;
    }

    /* Dropdown styling in card headers */
    .card-header .dropdown-toggle {
        border: none;
        box-shadow: none;
        padding: 0.5rem 0.75rem;
        min-width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 6px;
        font-size: 1.1rem;
    }

    .card-header .dropdown-toggle:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .card-header .dropdown-toggle:focus {
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
    }

    /* Algemene card header layout voor dropdown uitlijning */
    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .card-header .dropdown {
        margin-left: auto;
        flex-shrink: 0;
        position: static;
    }

    /* Force dropdown menu to appear above card content */
    .card-header .dropdown-menu {
        position: absolute !important;
        top: auto !important;
        bottom: 100% !important;
        right: 0 !important;
        left: auto !important;
        margin-bottom: 0.25rem;
        min-width: 200px;
        max-width: 280px;
        box-shadow: 0 -0.5rem 1rem rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(0, 0, 0, 0.15);
        z-index: 1050;
    }

    .dropdown-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .dropdown-item:hover {
        background-color: #f8f9fa;
    }

    .dropdown-item i {
        width: 1.2rem;
        margin-right: 0.75rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    main {
        padding: 5px;
    }

    .card-body {
        padding: 10px 5px;
    }

    .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .col-12.col-md-6.col-xl-4 {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .card-header h2 {
        font-size: 1.25rem;
    }

    .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }

    .btn-sm {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .badge {
        font-size: 0.7rem;
    }

    #map {
        height: 150px !important;
    }

    .modal-lg {
        max-width: calc(100vw - 1rem);
    }

    .text-truncate {
        max-width: 80px !important;
    }

    .table td,
    .table th {
        padding: 0.375rem 0.25rem;
        font-size: 0.875rem;
    }

    .row.g-2>* {
        margin-bottom: 0.25rem;
    }

    /* Extra styling voor aanvullende diensten op mobiel */
    .flex-grow-1 {
        word-break: break-word;
        hyphens: auto;
    }

    /* Dropdown menu styling voor kleine schermen */
    .card-header .dropdown-menu {
        font-size: 0.85rem;
        min-width: 180px;
        max-width: 260px;
        position: absolute !important;
        top: auto !important;
        bottom: 100% !important;
        right: 0 !important;
        left: auto !important;
        margin-bottom: 0.5rem;
        box-shadow: 0 -0.75rem 1.5rem rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(0, 0, 0, 0.2);
        z-index: 1055;
    }

    .dropdown-item {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .card-header .dropdown-toggle {
        padding: 0.5rem 0.625rem;
        min-width: 48px;
        height: 48px;
        font-size: 1.2rem;
        background: rgba(255, 255, 255, 0.25);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .card-header .dropdown-toggle:hover {
        background: rgba(255, 255, 255, 0.35);
    }

    .card-header .dropdown-toggle:focus {
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6);
    }

    /* Verbeterde card header uitlijning voor mobiel */
    .card-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 0.25rem !important;
        /* Kleinere ruimte tussen tekst en dropdown */
        min-height: 45px;
        /* Vaste minimum hoogte */
    }

    .card-header span {
        flex: 1 1 auto;
        min-width: 0;
        /* Voorkomt overflow problemen */
        overflow: hidden;
        /* Verberg overflow tekst */
        text-overflow: ellipsis;
        /* Toon ... bij lange tekst */
        white-space: nowrap;
        /* Voorkom regel wrapping */
        max-width: calc(100% - 35px);
        /* Laat ruimte voor dropdown button */
    }

    .card-header .dropdown {
        flex: 0 0 auto;
        /* Flexibel maar met vaste grootte */
        flex-shrink: 0;
        /* Voorkomt inkrimpen van dropdown */
        margin-left: auto;
        /* Duwt dropdown naar rechts */
        min-width: 30px;
        /* Vaste minimale breedte */
        width: 30px;
        /* Vaste breedte */
    }

    /* Zorg ervoor dat tekst in card headers niet overloopt */
    .card-header span i {
        margin-right: 0.3rem;
        flex-shrink: 0;
        /* Icon mag niet krimpen */
    }

    /* Verbeterde card header styling voor mobiel */
    .card-header span {
        display: flex !important;
        align-items: center !important;
        flex: 1 !important;
        min-width: 0 !important;
        max-width: calc(100% - 35px) !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        padding-left: 0.5rem !important;
    }

    .card-header span i.me-2 {
        margin-right: 0.5rem !important;
        flex-shrink: 0 !important;
    }

    /* Extra padding voor mobiele card headers */
    .card-header.d-flex {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Extra regels om layout problemen te voorkomen */
    .card-header .d-flex,
    .card-header.d-flex {
        flex-direction: row !important;
        /* Override algemene mobile regel */
        flex-wrap: nowrap !important;
        align-items: center !important;
        width: 100% !important;
    }

    /* Zorg ervoor dat card headers altijd hun layout behouden */
    .card-header.d-flex.justify-content-between {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* Specifieke styling voor Bootstrap dropdown componenten */
    .card-header .btn-group,
    .card-header .dropdown {
        position: relative !important;
        display: inline-flex !important;
    }

    /* Dropdown button compacter maken op mobiel */
    .card-header .dropdown-toggle {
        padding: 0.15rem 0.25rem !important;
        font-size: 0.7rem !important;
        min-width: 28px !important;
        max-width: 28px !important;
        height: 28px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        background: rgba(255, 255, 255, 0.2) !important;
    }

    .card-header .dropdown-toggle:hover {
        background: rgba(255, 255, 255, 0.3) !important;
    }

    .card-header .dropdown-toggle:focus {
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5) !important;
    }

    /* Extra styling voor dropdown toggles om wrapping te voorkomen */
    .card-header .dropdown-toggle::after {
        margin-left: 0 !important;
        font-size: 0.6rem !important;
    }

    /* Forceer inline layout voor card header elementen */
    .card-header>* {
        display: inline-flex !important;
        align-items: center !important;
    }
}

/* Extra mobile responsive styling voor zeer kleine schermen */
@media (max-width: 480px) {
    .card-header {
        padding: 0.75rem 1rem !important;
        min-height: 40px !important;
        font-size: 0.85rem !important;
    }

    .card-header span {
        max-width: calc(100% - 30px) !important;
        font-size: 0.85rem !important;
        padding-left: 0.25rem !important;
    }

    .card-header .dropdown-toggle {
        min-width: 26px !important;
        max-width: 26px !important;
        height: 26px !important;
        padding: 0.1rem 0.2rem !important;
        font-size: 0.65rem !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        background: rgba(255, 255, 255, 0.2) !important;
    }

    .card-header .dropdown-toggle:hover {
        background: rgba(255, 255, 255, 0.3) !important;
    }

    .card-header .dropdown-toggle:focus {
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5) !important;
    }

    /* Force inline display voor alle card header kinderen */
    .card-header>span,
    .card-header>.dropdown {
        display: inline-block !important;
        vertical-align: middle !important;
    }
}

/* Welcome Header Styling */
.bg-gradient-primary {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    position: relative;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}

.welcome-header {
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3);
}

.welcome-bg-pattern {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    border-radius: 16px;
}

.z-index-2 {
    z-index: 2;
}

/* Stats Cards */
.stat-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.stat-primary .stat-icon {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
}

.stat-info .stat-icon {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}

.stat-success .stat-icon {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.stat-warning .stat-icon {
    background: linear-gradient(135deg, #ffc107 0%, #d39e00 100%);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

/* Dashboard Cards */
.dashboard-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 16px;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.02) 0%, rgba(184, 134, 11, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.dashboard-card:hover::before {
    opacity: 1;
}

.dashboard-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(184, 134, 11, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-card:hover .dashboard-icon-wrapper::before {
    opacity: 1;
}

.dashboard-icon-wrapper i {
    font-size: 2rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.dashboard-card:hover .dashboard-icon-wrapper i {
    transform: scale(1.1);
}

.dashboard-card .card-title {
    transition: color 0.3s ease;
}

.dashboard-card:hover .card-title {
    color: #D4AF37 !important;
}

/* Status Cards */
.status-indicator {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.user-status-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
}

/* Section Headers */
.text-muted h5 {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Start.php Mobile Responsive Styling */
@media (max-width: 768px) {
    .welcome-header {
        padding: 2rem !important;
        text-align: center;
    }

    .welcome-header .row {
        flex-direction: column;
    }

    .welcome-header h1 {
        font-size: 1.5rem !important;
    }

    .dashboard-card .card-body {
        min-height: 120px !important;
        padding: 1.5rem !important;
    }

    .dashboard-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .dashboard-icon-wrapper i {
        font-size: 1.5rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .welcome-header {
        padding: 1.5rem !important;
    }

    .dashboard-card .card-body {
        min-height: 100px !important;
        padding: 1rem !important;
    }

    .dashboard-icon-wrapper {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .dashboard-icon-wrapper i {
        font-size: 1.25rem;
    }

    .dashboard-card h6 {
        font-size: 0.9rem;
    }

    .dashboard-card small {
        font-size: 0.75rem;
    }
}

/* Smooth animations for start.php */
.welcome-header * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================================
   DASHBOARD.PHP SPECIFIC STYLING - Admin Dashboard
   ============================================================================ */

/* Clickable Table Rows */
.clickable-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.clickable-row:hover {
    background-color: rgba(212, 175, 55, 0.05) !important;
}

/* Ensure buttons within clickable rows remain interactive */
.clickable-row .btn {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.clickable-row .btn:hover {
    z-index: 20;
}

/* Dashboard Table Improvements */
.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.table-light {
    background-color: #f8f9fa !important;
}

/* Sticky table headers */
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Chart containers */
#bookingsPerMonthChart,
#revenuePerMonthChart {
    max-height: 200px !important;
}

/* Dashboard Mobile Responsive Styling */
@media (max-width: 768px) {
    .dashboard-card .table-responsive {
        max-height: 250px !important;
    }

    .dashboard-card .card-header h6 {
        font-size: 0.9rem;
    }

    .table td,
    .table th {
        padding: 0.5rem !important;
        font-size: 0.85rem;
    }

    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .dashboard-card .table-responsive {
        max-height: 200px !important;
    }

    .table td,
    .table th {
        padding: 0.375rem !important;
        font-size: 0.8rem;
    }

    .dashboard-card .card-header .badge {
        font-size: 0.65rem;
    }

    /* Hide certain columns on very small screens */
    .table th:nth-child(4),
    .table td:nth-child(4),
    .table th:nth-child(5),
    .table td:nth-child(5) {
        display: none;
    }
}