/* TimeTracker Custom Styles - SB Admin 2 Override */

/* ========================================
   Skip link voor screenreaders
   ======================================== */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #4e73df;
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
    color: #fff;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Hours column alignment */
td.text-end strong {
    font-variant-numeric: tabular-nums;
}

/* Table improvements */
.table td {
    vertical-align: middle;
}

/* Truncated text for descriptions */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========================================
   Dark Mode Overrides voor SB Admin 2
   (Bootstrap 5.1 heeft geen native dark mode)
   ======================================== */

/* Base body styling */
[data-bs-theme="dark"] body {
    background-color: #1a1d21 !important;
    color: #e9ecef !important;
}

[data-bs-theme="dark"] #content-wrapper {
    background-color: #1a1d21 !important;
}

/* Topbar */
[data-bs-theme="dark"] .topbar {
    background-color: #212529 !important;
}

[data-bs-theme="dark"] .topbar .nav-link {
    color: #e9ecef !important;
}

/* Cards */
[data-bs-theme="dark"] .card {
    background-color: #212529 !important;
    border-color: #343a40 !important;
}

[data-bs-theme="dark"] .card-header {
    background-color: #2c3034 !important;
    border-color: #343a40 !important;
    color: #e9ecef !important;
}

[data-bs-theme="dark"] .card-body {
    background-color: #212529 !important;
    color: #e9ecef !important;
}

/* Tables */
[data-bs-theme="dark"] .table {
    color: #e9ecef !important;
    background-color: #212529 !important;
    border-color: #343a40 !important;
}

[data-bs-theme="dark"] .table > :not(caption) > * > * {
    background-color: #212529 !important;
    color: #e9ecef !important;
    border-color: #343a40 !important;
}

[data-bs-theme="dark"] .table-light,
[data-bs-theme="dark"] .table-light > td,
[data-bs-theme="dark"] .table-light > th {
    background-color: #2c3034 !important;
    color: #e9ecef !important;
}

[data-bs-theme="dark"] .table thead th {
    background-color: #2c3034 !important;
    color: #e9ecef !important;
    border-color: #343a40 !important;
}

/* Footer */
[data-bs-theme="dark"] .footer,
[data-bs-theme="dark"] .sticky-footer {
    background-color: #212529 !important;
    color: #e9ecef !important;
}

/* Utility overrides */
[data-bs-theme="dark"] .bg-white {
    background-color: #212529 !important;
}

[data-bs-theme="dark"] .bg-light {
    background-color: #2c3034 !important;
}

[data-bs-theme="dark"] .text-dark,
[data-bs-theme="dark"] .text-gray-600,
[data-bs-theme="dark"] .text-gray-800,
[data-bs-theme="dark"] .text-gray-900 {
    color: #e9ecef !important;
}

/* Dropdown menus */
[data-bs-theme="dark"] .dropdown-menu {
    background-color: #212529 !important;
    border-color: #343a40 !important;
}

[data-bs-theme="dark"] .dropdown-item {
    color: #e9ecef !important;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
    background-color: #343a40 !important;
    color: #fff !important;
}

[data-bs-theme="dark"] .dropdown-divider {
    border-color: #343a40 !important;
}

/* Form controls */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #2c3034 !important;
    border-color: #343a40 !important;
    color: #e9ecef !important;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #2c3034 !important;
    border-color: #4e73df !important;
    color: #e9ecef !important;
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: #6c757d !important;
}

[data-bs-theme="dark"] .input-group-text {
    background-color: #343a40 !important;
    border-color: #343a40 !important;
    color: #e9ecef !important;
}

[data-bs-theme="dark"] label,
[data-bs-theme="dark"] .form-label {
    color: #e9ecef !important;
}

/* Alerts */
[data-bs-theme="dark"] .alert {
    border-color: #343a40 !important;
}

/* Modal */
[data-bs-theme="dark"] .modal-content {
    background-color: #212529 !important;
    border-color: #343a40 !important;
    color: #e9ecef !important;
}

[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-footer {
    border-color: #343a40 !important;
}

/* Login pagina */
[data-bs-theme="dark"] .bg-login-image {
    background-color: #343a40 !important;
}

/* Page heading */
[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6,
[data-bs-theme="dark"] .h1,
[data-bs-theme="dark"] .h2,
[data-bs-theme="dark"] .h3,
[data-bs-theme="dark"] .h4,
[data-bs-theme="dark"] .h5,
[data-bs-theme="dark"] .h6 {
    color: #e9ecef !important;
}

/* Links in content */
[data-bs-theme="dark"] #content a:not(.btn):not(.nav-link):not(.dropdown-item) {
    color: #6ea8fe !important;
}

/* Breadcrumb */
[data-bs-theme="dark"] .breadcrumb {
    background-color: #2c3034 !important;
}

[data-bs-theme="dark"] .breadcrumb-item,
[data-bs-theme="dark"] .breadcrumb-item a {
    color: #e9ecef !important;
}

/* Borders */
[data-bs-theme="dark"] .border {
    border-color: #343a40 !important;
}

[data-bs-theme="dark"] hr {
    border-color: #343a40 !important;
}
