/* Algemene stijlen */
:root {
    /* Light mode variabelen */
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --success-color: #2ecc71;
    --warning-color: #f1c40f;
    --danger-color: #e74c3c;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --transition-speed: 0.3s;
    
    /* Light mode specifieke variabelen */
    --bg-color: #f5f7fa;
    --text-color: #2c3e50;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --hover-bg: rgba(74,144,226,0.05);
    --shadow-color: rgba(0,0,0,0.1);
}

/* Dark mode variabelen */
[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --card-bg: #2d2d2d;
    --border-color: #404040;
    --hover-bg: rgba(74,144,226,0.15);
    --shadow-color: rgba(0,0,0,0.3);
    --light-gray: #2d2d2d;
    --dark-gray: #404040;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

/* Navigatie styling */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), #357abd);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    transition: all var(--transition-speed) ease;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    transition: transform var(--transition-speed) ease;
    color: white !important;
    display: flex;
    align-items: center;
}

.brand-logo {
    background: white;
    color: var(--primary-color);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    margin-right: 8px;
}

.brand-text {
    background: linear-gradient(45deg, #fff, #e6e6e6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    margin: 0 0.25rem;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
}

.nav-icon {
    margin-right: 8px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: white;
    transition: all var(--transition-speed) ease;
    opacity: 0;
    border-radius: 3px 3px 0 0;
}

.nav-link:hover {
    color: white !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    opacity: 1;
}

.nav-link.active {
    color: white !important;
    font-weight: 600;
}

/* Gebruiker dropdown */
.avatar {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 2px solid rgba(255,255,255,0.5);
}

.large-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.user-dropdown {
    display: flex;
    align-items: center;
}

.dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0,0,0,0.02);
}

.user-menu {
    min-width: 280px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.dropdown-menu {
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    margin-top: 0.75rem;
    background-color: var(--card-bg);
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    color: var(--text-color);
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.dropdown-item:hover {
    background-color: var(--hover-bg);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--border-color);
}

/* Notificaties */
.notification-link {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e74c3c;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-login {
    background: rgba(255,255,255,0.2);
    border-radius: 30px;
    padding: 0.5rem 1.25rem !important;
    margin-left: 0.5rem;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.btn-login:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Card styling */
.card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all var(--transition-speed) ease;
    overflow: hidden;
    background: var(--card-bg);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), #357abd);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

/* Button styling */
.btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
    width: 300%;
    height: 300%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #357abd);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74,144,226,0.3);
}

/* Form styling */
.form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    transition: all var(--transition-speed) ease;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74,144,226,0.15);
    background-color: var(--card-bg);
    color: var(--text-color);
}

/* Table styling */
.table {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    color: var(--text-color);
    width: 100%;
    table-layout: fixed;
}

.table thead th {
    background: linear-gradient(135deg, var(--primary-color), #357abd);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 1rem;
    border: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table tbody tr {
    transition: background-color var(--transition-speed) ease;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background-color: var(--hover-bg);
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    white-space: wrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Kolom breedtes */
.table th.bedrijfsnaam,
.table td.bedrijfsnaam {
    width: 25%;
}

.table th.kvk-nummer,
.table td.kvk-nummer {
    width: 15%;
}

.table th.email,
.table td.email {
    width: 25%;
}

.table th.kantoor,
.table td.kantoor {
    width: 15%;
}

.table th.status,
.table td.status {
    width: 10%;
}

.table th.acties,
.table td.acties {
    width: 10%;
    text-align: right;
}

/* Container voor de tabel */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Zorg dat de tabel header vast blijft staan */
.table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Dashboard stats cards */
.stats-card {
    background: linear-gradient(135deg, var(--primary-color), #357abd);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-speed) ease;
}

.stats-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.stats-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stats-card .number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

/* Loading spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive aanpassingen */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
    }
    
    .stats-card .number {
        font-size: 2rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #357abd;
}

/* Tooltip styling */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: var(--dark-gray);
    color: white;
    font-size: 0.875rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
}

[data-tooltip]:hover:before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Progress bar */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: var(--light-gray);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(135deg, var(--primary-color), #357abd);
    transition: width 0.6s ease;
}

/* Modal styling */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background-color: var(--card-bg);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), #357abd);
    color: white;
    border: none;
    border-radius: 12px 12px 0 0;
    padding: 1.5rem;
}

.modal-body {
    padding: 2rem;
    color: var(--text-color);
}

