/* Think Open Brand Colors */
:root {
    --brand-dark: #0f172a;
    --brand-blue: #0f172a;  /* Huisstijl blauw gelijk aan brand-dark */
    --brand-yellow: #f5cc3b;
    --brand-light: #ffffff;
    --muted: #64748b;
    --border-color: #e2e8f0;
    --body-bg: #f8fafc;
    --sidebar-width: 250px;
    --navbar-height: 60px; /* fallback; overridden by JS to actual navbar height */
    --success-color: #f5cc3b; /* Think Open geel voor success */
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --border-radius: 0.75rem;
    --border-radius-sm: 0.5rem;
    --border-radius-lg: 1rem;
    --box-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* Global Styles */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--body-bg);
    line-height: 1.6;
    color: #374151;
}
/* On the login page, remove global top padding so there is no white bar */
body .login-page { margin-top: 0; }
body:not(.admin-user):not(.monteur-user) { padding-top: 0; }
/* Also ensure the container sits flush on login */
.login-page .container { padding-top: 0; }

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    text-align: center;
}

/* Breadcrumb styling */
.breadcrumb {
    background: none;
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--muted);
    font-size: 1.125rem;
}

.breadcrumb-item a {
    color: var(--brand-blue);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--muted);
}

/* Enhanced typography */
.page-title {
    font-weight: 700;
    font-size: 1.875rem;
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 2rem;
}

/* Enhanced dashboard components */
.page-header {
    margin-bottom: 0.75rem;
}

/* Admin dashboard compact layout */
.admin-dashboard .container-xl {
    padding-top: 1rem;
}

.admin-dashboard .row {
    margin-bottom: 1.5rem;
}

.page-title {
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--brand-dark);
    margin-bottom: 0.25rem;
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0;
}

/* Enhanced stat cards */
.stat-card {
    transition: all 0.2s ease;
    border-radius: var(--border-radius-lg) !important;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg) !important;
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Progress ring animation */
.progress-ring {
    position: relative;
    width: 50px;
    height: 50px;
}

.progress-circle {
    transform: rotate(-90deg);
    transform-origin: center;
    stroke-dasharray: 126; /* 2 * π * 20 */
    stroke-dashoffset: 126;
    transition: stroke-dashoffset 1s ease-in-out;
}

/* Trend indicators */
.trend-indicator {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
}

/* Project list enhancements */
.project-item {
    transition: all 0.2s ease;
    border-radius: var(--border-radius-sm);
    margin: -0.5rem;
    padding: 1rem !important;
}

.project-item:hover {
    background-color: #f8fafc;
    transform: translateX(4px);
}

.project-status {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Empty state styling */
.empty-state {
    padding: 3rem 1rem;
}

/* Status pulse animation */
.status-pulse {
    animation: status-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes status-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Enhanced form wizard */
.form-wizard-progress {
    margin-bottom: 2rem;
}

.wizard-step {
    text-align: center;
    position: relative;
}

.wizard-step-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto 0.5rem;
    transition: all 0.3s ease;
}

.wizard-step.active .wizard-step-icon {
    background: var(--brand-blue);
    color: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.wizard-step.completed .wizard-step-icon {
    background: var(--success-color);
    color: white;
}

.wizard-step-title {
    font-size: 0.875rem;
    color: var(--muted);
    font-weight: 500;
}

.wizard-step.active .wizard-step-title {
    color: var(--brand-dark);
    font-weight: 600;
}

/* Loading skeleton animations */
.loading-skeleton {
    animation: skeleton-loading 1.5s ease-in-out infinite alternate;
}

.skeleton-line, .skeleton-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--border-radius-sm);
    height: 1rem;
}

.skeleton-image {
    height: 200px;
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Enhanced notifications */
.floating-notification {
    animation: slideInFromRight 0.3s ease;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.progress-notification .card {
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
}

/* Enhanced file uploads */
.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.drop-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 25%, rgba(59, 130, 246, 0.05) 25%, rgba(59, 130, 246, 0.05) 50%, transparent 50%, transparent 75%, rgba(59, 130, 246, 0.05) 75%);
    background-size: 20px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drop-zone:hover::before,
.drop-zone.drag-over::before {
    opacity: 1;
}

.drop-zone:hover {
    border-color: var(--brand-blue);
    background-color: rgba(59, 130, 246, 0.02);
    transform: scale(1.02);
}

.drop-zone.drag-over {
    border-color: var(--success-color);
    background-color: rgba(34, 197, 94, 0.05);
    transform: scale(1.05);
}

.file-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.file-preview-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    position: relative;
}

