:root {
    color-scheme: light;
}

.dark {
    color-scheme: dark;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

code {
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.08);
    padding: 0.15rem 0.5rem;
    font-size: 0.78em;
}

.dark code {
    background: rgba(148, 163, 184, 0.16);
}

#kt_app_content,
#kt_app_content_container {
    width: 100%;
}

.app-content,
.app-container,
.container-fluid,
.container-xxl {
    max-width: 100%;
}

.card,
.alert,
.menu-sub-dropdown,
.modal-content {
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.dark .card,
.dark .alert,
.dark .menu-sub-dropdown,
.dark .modal-content {
    border-color: rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: none;
}

.card {
    overflow: hidden;
}

.card-body,
.card-header,
.card-footer {
    padding: 1.5rem;
}

.card-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    background: transparent;
}

.card-title,
.page-heading,
.text-dark,
.text-gray-900,
.text-gray-800 {
    color: #0f172a !important;
}

.dark .card-title,
.dark .page-heading,
.dark .text-dark,
.dark .text-gray-900,
.dark .text-gray-800 {
    color: #f8fafc !important;
}

.text-muted,
.text-gray-500,
.text-gray-600,
.text-gray-700 {
    color: #64748b !important;
}

.dark .text-muted,
.dark .text-gray-500,
.dark .text-gray-600,
.dark .text-gray-700 {
    color: #94a3b8 !important;
}

.form-control,
.form-select,
textarea.form-control {
    min-height: 2.9rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.38);
    background: rgba(255, 255, 255, 0.88);
    color: #0f172a;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: rgba(14, 165, 233, 0.7);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.dark .form-control,
.dark .form-select,
.dark textarea.form-control {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
}

.btn {
    border-radius: 1rem;
    border: 1px solid transparent;
    font-weight: 600;
    box-shadow: none;
}

.btn-primary,
.bg-primary {
    background: linear-gradient(135deg, #0f172a, #1d4ed8) !important;
    color: #fff !important;
}

.btn-light,
.btn-outline,
.btn-active-light-primary,
.btn-color-gray-700 {
    border-color: rgba(148, 163, 184, 0.28) !important;
    background: rgba(255, 255, 255, 0.76) !important;
    color: #334155 !important;
}

.dark .btn-light,
.dark .btn-outline,
.dark .btn-active-light-primary,
.dark .btn-color-gray-700 {
    border-color: rgba(148, 163, 184, 0.18) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #e2e8f0 !important;
}

.badge {
    border-radius: 9999px;
    padding: 0.45rem 0.8rem;
    font-weight: 700;
}

.badge-light-warning,
.badge-light-primary,
.badge-light-success {
    background: rgba(14, 165, 233, 0.12) !important;
    color: #0f766e !important;
}

.table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
    color: inherit;
}

.table > :not(caption) > * > * {
    padding: 1rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    background: transparent !important;
}

.table thead th,
.text-uppercase {
    letter-spacing: 0.08em;
}

.nav-tabs {
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.nav-tabs .nav-link {
    border: 0;
    border-radius: 9999px;
    color: #64748b;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-link:hover {
    background: rgba(14, 165, 233, 0.1);
    color: #0369a1;
}

.breadcrumb {
    gap: 0.55rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #94a3b8;
}

.alert {
    padding: 1rem 1.25rem;
}

.alert-danger {
    border-color: rgba(248, 113, 113, 0.24);
    background: rgba(254, 242, 242, 0.9);
    color: #b91c1c;
}

.alert-success,
.alert-primary {
    border-color: rgba(52, 211, 153, 0.24);
    background: rgba(236, 253, 245, 0.9);
    color: #047857;
}

.dark .alert-danger {
    background: rgba(127, 29, 29, 0.28);
    color: #fecaca;
}

.dark .alert-success,
.dark .alert-primary {
    background: rgba(6, 78, 59, 0.32);
    color: #bbf7d0;
}

.svg-icon svg {
    width: 1em;
    height: 1em;
}

.select2-container--bootstrap5 .select2-selection,
.select2-container .select2-selection--single {
    min-height: 2.9rem;
    border-radius: 1rem !important;
}

.menu-sub-dropdown {
    padding: 0.5rem;
}

.menu-sub-dropdown .menu-link {
    display: block;
    border-radius: 0.85rem;
    padding: 0.65rem 0.85rem;
    color: #334155;
}

.menu-sub-dropdown .menu-link:hover {
    background: rgba(14, 165, 233, 0.1);
    color: #0f172a;
}

.dark .menu-sub-dropdown .menu-link {
    color: #e2e8f0;
}

.dark .menu-sub-dropdown .menu-link:hover {
    color: #fff;
}

.form-text {
    font-size: 0.875rem;
}

@media (max-width: 1023px) {
    .app-content,
    .card-body,
    .card-header,
    .card-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}