:root {
    --bs-primary: #0b5cab;
    --bs-primary-rgb: 11, 92, 171;
    --bs-info: #0f8aa6;
    --bs-info-rgb: 15, 138, 166;
    --bs-success: #198754;
    --bs-warning: #f0b429;
    --bs-danger: #dc3545;
    --bs-body-color: #1f2937;
    --bs-body-bg: #f5f7fb;
    --bs-border-color: #e5e7eb;
    --bs-link-color: #0b5cab;
    --bs-link-hover-color: #0a4e91;
    --bs-card-border-color: #e5e7eb;
    --bs-card-cap-bg: #0b5cab;
    --bs-card-cap-color: #fff;
    --bs-border-radius: 0.5rem;
    --bs-border-radius-lg: 0.65rem;
    --bs-border-radius-sm: 0.35rem;
}

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

body {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
}

a:not(.btn):not(.nav-link):not(.dropdown-item):not(.footer-link) {
    text-decoration: none;
    position: relative;
}

a:not(.btn):not(.nav-link):not(.dropdown-item):not(.footer-link)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: rgba(11, 92, 171, 0.4);
    transition: width 140ms ease;
}

a:not(.btn):not(.nav-link):not(.dropdown-item):not(.footer-link):hover::after {
    width: 100%;
}

.footer-link {
    position: relative;
    text-decoration: none;
}

.footer-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: rgba(15, 138, 166, 0.45);
    transition: width 140ms ease;
}

.footer-link:hover::after {
    width: 100%;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 700;
    letter-spacing: -0.015em;
}

main h1.h2 {
    font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem);
}

.card-title {
    font-size: clamp(1rem, 0.95rem + 0.4vw, 1.25rem);
}

.form-label {
    font-weight: 500;
}

.form-control,
.form-select {
    border-radius: 0.5rem;
}

.btn {
    border-radius: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease, border-color 120ms ease;
    box-shadow: none;
    padding: 0.35rem 0.75rem;
    font-size: 0.92rem;
}

.btn i,
.btn .bi {
    font-size: 1em;
    vertical-align: -0.08em;
}

.btn-sm i,
.btn-sm .bi {
    font-size: 0.95em;
}

.btn-lg i,
.btn-lg .bi {
    font-size: 1.05em;
}

.btn-sm {
    padding: 0.25rem 0.6rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 0.5rem 0.95rem;
    font-size: 1rem;
}

.btn:focus,
.btn:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(15, 138, 166, 0.25);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.navbar,
.card,
.dropdown-menu,
.modal-content,
.list-group-item {
    border-color: var(--bs-border-color);
}

.modal-content {
    border-radius: 0.75rem;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.18);
}

.modal-header,
.modal-footer {
    border-color: rgba(229, 231, 235, 0.8);
}

.dropdown-menu {
    border-radius: 0.6rem;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.12);
}

.toast {
    border-radius: 0.6rem;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.14);
}

.card {
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.06);
    border-radius: 0.7rem;
}

.card-header.bg-primary {
    background: linear-gradient(90deg, #0b5cab, #0f8aa6);
}

.stat-card .card-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.9;
}

.stat-card .card-text {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.stat-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.btn-outline-secondary {
    border-color: rgba(31, 41, 55, 0.2);
}

.btn-outline-secondary:hover {
    border-color: rgba(31, 41, 55, 0.35);
}

.btn-outline-primary,
.btn-outline-info,
.btn-outline-success,
.btn-outline-warning,
.btn-outline-danger {
    border-color: rgba(15, 23, 42, 0.18);
}

.btn-outline-primary:hover {
    color: #0b5cab;
    background-color: rgba(11, 92, 171, 0.08);
    border-color: #0b5cab;
}

.btn-outline-info:hover {
    color: #0f8aa6;
    background-color: rgba(15, 138, 166, 0.08);
    border-color: #0f8aa6;
}

.btn-outline-success:hover {
    color: #1b8a5a;
    background-color: rgba(27, 138, 90, 0.08);
    border-color: #1b8a5a;
}

.btn-outline-warning:hover {
    color: #a27000;
    background-color: rgba(240, 180, 41, 0.16);
    border-color: #f0b429;
}

.btn-outline-danger:hover {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.08);
    border-color: #dc3545;
}