.file-preview-item img {
    max-width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

/* Enhanced search inputs */
.search-loading {
    position: relative;
}

.search-loading::after {
    content: '';
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid var(--brand-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced tables */
.table-enhanced {
    border-collapse: separate;
    border-spacing: 0;
}

.table-enhanced thead th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--brand-dark);
    padding: 1rem;
}

.table-enhanced thead th:first-child {
    border-radius: var(--border-radius-sm) 0 0 0;
}

.table-enhanced thead th:last-child {
    border-radius: 0 var(--border-radius-sm) 0 0;
}

.table-enhanced tbody tr {
    border-top: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.table-enhanced tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.02);
    transform: translateX(2px);
}

.table-enhanced tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* Mobile enhancements */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .stat-card .card-body {
        padding: 1rem;
    }
    
    .action-icon, .stat-icon {
        width: 2rem;
        height: 2rem;
    }
    
    .project-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .project-actions {
        margin-left: 0 !important;
        align-self: stretch;
        justify-content: space-between;
    }
    
    .drop-zone {
        padding: 2rem 1rem;
    }
    
    .wizard-step-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.875rem;
    }
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    color: var(--brand-light) !important;
}

.bg-brand-dark {
    background-color: var(--brand-dark) !important;
}

/* Buttons */
.btn-brand-yellow {
    background-color: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: var(--brand-dark);
    font-weight: 500;
}

.btn-brand-yellow:hover {
    background-color: #f0c224;
    border-color: #f0c224;
    color: var(--brand-dark);
}

.btn-brand-yellow:focus {
    box-shadow: 0 0 0 0.25rem rgba(245, 204, 59, 0.25);
}

/* Override Bootstrap primary buttons to use brand blue */
.btn-primary {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    color: var(--brand-light);
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #1e293b;
    border-color: #1e293b;
    color: var(--brand-light);
}

.btn-primary:focus {
    background-color: #1e293b;
    border-color: #1e293b;
    color: var(--brand-light);
    box-shadow: 0 0 0 0.25rem rgba(15, 23, 42, 0.25);
}

.btn-primary:active,
.btn-primary.active {
    background-color: #1e293b;
    border-color: #1e293b;
    color: var(--brand-light);
}

/* Progress bars */
.progress-bar.bg-brand-yellow {
    background-color: var(--brand-yellow) !important;
}

/* Admin Layout */
.sidebar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--navbar-height));
    background: var(--brand-light);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    z-index: 1000;
    padding: 1.5rem 0;
}

.sidebar-header {
    padding: 0 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--muted);
    text-decoration: none;
    border-radius: 0;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
    background-color: #f1f5f9;
    color: var(--brand-dark);
}

.sidebar .nav-link.active {
    background-color: var(--brand-yellow);
    color: var(--brand-dark);
    font-weight: 500;
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 0.75rem;
    font-size: 1.1em;
}

/* Main content when admin */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--navbar-height);
    padding: 1rem 0;
    min-height: calc(100vh - var(--navbar-height));
}

/* Monteur navigation */
.monteur-nav {
    background: var(--brand-light);
    border-bottom: 1px solid var(--border-color);
    margin-top: var(--navbar-height);
    padding: 0.5rem 0;
}

.monteur-nav .nav-link {
    color: var(--muted);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    margin: 0 0.25rem;
}

.monteur-nav .nav-link:hover {
    background-color: #f1f5f9;
    color: var(--brand-dark);
}

.monteur-nav .nav-link.active {
    background-color: var(--brand-yellow);
    color: var(--brand-dark);
}

/* For monteur users, adjust main content */
body:not(.admin-user) .main-content {
    margin-left: 0;
    margin-top: calc(var(--navbar-height) + 50px);
}

/* Login page */
.login-page {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #1e293b 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-page .card {
    border: none;
    border-radius: 1rem;
}

.text-brand-yellow {
    color: var(--brand-yellow) !important;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 0.75rem;
}

