/* Mobile vertical card styles */
@media (max-width: 767.98px) {
    .desktop-table {
        display: none !important;
    }

    .mobile-card {
        display: block !important;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 0.5rem;
        padding: 1rem;
        background: white;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    }
}

@media (min-width: 768px) {
    .mobile-card {
        display: none !important;
    }

    .desktop-table {
        display: block;
        /* Changed from table to block to allow 100% width */
        width: 100%;
    }

    /* Force the actual table inside the div to be full width */
    .desktop-table table {
        width: 100% !important;
        margin-bottom: 0;
    }
}

/* Ensure our custom white backgrounds adapt to dark mode */
[data-bs-theme="dark"] .bg-white {
    background-color: var(--bs-body-bg) !important;
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .mobile-card,
[data-bs-theme="dark"] .card {
    background-color: var(--bs-tertiary-bg);
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .desktop-table table {
    background-color: transparent !important;
}

/* Optional: Adjust navbar in dark mode */
[data-bs-theme="dark"] .navbar {
    border-bottom: 1px solid var(--bs-border-color);
}

.navbar {
    margin-bottom: 2rem;
}

/* Add a nice hover effect to buttons */
.btn:hover {
    transform: translateY(-1px);
    transition: transform 0.2s;
}

/* Makes the navbar look better on very small screens */
@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Optional: Improve badge appearance */
.badge {
    padding: 0.5em 0.8em;
    border-radius: 6px;
}