.sidebar .nav-link {
    transition: background-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.sidebar .nav-link:hover {
    transform: translateX(2px);
}

.card-header h5,
.card-header h6 {
    font-weight: 600;
}

.card:hover {
    transform: translateY(-2px);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.card.no-hover:hover,
.card.no-hover {
    transform: none;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0.75rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #9aa4b2;
}

.nav-tabs .nav-link {
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 0.5rem 0.9rem;
    color: #4b5563;
}

.nav-tabs .nav-link.active {
    color: var(--bs-primary);
    border-color: var(--bs-border-color) var(--bs-border-color) #fff;
    background-color: #fff;
}

.accordion-item {
    border-radius: 0.6rem;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
}

.accordion-button {
    font-weight: 600;
    background-color: #f7f9fc;
}

.accordion-button:not(.collapsed) {
    color: var(--bs-primary);
    background-color: rgba(11, 92, 171, 0.08);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(15, 138, 166, 0.2);
}

.card-body {
    padding: 1.15rem 1.25rem;
}

.btn-primary {
    background: #0b5cab;
    border-color: #0b5cab;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #0a4e91;
    border-color: #0a4e91;
}

.btn-success {
    background: #1b8a5a;
    border-color: #1b8a5a;
}

.btn-success:hover,
.btn-success:focus {
    background: #16724b;
    border-color: #16724b;
}

.btn-warning {
    background: #f0b429;
    border-color: #f0b429;
    color: #1f2937;
}

.btn-warning:hover,
.btn-warning:focus {
    background: #e2a51f;
    border-color: #e2a51f;
    color: #1f2937;
}

.btn-danger {
    background: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover,
.btn-danger:focus {
    background: #bb2d3b;
    border-color: #bb2d3b;
}

.btn-warning {
    color: #1f2937;
}

.sidebar {
    background: linear-gradient(180deg, #0b5cab, #0a3c6b);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar .nav-link {
    border-radius: 0.5rem;
    margin: 2px 8px;
    padding: 8px 12px;
    transition: background-color 120ms ease, color 120ms ease;
}

.sidebar .nav-link i {
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
}

.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead th {
    background-color: #eef3f9;
    border-bottom-color: #dde5ef;
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: #f7f9fc;
    transition: background-color 120ms ease;
}

.badge.bg-info {
    background-color: #0f8aa6 !important;
}

.badge.bg-primary {
    background-color: #0b5cab !important;
}

.badge.bg-success {
    background-color: #1b8a5a !important;
}

.badge.bg-warning {
    background-color: #f0b429 !important;
    color: #1f2937 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.alert-info {
    background-color: rgba(15, 138, 166, 0.12);
    border-color: rgba(15, 138, 166, 0.3);
    color: #0f5d6d;
}

.alert-primary {
    background-color: rgba(11, 92, 171, 0.12);
    border-color: rgba(11, 92, 171, 0.3);
    color: #0b3d74;
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.12);
    border-color: rgba(25, 135, 84, 0.3);
    color: #0f5132;
}

.alert-warning {
    background-color: rgba(240, 180, 41, 0.14);
    border-color: rgba(240, 180, 41, 0.4);
    color: #8a5b00;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.12);
    border-color: rgba(220, 53, 69, 0.3);
    color: #842029;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(15, 138, 166, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(15, 138, 166, 0.2);
}

.progress {
    background-color: #e6ecf5;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--bs-primary);
}

.progress-bar.bg-info {
    background-color: #0f8aa6 !important;
}

.progress-bar.bg-success {
    background-color: #1b8a5a !important;
}

.progress-bar.bg-warning {
    background-color: #f0b429 !important;
}

.progress-bar.bg-danger {
    background-color: #dc3545 !important;
}

.list-group-item {
    padding: 0.75rem 1rem;
    transition: background-color 120ms ease, transform 120ms ease;
}

.list-group-item-action:hover {
    background-color: #f5f8fc;
    transform: translateY(-1px);
}

.pagination .page-link {
    border-radius: 0.4rem;
    margin: 0 2px;
}

@media (max-width: 991.98px) {
    .sidebar {
        min-height: auto;
        border-radius: 0.75rem;
        box-shadow: 0 16px 30px rgba(15, 23, 42, 0.2);
    }
    .sidebar .offcanvas-header {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    .offcanvas-backdrop.show {
        backdrop-filter: blur(4px);
        background-color: rgba(15, 23, 42, 0.35);
        opacity: 1;
    }
    main {
        padding: 16px;
    }
    .card {
        box-shadow: 0 4px 12px rgba(17, 24, 39, 0.05);
    }
    .stat-card .card-text {
        font-size: 1.8rem;
    }
}

@media (min-width: 992px) {
    .sidebar {
        padding-right: 4px;
    }
    .sidebar .nav-link {
        padding: 6px 10px;
        font-size: 0.92rem;
    }
    .sidebar .nav-link i {
        font-size: 0.95rem;
    }
}