.card-header {
    background: var(--brand-light);
    border-bottom: 1px solid var(--border-color);
    border-radius: 0.75rem 0.75rem 0 0 !important;
    font-weight: 500;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    background-color: #f8fafc;
    font-weight: 600;
    color: var(--brand-dark);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.table-hover tbody tr:hover {
    background-color: rgba(245, 204, 59, 0.1);
}

/* Status badges */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Forms */
.form-control:focus {
    border-color: var(--brand-yellow);
    box-shadow: 0 0 0 0.25rem rgba(245, 204, 59, 0.25);
}

.form-select:focus {
    border-color: var(--brand-yellow);
    box-shadow: 0 0 0 0.25rem rgba(245, 204, 59, 0.25);
}

/* Form check groups */
.form-check-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-check-group .form-check {
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.75rem;
}
/* Make flash container compact on login page */
.login-page ~ .container-xl, .login-page .container-xl { padding-top: 0 !important; }

/* Compact alert for dashboard notifications */
.alert-compact {
    padding: 0.5rem 1rem !important;
    margin-bottom: 1rem !important;
}

.alert-compact .alert-message {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.alert-compact .alert-actions {
    margin-top: 0.375rem !important;
}

/* Progress bars */
.progress {
    border-radius: 0.5rem;
    background-color: #f1f5f9;
}

.progress-bar {
    border-radius: 0.5rem;
}

/* Icons */
.bi {
    display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content { margin-left: 0; }
}

/* Handle small viewport heights and zoomed displays */
@media (max-height: 700px) {
    .sidebar { padding-top: 0.5rem; }
    .sidebar .nav-link { padding: 0.5rem 1rem; }
}

/* Ensure content never sits under fixed navbar on any DPI */
/* Always keep page content below fixed navbar */
body { padding-top: var(--navbar-height, 60px); }
/* But not on login (no navbar shown) */
body:not(.admin-user):not(.monteur-user) { padding-top: 0; }

/* Admin layout: main-content already offset by margin-top using --navbar-height */
body.admin-user .main-content { padding-top: 0; }

/* Monteur layout: no sidebar margin; rely on body padding-top only */
body.monteur-user .main-content { margin-top: 0; }
    
    .monteur-nav .nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .monteur-nav .nav-link {
        white-space: nowrap;
    }
    
    /* Mobile camera optimization */
    #camera-preview {
        width: 100% !important;
        max-width: none !important;
        border-radius: 0.5rem;
    }
    
    .modal-dialog.modal-lg {
        max-width: 95%;
        margin: 1rem auto;
    }
    
    /* Larger touch targets for mobile */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1.125rem;
    }
    
    /* Card improvements for mobile */
    .card {
        margin-bottom: 1rem;
        border-radius: 1rem;
    }
    
    .card-header {
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Pagination */
.pagination .page-link {
    color: var(--brand-dark);
    border-color: var(--border-color);
}

.pagination .page-link:hover {
    background-color: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: var(--brand-dark);
}

.pagination .page-item.active .page-link {
    background-color: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: var(--brand-dark);
}

/* Utilities */
.text-muted {
    color: var(--muted) !important;
}

/* File upload */
.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.drop-zone:hover {
    border-color: var(--brand-yellow);
    background-color: rgba(245, 204, 59, 0.05);
}

.drop-zone.drag-over {
    border-color: var(--brand-yellow);
    background-color: rgba(245, 204, 59, 0.1);
}

/* Toast notifications */
.toast {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-header {
    background-color: var(--brand-yellow);
    color: var(--brand-dark);
    border-bottom: none;
    font-weight: 500;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--muted);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--brand-dark);
}

/* Mobile camera and verification styles */
#camera-preview {
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-content {
    border-radius: 1rem;
}

.modal-header {
    border-radius: 1rem 1rem 0 0;
}

#file-preview img,
#file-preview video {
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Camera controls optimization */
.btn-lg {
    min-width: 120px;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .btn-lg {
        min-width: 100px;
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-dialog.modal-lg {
        max-width: none;
    }
}

/* File input improvements */
.form-control[type="file"] {
    padding: 0.75rem;
}

.form-control[type="file"]:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 0.25rem rgba(15, 23, 42, 0.25);
}

/* Verification badges */
.badge.bg-info {
    background-color: #0dcaf0 !important;
}

.badge.bg-success {
    background-color: #198754 !important;
}

/* Loading states */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Camera and verification styles */
.verification-section {
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 1rem 0;
}

#camera-preview {
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #000;
}

.camera-controls {
    margin-top: 1rem;
}

.capture-button {
    background: linear-gradient(145deg, #dc3545, #c82333);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
}

.capture-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.record-button {
    background: linear-gradient(145deg, var(--brand-blue), #1e293b);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
    transition: all 0.3s ease;
}

.record-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.4);
}

