/* Base styling for consistent layout */
body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #343a40;
}

/* GLOBAL BORDER-RADIUS OVERRIDE - ALL ELEMENTS GET SQUARE CORNERS */
* {
    border-radius: 0 !important;
}

/* Global overflow prevention */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Container improvements */
.container, .container-fluid {
    max-width: 1200px;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
}

/* Card styling improvements */
.card, .bg-white {
    background-color: #fff !important;
    border: 1px solid #e9ecef !important;
    border-radius: 0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: box-shadow 0.3s ease;
}

/* Layout Styling - Optimized */
.ads-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 2rem;
    min-height: 200px;
}

/* Grid view wordt nu ook als list weergegeven */
.ads-container.grid-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (max-width: 768px) {
    .ads-container.grid-view {
        gap: 10px;
    }
}

@media (min-width: 1200px) {
    .ads-container.grid-view {
        gap: 14px;
    }
}

/* List view (same as default now) */
.ads-container.list-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ads-container.list-view .ad-header {
    flex: 0 0 200px;
    border-bottom: none;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px 12px;
}

.ads-container.list-view .ad-title-section {
    flex: 1;
}

.ads-container.list-view .ad-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.ads-container.list-view .ad-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.ads-container.list-view .ad-title .business-type-badge,
.ads-container.list-view .ad-title .boost-badge,
.ads-container.list-view .ad-title .updated-badge,
.ads-container.list-view .ad-badges .business-type-badge,
.ads-container.list-view .ad-badges .boost-badge,
.ads-container.list-view .ad-badges .updated-badge {
    display: inline-block;
    font-size: 0.75rem;
    align-self: flex-start;
}

.ads-container.list-view .ad-meta {
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ads-container.list-view .ad-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-top: auto;
}

.ads-container.list-view .ad-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
}

.ads-container.list-view .ad-foto {
    max-width: 200px;
    max-height: 160px;
    border-radius: 8px;
}

.ads-container.list-view .ad-info {
    padding: 12px;
}

.ads-container.list-view .ad-body {
    padding: 0;
    gap: 0;
    min-height: auto;
}

.ads-container.list-view .ad-image {
    width: 200px;
    height: 160px;
    margin: 16px;
}

.ads-container.list-view .ad-content-section {
    padding: 16px;
    padding-left: 0;
}

.ads-container.list-view .ad-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 40px;
}

/* Verification badge styling in list view */
.ads-container.list-view .verification-badge {
    font-size: 0.75rem !important;
    padding: 2px 6px !important;
    margin-top: 2px;
    display: inline-block;
    align-self: flex-start;
}

.ads-container.list-view .ad-title > span:not(.verification-badge) {
    margin-right: 6px;
}

.ad-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: row;
    min-height: 170px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 12px;
}