.modal-footer {
    border-top: 1px solid var(--light-gray);
    padding: 1.5rem;
}

/* Badge styling */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary-color), #357abd);
    color: white;
}

/* Dropdown styling */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all var(--transition-speed) ease;
}

.dropdown-item:hover {
    background-color: rgba(74,144,226,0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

/* List group styling */
.list-group-item {
    border: none;
    border-radius: 8px !important;
    margin-bottom: 0.5rem;
    transition: all var(--transition-speed) ease;
}

.list-group-item:hover {
    background-color: rgba(74,144,226,0.05);
    transform: translateX(5px);
}

/* Pagination styling */
.pagination {
    gap: 0.5rem;
}

.page-link {
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--secondary-color);
    transition: all var(--transition-speed) ease;
}

.page-link:hover {
    background-color: rgba(74,144,226,0.1);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color), #357abd);
    color: white;
}

/* File upload styling */
.custom-file-input {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-file-label {
    background-color: var(--light-gray);
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.custom-file-label:hover {
    border-color: var(--primary-color);
    background-color: rgba(74,144,226,0.05);
}

/* Switch styling */
.custom-switch .custom-control-label::before {
    width: 2.5rem;
    height: 1.5rem;
    border-radius: 1rem;
    background-color: var(--light-gray);
    border: none;
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
    background: linear-gradient(135deg, var(--primary-color), #357abd);
}

.custom-switch .custom-control-label::after {
    top: calc(0.25rem + 2px);
    left: calc(-2.5rem + 2px);
    width: calc(1.5rem - 4px);
    height: calc(1.5rem - 4px);
    border-radius: 50%;
    background-color: white;
    transition: transform 0.15s ease-in-out;
}

/* Toast notifications */
.toast {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-header {
    background: linear-gradient(135deg, var(--primary-color), #357abd);
    color: white;
    border: none;
    border-radius: 12px 12px 0 0;
}

/* Skeleton loading animation */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Dark mode specifieke aanpassingen */
[data-theme="dark"] .navbar {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
}

[data-theme="dark"] .card-header {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
}

[data-theme="dark"] .table thead th {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
}

[data-theme="dark"] .dropdown-menu {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-color);
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: var(--hover-bg);
}

/* Dark mode toggle button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.theme-toggle:hover {
    background-color: var(--hover-bg);
    transform: rotate(360deg);
}

.theme-toggle i {
    font-size: 1.2rem;
}

/* Hero sectie styling */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), #357abd);
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('../img/pattern.svg');
    background-size: cover;
    opacity: 0.05;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-size: 3rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-section .lead {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.dashboard-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
    transition: transform 0.5s ease;
}

.dashboard-image:hover {
    transform: translateY(-10px);
}

/* Sectie headers */
.section-header {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0;
}

/* Action cards */
.action-card {
    border-radius: 12px;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: 100%;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
}

.action-card .card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.action-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #357abd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(74,144,226,0.3);
}

.action-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Feature cards voor niet-ingelogde gebruikers */
.features-section {
    padding: 3rem 0;
}

.feature-card {
    padding: 2rem;
    border-radius: 12px;
    background-color: var(--card-bg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all var(--transition-speed) ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #357abd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(74,144,226,0.4);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Verbeterde stats cards */
.stats-card {
    background: linear-gradient(135deg, var(--primary-color), #357abd);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('../img/pattern.svg');
    background-size: cover;
    opacity: 0.05;
    z-index: 0;
}

.stats-card h3 {
    position: relative;
    z-index: 1;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stats-card .number {
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

.stats-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Responsieve aanpassingen */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .action-card .card-body,
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-card h3 {
        font-size: 1.25rem;
    }
}

/* Specifieke aanpassingen voor de klanten tabel header op kleine schermen */
@media (max-width: 767.98px) { 
    .table-clients thead th {
        /* Verminder padding */
        padding: 0.6rem 0.4rem; 
        /* Optioneel: kleinere lettergrootte */
        font-size: 0.75rem; 
        /* Voorkom dat tekst afbreekt */
        white-space: nowrap; 
        /* Verberg tekst als het echt niet past (beter dan afbreken) */
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Zorg dat de actie knoppen kleiner zijn op mobiel */
    .table-clients .btn-group .btn {
        padding: 0.25rem 0.5rem; /* Kleinere padding */
        font-size: 0.8rem; /* Kleiner lettertype */
    }
    .table-clients .btn-group .btn i {
        font-size: 0.9rem; /* Iets kleiner icoon */
    }
} 