.record-button.recording {
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    from {
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    }
    to {
        box-shadow: 0 6px 20px rgba(220, 53, 69, 0.6);
    }
}

/* Verification badges */
.verification-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.verification-badge.photo {
    background: linear-gradient(145deg, #28a745, #20c997);
    color: white;
}

.verification-badge.video {
    background: linear-gradient(145deg, #17a2b8, #20c997);
    color: white;
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
    /* Stats cards mobile optimization */
    .stat-card .card-body {
        padding: 1rem 0.75rem;
    }
    
    .stat-card h2 {
        font-size: 1.5rem;
    }
    
    .stat-card h6 {
        font-size: 0.7rem;
    }
    
    .progress-ring {
        width: 40px;
        height: 40px;
    }
    
    .progress-ring svg {
        width: 40px;
        height: 40px;
    }
    
    /* Quick actions mobile */
    .quick-actions .btn {
        padding: 0.75rem 1rem;
    }
    
    .quick-actions .btn i {
        font-size: 1.25rem;
    }
    
    /* Table responsive improvements */
    .table-responsive {
        font-size: 0.875rem;
    }
    
    /* Container padding on mobile */
    .container-xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Card spacing on mobile */
    .card {
        margin-bottom: 1rem;
    }
    
    /* Navigation improvements */
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    /* Monteur nav mobile improvements */
    .monteur-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--brand-dark);
        border-top: 2px solid var(--brand-yellow);
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    
    .monteur-nav .nav {
        justify-content: center;
        padding: 0.5rem 0;
    }
    
    .monteur-nav .nav-link {
        flex: 1;
        text-align: center;
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
        color: rgba(255,255,255,0.7);
        border-radius: 0;
        min-height: 3rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .monteur-nav .nav-link i {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }
    
    .monteur-nav .nav-link.active {
        color: var(--brand-yellow);
        background: rgba(245, 204, 59, 0.1);
    }
    
    /* Add bottom padding to body for fixed nav */
    body {
        padding-bottom: 4rem;
    }
}

@media (max-width: 576px) {
    /* Extra small mobile improvements */
    h1.h3 {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    /* Stat cards extra small */
    .stat-card h2 {
        font-size: 1.25rem;
    }
    
    .stat-card .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Progress rings smaller */
    .progress-ring {
        width: 35px;
        height: 35px;
    }
    
    .progress-ring svg {
        width: 35px;
        height: 35px;
    }
    
    .progress-ring circle {
        r: 15;
        cx: 17.5;
        cy: 17.5;
    }
}

/* Think Open Huisstijl Overrides - Geel in plaats van groen */
.btn-success {
    --bs-btn-color: #0f172a;
    --bs-btn-bg: var(--brand-yellow);
    --bs-btn-border-color: var(--brand-yellow);
    --bs-btn-hover-color: #0f172a;
    --bs-btn-hover-bg: #e6b435;
    --bs-btn-hover-border-color: #e6b435;
    --bs-btn-focus-shadow-rgb: 245, 204, 59;
    --bs-btn-active-color: #0f172a;
    --bs-btn-active-bg: #e6b435;
    --bs-btn-active-border-color: #e6b435;
}

.bg-success {
    background-color: var(--brand-yellow) !important;
}

.text-success {
    color: var(--brand-yellow) !important;
}

.bg-success.bg-opacity-10 {
    background-color: rgba(245, 204, 59, 0.1) !important;
}

.border-success {
    border-color: var(--brand-yellow) !important;
}

.alert-success {
    --bs-alert-color: #0f172a;
    --bs-alert-bg: rgba(245, 204, 59, 0.1);
    --bs-alert-border-color: var(--brand-yellow);
}

/* Status badges met Think Open kleuren */
.badge.bg-success {
    background-color: var(--brand-yellow) !important;
    color: var(--brand-dark) !important;
}

/* Disable green valid check styling on inputs */
.form-control.is-valid, .form-select.is-valid { border-color: #ced4da !important; padding-right: .75rem !important; background-image: none !important; }
.form-control.is-valid:focus, .form-select.is-valid:focus { box-shadow: none !important; }
.was-validated .form-control:valid, .was-validated .form-select:valid { border-color: #ced4da !important; background-image: none !important; }
/* Keep invalid states visible */
.form-control.is-invalid, .was-validated .form-control:invalid { border-color: #dc3545 !important; }