.ad-box:hover {
    border-color: #007bff;
    box-shadow: 0 8px 25px rgba(0,123,255,0.25), 0 3px 12px rgba(0,123,255,0.15), 0 0 0 3px rgba(0,123,255,0.1);
    transform: translateY(-3px);
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

/* Extra highlight voor featured advertenties */
.ad-box.featured-ad {
    border: 3px solid #ffd700;
    background: linear-gradient(145deg, #fffbf0, #fff8e1);
    position: relative;
    margin-top: 18px; /* Extra ruimte voor de badge */
}

.ad-box.featured-ad:after {
    content: '⭐ FEATURED';
    position: absolute;
    top: -8px;
    right: 10px;
    background: linear-gradient(135deg, #ff8c00, #ffd700);
    color: white;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
    z-index: 10;
}

.ad-box.featured-ad:hover {
    border-color: #ff8c00;
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4), 0 8px 20px rgba(255, 140, 0, 0.3), 0 0 0 6px rgba(255, 215, 0, 0.2);
    transform: translateY(-6px) scale(1.02);
    background: linear-gradient(145deg, #fffef5, #fffbf0);
}

.ad-header {
    display: none; /* Verbergen */
}

.ad-title-section {
    flex: 1;
    min-width: 0;
}

.ad-title {
    font-size: 1.0rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ad-box:hover .ad-title {
    color: #007bff;
}

/* Featured advertentie titel effecten */
.ad-box.featured-ad .ad-title {
    color: #ff8c00;
    text-shadow: 0 1px 3px rgba(255, 140, 0, 0.3);
    font-weight: 700;
}

.ad-box.featured-ad:hover .ad-title {
    color: #ff6b00;
    text-shadow: 0 2px 6px rgba(255, 140, 0, 0.5);
    transform: translateX(3px);
}

.ad-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
    max-height: 6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
}

.ad-box:hover .ad-subtitle {
    color: #495057;
}

.premium-badge {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #333;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
}

.updated-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.business-type-badge {
    background: linear-gradient(135deg, #6f42c1, #5a3cb4);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(111, 66, 193, 0.3);
    transition: all 0.3s ease;
}

.ad-box:hover .business-type-badge {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(111, 66, 193, 0.4);
}

.boost-badge {
    background: linear-gradient(135deg, #fd7e14, #e76f00);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(253, 126, 20, 0.3);
    transition: all 0.3s ease;
}

.ad-box:hover .boost-badge {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(253, 126, 20, 0.4);
}

.updated-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.ad-box:hover .updated-badge {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.4);
}

.ad-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: #666;
    align-items: center;
}

.ad-meta span {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.ad-meta i {
    margin-right: 4px;
    color: #007bff;
    flex-shrink: 0;
}

.ad-status {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.online-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 12px;
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.online-status i {
    animation: pulse-online 2s infinite;
}

@keyframes pulse-online {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.offline-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 12px;
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

.recently-online {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 12px;
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.favorite-btn .btn {
    font-size: 1.2rem;
    border: none;
    background: none;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-body {
    display: flex;
    padding: 0;
    gap: 0;
    min-height: 160px;
    flex: 1;
    width: 100%;
}

.ad-image-section {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    height: 160px;
    padding: 6px;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
}

/* Featured advertentie styling zonder crown */

.ad-image {
    width: 108px;
    height: 148px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #fff;
    display: block;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.ad-box:hover .ad-image {
    border-color: #007bff;
    box-shadow: 0 8px 30px rgba(0,123,255,0.3), 0 3px 12px rgba(0,123,255,0.2);
    transform: scale(1.05);
}

/* Featured advertentie afbeelding effecten - border doorgetrokken */
.ad-box.featured-ad .ad-image {
    border: none;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3), 0 2px 8px rgba(255, 140, 0, 0.2);
}

.ad-box.featured-ad:hover .ad-image {
    border: none;
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.4), 0 6px 20px rgba(255, 140, 0, 0.3);
    transform: scale(1.08);
}

/* Speciale featured content effecten */
.ad-box.featured-ad .ad-content-section {
    position: relative;
}

.ad-box.featured-ad .ad-content-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffd700, #ff8c00, #ffd700);
    animation: featured-content-shine 3s ease-in-out infinite;
}

/* Featured advertentie badges zonder diamond */
.ad-box.featured-ad .ad-badges-inline {
    position: relative;
}

/* Featured advertentie badge */

.featured-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    color: white;
    font-size: 0.7rem;
    padding: 3px 6px;
    border-radius: 3px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 2;
}

.ad-content-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 10px 16px 8px 16px;
    justify-content: flex-start;
    position: relative;
}

.ad-content-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ad-title {
    font-size: 1.0rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ad-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.3;
}

.ad-meta-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #888;
    margin-top: 4px;
    transition: color 0.3s ease;
}

.ad-box:hover .ad-meta-info {
    color: #495057;
}

.ad-meta-info span {
    display: flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.3s ease;
}

.ad-box:hover .ad-meta-info span {
    transform: translateX(2px);
}

.ad-badges-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.ad-description {
    flex: 1;
    margin: 8px 0 0 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ad-bottom-info {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: auto;
    padding-top: 4px;
    padding-right: 60px; /* Ruimte voor het hartje */
}

.ad-time-location {
    font-size: 0.8rem;
    color: #888;
}

.ad-actions-inline {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
    align-items: center;
    transition: transform 0.3s ease;
    z-index: 5;
}

.ad-box:hover .ad-actions-inline {
    transform: translateY(-50%) scale(1.1);
}

/* Enhanced online status pulse */
.text-success i.bi-circle-fill {
    animation: pulse-enhanced 1.5s infinite;
}

@keyframes pulse-enhanced {
    0% { 
        opacity: 1; 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.1);
        box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.3);
    }
    100% { 
        opacity: 1; 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.ad-reviews {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.ad-description {
    flex: 1;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-count {
    font-size: 0.85rem;
    color: #666;
}

.ad-description {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-availability {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #28a745;
    font-weight: 500;
}

.ad-footer {
    display: none; /* Verbergen */
}

.ad-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.ad-actions .btn {
    font-size: 0.875rem;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    white-space: nowrap;
    flex: 1;
    min-width: 120px;
}

/* Sidebar styling */
.sidebar-container {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 0;
    overflow: hidden;
}

.sidebar-section {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 1.5rem;
    margin-bottom: 0;
    box-shadow: none;
    border-bottom: 1px solid #f8f9fa;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-section h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Sidebar block styling for consistent look */
.dashboard-row > .col-12.col-lg-4 > div {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    padding: 1.5rem;
    margin-bottom: 24px;
}

.dashboard-row > .col-12.col-lg-4 > div.bg-light {
    background: #fff !important;
    border: 1px solid #e9ecef !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08) !important;
}

/* Form styling */
.form-label {
    color: #495057;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-select-sm, .form-control-sm {
    font-size: 0.875rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 0.5rem 0.75rem;
}

.form-select-sm:focus, .form-control-sm:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Button improvements */
.btn {
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Quick search bar */
.quick-search-bar .input-group-text {
    border-right: none;
}

.quick-search-bar .form-control {
    border-left: none;
}

.quick-search-bar .form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

/* Advertiser welcome alert styling */
.advertiser-welcome-alert {
    position: relative;
    overflow: hidden;
}

.advertiser-welcome-alert::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.pulse-animation {
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    from { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.3);
    }
    to { 
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }
}

/* Plaats suggesties dropdown styling */
#plaats-suggesties {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: white;
    z-index: 10000 !important;
    position: absolute !important;
}

#plaats-suggesties .list-group-item {
    border: none;
    border-bottom: 1px solid #f8f9fa;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    font-size: 0.875rem;
}

#plaats-suggesties .list-group-item:last-child {
    border-bottom: none;
}

#plaats-suggesties .list-group-item:hover,
#plaats-suggesties .list-group-item.active {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.hover-bg-light {
    transition: all 0.2s ease;
    border-radius: 6px;
}

.hover-bg-light:hover {
    background-color: #f8f9fa !important;
    cursor: pointer;
    transform: translateY(-1px);
}

/* Animations */
.ad-box {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation */
.ad-box:nth-child(1) { animation-delay: 0.1s; }
.ad-box:nth-child(2) { animation-delay: 0.2s; }
.ad-box:nth-child(3) { animation-delay: 0.3s; }
.ad-box:nth-child(4) { animation-delay: 0.4s; }
.ad-box:nth-child(5) { animation-delay: 0.5s; }

/* Pagination styling - Simple and clean - Override Bootstrap */
.pagination-container {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.pagination-info {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Reset all pagination to inline-block horizontal layout */
.pagination-container nav {
    display: inline-block !important;
    text-align: center !important;
}

.pagination-container nav > div {
    display: inline-block !important;
    text-align: center !important;
}

/* Simple horizontal pagination - Override Bootstrap classes */
.pagination {
    display: inline-flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 5px !important;
    justify-content: center !important;
    align-items: center !important;
}

.pagination li,
.pagination .page-item {
    display: inline-block !important;
    margin: 0 !important;
    float: none !important;
}

.pagination a,
.pagination span,
.pagination .page-link {
    display: inline-block !important;
    padding: 8px 12px !important;
    color: #495057 !important;
    background-color: #fff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    min-width: 40px !important;
    text-align: center !important;
    line-height: 1.5 !important;
    float: none !important;
    position: relative !important;
}

.pagination a:hover,
.pagination .page-link:hover {
    color: #007bff !important;
    background-color: #f8f9fa !important;
    border-color: #007bff !important;
    text-decoration: none !important;
}

.pagination .active span,
.pagination .page-item.active .page-link {
    background-color: #007bff !important;
    border-color: #007bff !important;
    color: #fff !important;
}

.pagination .disabled span,
.pagination .page-item.disabled .page-link {
    color: #6c757d !important;
    background-color: #fff !important;
    border-color: #dee2e6 !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}

/* Extra Bootstrap pagination override - Force horizontal layout */
.pagination-container .pagination {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    width: auto !important;
    max-width: none !important;
}

.pagination-container .pagination li,
.pagination-container .pagination .page-item {
    display: inline-block !important;
    float: none !important;
    clear: none !important;
    width: auto !important;
    height: auto !important;
    vertical-align: middle !important;
}

.pagination-container .pagination a,
.pagination-container .pagination span,
.pagination-container .pagination .page-link {
    display: inline-block !important;
    float: none !important;
    clear: none !important;
    width: auto !important;
    height: auto !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

/* Override any Bootstrap flexbox issues */
.pagination-container * {
    flex-direction: row !important;
    flex-wrap: wrap !important;
}

/* Force remove any Bootstrap display table or grid */
.pagination-container .pagination,
.pagination-container .pagination li,
.pagination-container .pagination a,
.pagination-container .pagination span {
    display: inline-block !important;
    table-layout: auto !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .pagination a,
    .pagination span,
    .pagination .page-link {
        padding: 6px 10px !important;
        font-size: 0.8rem !important;
        min-width: 35px !important;
    }
    
    .pagination-container {
        padding: 0.75rem !important;
    }
}

@media (max-width: 576px) {
    .pagination a,
    .pagination span,
    .pagination .page-link {
        padding: 5px 8px !important;
        font-size: 0.75rem !important;
        min-width: 30px !important;
    }
    
    .pagination-container {
        padding: 0.5rem !important;
        margin-top: 1rem !important;
    }
    
    .pagination-info {
        font-size: 0.8rem !important;
        margin-bottom: 0.75rem !important;
    }
}

/* Premium badge styling */
.premium-badge {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #333;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

/* Boost badge styling */
.boost-badge {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
    animation: pulse-boost 2s infinite;
}

@keyframes pulse-boost {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Override Bootstrap navbar z-index */
.navbar,
.navbar-nav,
.navbar-brand,
.navbar-toggler {
    z-index: 1030 !important;
}

/* Header z-index */
header,
.header,
.top-header {
    z-index: 1040 !important;
}

/* --- End of homepage styles --- */

/* Age Slider Styles */
.age-slider-container {
    padding: 10px 0;
}

.age-slider-labels {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.age-display {
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.age-slider-wrapper {
    height: 40px;
    position: relative;
}

.age-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: transparent;
    outline: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.age-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #007bff;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.age-slider::-webkit-slider-thumb:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.age-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #007bff;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.age-slider::-moz-range-thumb:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.age-slider-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 6px;
    background: #dee2e6;
    border-radius: 3px;
}

.age-slider-range {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-radius: 3px;
    transition: all 0.2s ease;
}

.age-slider-marks {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 8px;
}

.age-mark {
    font-size: 0.7rem;
    color: #6c757d;
    line-height: 1;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .age-slider-container {
        padding: 8px 0;
    }
    
    .age-slider::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
    }
    
    .age-slider::-moz-range-thumb {
        width: 18px;
        height: 18px;
    }
    
    .age-display {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
}

/* Emergency button styling */
#emergencyResetBtn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Dashboard sidebar fix: ensure sidebar stays right on desktop */
.dashboard-row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px; /* Extra ruimte tussen main en sidebar */
}
.dashboard-row > .col-12.col-lg-8,
.dashboard-row > .col-12.col-lg-4 {
    box-sizing: border-box;
}
.dashboard-row > .col-12.col-lg-8 {
    flex: 0 0 60%;
    max-width: 60%;
}
.dashboard-row > .col-12.col-lg-4 {
    flex: 0 0 32%;
    max-width: 32%;
}
@media (max-width: 991.98px) {
    .dashboard-row {
        display: block;
        gap: 0;
    }
    .dashboard-row > .col-12.col-lg-8,
    .dashboard-row > .col-12.col-lg-4 {
        max-width: 100%;
        flex: 0 0 100%;
    }
}

/* Multi-select diensten checkbox styling */
.form-check-sm {
    margin-bottom: 0.25rem;
}

.form-check-sm .form-check-input {
    margin-top: 0.2rem;
    margin-right: 0.5rem;
    width: 1rem;
    height: 1rem;
    border: 2px solid #d1d5db;
    border-radius: 0 !important;
}

/* Desktop specific styling for diensten checkboxes */
@media (min-width: 768px) {
    .form-check-sm .form-check-input {
        width: 1.2rem;
        height: 1.2rem;
        margin-top: 0.1rem;
        margin-right: 0.6rem;
    }
    
    .form-check-sm .form-check-label {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

.form-check-sm .form-check-label {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0;
    cursor: pointer;
}

.diensten-checkbox:checked + .form-check-label {
    font-weight: 500;
    color: #007bff;
}

.diensten-checkbox:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.diensten-checkbox:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Ensure checkboxes are fully visible and not clipped */
.form-check-sm {
    display: flex;
    align-items: flex-start;
    min-height: 1.5rem;
    padding-left: 0;
}

.form-check-sm .form-check-input {
    position: relative;
    flex-shrink: 0;
    margin-left: 0;
}

/* Override any potential conflicts with Bootstrap or other CSS */
.diensten-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    background-image: none;
    position: relative;
    vertical-align: top;
}

.diensten-checkbox:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1;
}

/* Scroll styling for diensten container */
.border.rounded.p-2::-webkit-scrollbar {
    width: 6px;
}

.border.rounded.p-2::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.border.rounded.p-2::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.border.rounded.p-2::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

