/**
 * Dark Theme Styles voor viewLox v4.0
 * Minimalistisch Zwart/Wit/Grijs design
 */

:root {
    --primary-black: #000000;
    --secondary-black: #1a1a1a;
    --dark-gray: #2d2d2d;
    --medium-gray: #6c757d;
    --light-gray: #e0e0e0;
    --lighter-gray: #f5f5f5;
    --white: #ffffff;
}

/* ===========================
   NAVBAR STYLING
   =========================== */
.navbar {
    background: #000 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: #fff !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff !important;
}

/* ===========================
   BUTTONS
   =========================== */
.btn-primary {
    background: #000 !important;
    border: 1px solid #000 !important;
    color: #fff !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: #2d2d2d !important;
    border-color: #2d2d2d !important;
    color: #fff !important;
}

.btn-outline-primary {
    border: 1px solid #000 !important;
    color: #000 !important;
    background: transparent !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: #000 !important;
    color: #fff !important;
}

.btn-secondary {
    background: #6c757d !important;
    border: 1px solid #6c757d !important;
    color: #fff !important;
}

.btn-secondary:hover {
    background: #5a6268 !important;
    border-color: #5a6268 !important;
}

/* ===========================
   CARDS
   =========================== */
.card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: #fff;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-header {
    background: #f5f5f5 !important;
    color: #000 !important;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0 !important;
}

/* ===========================
   SIDEBAR
   =========================== */
.sidebar,
.dashboard-sidebar {
    background: #fff !important;
    min-height: 100vh;
    border-right: 1px solid #e0e0e0;
}

.sidebar .nav-link,
.sidebar-nav-item {
    color: rgba(0, 0, 0, 0.8) !important;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin: 2px 8px;
    padding: 10px 16px;
    display: block;
    text-decoration: none;
}

.sidebar .nav-link:hover,
.sidebar-nav-item:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #000 !important;
}

.sidebar .nav-link.active,
.sidebar-nav-item.active {
    background: #0066cc !important;
    color: #fff !important;
    font-weight: 600;
}

.sidebar .nav-link i,
.sidebar-nav-item i {
    color: inherit !important;
    margin-right: 8px;
}

.sidebar-section-title {
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    margin-top: 16px;
}

/* Hide sidebar on mobile */
@media (max-width: 767.98px) {
    .sidebar,
    .dashboard-sidebar {
        display: none !important;
    }
}

/* Mobile navbar active state */
.navbar .navbar-nav .nav-link.active {
    background: #0066cc !important;
    color: #fff !important;
    border-radius: 4px;
}

/* ===========================
   TABLES
   =========================== */
.table {
    color: #000;
}

.table thead {
    background: #f5f5f5 !important;
    color: #000 !important;
    border-bottom: 2px solid #e0e0e0 !important;
}

.table thead th {
    color: #000 !important;
    font-weight: 600 !important;
    border-color: #e0e0e0 !important;
    padding: 12px;
}

.table tbody td {
    padding: 12px;
    border-color: #e0e0e0 !important;
}

.table-hover tbody tr:hover {
    background-color: #f9f9f9;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #fafafa;
}

/* ===========================
   BADGES
   =========================== */
.badge.bg-primary {
    background: #000 !important;
    color: #fff !important;
    font-weight: 600;
}

.badge.bg-success {
    background: #2d2d2d !important;
}

.badge.bg-danger {
    background: #6c757d !important;
}

/* ===========================
   FORMS
   =========================== */
.form-control,
.form-select {
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #000 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1) !important;
}

.form-label {
    color: #000;
    font-weight: 600;
}

/* ===========================
   ALERTS
   =========================== */
.alert {
    border-radius: 4px;
}

.alert-success {
    background-color: #f5f5f5 !important;
    border-color: #e0e0e0 !important;
    color: #000 !important;
}

.alert-info {
    background-color: #f5f5f5 !important;
    border-color: #e0e0e0 !important;
    color: #000 !important;
}

.alert-danger {
    background-color: #f5f5f5 !important;
    border-color: #e0e0e0 !important;
    color: #000 !important;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: #000 !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer a {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.2s ease;
    text-decoration: none;
}

.footer a:hover {
    color: #fff !important;
}

/* ===========================
   TEXT COLORS
   =========================== */
.text-primary {
    color: #000 !important;
}

.text-muted {
    color: #6c757d !important;
}

.text-white {
    color: #fff !important;
}

/* ===========================
   BACKGROUNDS
   =========================== */
.bg-dark {
    background: #000 !important;
}

.bg-light {
    background: #f5f5f5 !important;
}

.bg-white {
    background: #fff !important;
}

/* ===========================
   MODALS
   =========================== */
.modal-header {
    background: #f5f5f5 !important;
    color: #000 !important;
    border-bottom: 1px solid #e0e0e0;
}

.modal-title {
    color: #000 !important;
    font-weight: 600;
}

.modal-body {
    background: #fff;
}

.modal-footer {
    border-top: 1px solid #e0e0e0;
}

/* ===========================
   DROPDOWN
   =========================== */
.dropdown-menu {
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: #000;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f5f5f5 !important;
    color: #000 !important;
}

/* ===========================
   PROGRESS BARS
   =========================== */
.progress {
    background-color: #e0e0e0 !important;
}

.progress-bar {
    background: #000 !important;
}

/* ===========================
   LINKS
   =========================== */
a {
    color: #000 !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #2d2d2d !important;
    text-decoration: none;
}

/* Links in navbar en footer blijven wit */
.navbar a,
.navbar a:hover,
.footer a,
.footer a:hover {
    color: inherit !important;
}

/* ===========================
   STATS CARDS
   =========================== */
.stat-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ===========================
   PAGINATION
   =========================== */
.pagination .page-link {
    color: #000;
    border: 1px solid #e0e0e0;
}

.pagination .page-link:hover {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
}

.pagination .page-item.active .page-link {
    background-color: #000;
    border-color: #000;
}

/* ===========================
   BORDER UTILITIES
   =========================== */
.border-primary {
    border-color: #000 !important;
}

.border {
    border-color: #e0e0e0 !important;
}

/* ===========================
   HOVER EFFECTS - MINIMAL
   =========================== */
.card:hover,
.stat-card:hover,
.table-hover tbody tr:hover {
    transform: none !important;
}

/* Verwijder borders op hover */
*:hover {
    outline: none !important;
}

/* ===========================
   UTILITIES
   =========================== */
.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.shadow {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08) !important;
}

.shadow-lg {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
}

/* ===========================
   RESPONSIVE
   =========================== */
/* Sidebar already hidden on mobile via earlier media query */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }

    /* Table responsive tweaks */
    .table thead th,
    .table tbody td {
        padding: 8px 6px;
    }

    /* Sidebar section titles */
    .sidebar-section-title {
        font-size: 0.65rem;
        padding: 6px 12px;
    }

    /* Collapse long URLs in tables */
    td a[href*="http"],
    td .text-truncate {
        max-width: 150px;
        display: inline-block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: middle;
    }

    /* Dropdown menus: wider on mobile */
    .dropdown-menu {
        min-width: auto;
    }

    /* Pagination smaller on mobile */
    .pagination .page-link {
        font-size: 0.8rem;
        padding: 0.35rem 0.6rem;
    }
}
