:root {
    --bg-color: #ffffff;
    --text-color: #212529;
    --card-bg: #ffffff;
}

[data-bs-theme="dark"] {
    --bg-color: #121212;
    --text-color: #f8f9fa;
    --card-bg: #1e1e1e;
}

body {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
    transition: background-color 0.3s, color 0.3s;
}

.card-adaptive {
    background-color: var(--card-bg) !important;
    color: var(--text-color) !important;
    border-color: rgba(255,255,255,0.1) !important;
}
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: column;
}

.footer {
    width: 100%;
    background-color: transparent;
    position: relative;
    clear: both;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

main {
    flex: 1 0 auto;
}
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #2b2b2b !important;
    color: #ffffff !important;
    border-color: #444 !important;
}

[data-bs-theme="dark"] .nav-pills .nav-link {
    color: #a0aec0;
}

    [data-bs-theme="dark"] .nav-pills .nav-link.active {
        background-color: #0d6efd;
        color: white;
    }

[data-bs-theme="dark"] .list-group-item {
    background-color: #1e1e1e;
    color: white;
    border-color: #333;
}

[data-bs-theme="dark"] body {
    background-color: #121212 !important;
}

[data-bs-theme="dark"] h2, [data-bs-theme="dark"] h3, [data-bs-theme="dark"] h4 {
    color: #f8f9fa;
}