/* Global styles */
body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #495057;
    line-height: 1.6;
}

/* Navbar styling */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #0d6efd !important;
}

.navbar-nav .nav-link.active {
    color: #0d6efd !important;
    font-weight: 600;
}

/* Dropdown styling */
.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #0d6efd !important;
}

/* Readonly/disabled input styling */
input[readonly], input:disabled, textarea[readonly], textarea:disabled {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    border-color: #e9ecef !important;
}

/* DataTables styling */
.dataTables_wrapper {
    padding: 1.5rem;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    margin-top: 1rem;
}

/* DataTables verbergen tot initialisatie */
table[id$="-table"] {
    display: none;
}
table[id$="-table"].dataTable {
    display: table !important;
}

/* Globale DataTables styling voor consistentie */
table[id$="-table"] {
    width: 100% !important;
}

/* Striped rijen voor alle DataTables */
table[id$="-table"] tbody tr:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

table[id$="-table"] tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0);
}

/* Hover effect voor alle DataTables */
table[id$="-table"] tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

/* Actie kolommen rechts uitlijnen en knoppen altijd naast elkaar */
table[id$="-table"] th:last-child,
table[id$="-table"] td:last-child {
    text-align: right;
    width: 170px;
    min-width: 140px;
    max-width: 220px;
    white-space: nowrap;
}

table[id$="-table"] .btn {
    margin-left: 0.25rem;
}
table[id$="-table"] .btn:first-child {
    margin-left: 0;
}

/* Consistente kolom breedtes */
table[id$="-table"] th:first-child {
    width: 80px; /* Voor afbeeldingen of kleine elementen */
}

/* Responsive DataTables */
@media (max-width: 768px) {
    .dataTables_wrapper {
        padding: 1rem;
    }
    
    table[id$="-table"] th:last-child,
    table[id$="-table"] td:last-child {
        width: auto;
    }
}

/* Form styling */
.form-control {
    border-radius: 6px;
    border-color: #e9ecef;
    font-weight: 500;
    height: 2.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-select {
    height: 2.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Checkbox styling */
.form-check-input {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
}

.form-check-label {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Button styling */
.btn {
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    transform: translateY(-1px);
}

.btn-group .btn {
    margin-right: 0.25rem;
}

/* Card styling */
.card {
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    background: #ffffff;
    margin: 0 1rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #495057;
}

/* Table styling */
.table {
    color: #495057;
}

.table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
}

.table td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid #f8f9fa;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Alert styling */
.alert {
    border-radius: 8px;
    border: none;
    font-weight: 500;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Accordion styling */
.accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: #0d6efd;
    font-weight: 600;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Custom badge styling */
.badge {
    font-size: 0.75em;
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: 6px;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%) !important;
}

/* Page header styling */
.page-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem 0;
    border-radius: 12px;
    margin: 0 1rem 2rem 1rem;
}

.page-title {
    color: #495057;
    font-weight: 700;
    margin: 0;
}

/* Avatar styling */
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Typography styling */
.font-weight-medium {
    font-weight: 500;
    color: #212529;
}

.text-muted {
    color: #6c757d !important;
    font-size: 0.875rem;
}

/* Link styling */
a {
    color: #667eea;
    text-decoration: none;
}

a:hover {
    color: #5a6fd8;
}

/* Customer name styling */
.customer-name {
    color: #495057;
}

/* Modal styling */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: #495057;
}

.modal-body {
    padding: 1.5rem;
    color: #495057;
    font-size: 1rem;
    line-height: 1.6;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .btn {
        margin-bottom: 0.25rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
} 

/* Product afbeeldingen in tabel */
.product-thumbnail {
    max-width: 60px;
    max-height: 60px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.product-thumbnail:hover {
    transform: scale(1.05);
}

.product-placeholder {
    width: 60px;
    height: 60px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
} 

/* Klanten: naam kolom breder maken */
#customers-table th:nth-child(1),
#customers-table td:nth-child(1) {
    min-width: 220px;
    max-width: 400px;
    white-space: normal;
}

/* Shop pricing */
.price-old {
    font-size: 0.875rem;
    color: #6c757d !important;
    margin-bottom: 2px;
}
.price-old.is-striked {
    text-decoration: line-through;
}
.price-new {
    font-weight: 700;
    color: #212529;
}

/* Klanten: email kolom iets breder */
#customers-table th:nth-child(2),
#customers-table td:nth-child(2) {
    min-width: 180px;
    white-space: normal;
}

/* Klanten: actief kolom smal houden */
#customers-table th:nth-child(3),
#customers-table td:nth-child(3) {
    min-width: 60px;
    max-width: 80px;
    text-align: center;
}

/* Producten: afbeelding kolom smal houden */
#products-table th:nth-child(1),
#products-table td:nth-child(1) {
    width: 80px;
    min-width: 60px;
    max-width: 100px;
    text-align: center;
}

/* Footer styling */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container-fluid {
    flex: 1;
    padding-bottom: 2rem; /* Extra ruimte boven de footer */
}

.footer {
    margin-top: auto;
    background-color: #f8f9fa !important;
    border-top: 1px solid #dee2e6 !important;
} 