.card {
    border-radius: 16px;
}

.card-header {
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
}

.table th {
    font-weight: 600;
}

.text-medium-emphasis {
    color: #6c757d;
}

.sidebar .nav-link {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin: 4px 10px;
}

    .sidebar .nav-link:hover {
        background-color: rgba(255,255,255,0.08);
    }

.sidebar .nav-title {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    opacity: 0.7;
    text-transform: uppercase;
}

.header {
    background: #fff;
}

.footer {
    background: #fff;
    border-top: 1px solid #dee2e6;
    min-height: 56px;
    display: flex;
    align-items: center;
}

.form-label {
    margin-bottom: 0.5rem;
}

.table td,
.table th {
    vertical-align: middle;
}

.badge {
    border-radius: 10px;
    padding: 0.55rem 0.8rem;
}

.btn-sm {
    border-radius: 8px;
}
.table .badge {
    font-size: 0.8rem;
}

.table-responsive {
    border-radius: 12px;
}

.card .badge.fs-6 {
    padding: 0.65rem 0.9rem;
}

.btn-success,
.btn-primary,
.btn-danger,
.btn-warning {
    font-weight: 600;
}

.table td .badge {
    min-width: 80px;
    text-align: center;
}

.card .fs-3 {
    line-height: 1.1;
}
.border-start.border-4 {
    border-left-width: 4px !important;
}

.bg-info {
    background-color: #3b82f6 !important;
}

.bg-dark {
    background-color: #1f2937 !important;
}
.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.16);
    color: #fff !important;
    font-weight: 700;
    box-shadow: inset 3px 0 0 #4f9cf9;
}
.min-vh-100 {
    min-height: 100vh;
}

.form-control-lg {
    border-radius: 12px;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0,0,0,.12) !important;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1030;
    }

    body.sidebar-show .sidebar {
        transform: translateX(0);
    }

    .wrapper {
        margin-left: 0 !important;
    }

    .body {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .card {
        border-radius: 14px;
    }

    .card-body,
    .card-header {
        padding: 1rem !important;
    }

    .table-responsive {
        overflow-x: auto;
    }

    .btn {
        white-space: nowrap;
    }
}

@media (max-width: 767.98px) {
    h2 {
        font-size: 1.5rem;
    }

    .fs-2 {
        font-size: 1.5rem !important;
    }

    .fs-3 {
        font-size: 1.35rem !important;
    }

    .card .d-flex.justify-content-between,
    .card .d-flex.justify-content-end {
        flex-direction: column;
        align-items: stretch !important;
    }

    .d-flex.gap-2.flex-wrap,
    .d-flex.justify-content-end.gap-2.flex-wrap {
        flex-direction: column;
        align-items: stretch !important;
    }

        .d-flex.gap-2.flex-wrap .btn,
        .d-flex.justify-content-end.gap-2.flex-wrap .btn {
            width: 100%;
        }

    .table th,
    .table td {
        white-space: nowrap;
    }

    .footer {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .card-body {
        padding: 0.9rem !important;
    }

    .btn,
    .form-control,
    .form-select {
        font-size: 0.95rem;
    }

    .table-responsive {
        border-radius: 10px;
    }
}