/* JRS AI Dashboard - Custom Styles */

:root {
    --jrs-primary: #0d6efd;
    --jrs-success: #198754;
    --jrs-info: #0dcaf0;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Focus states */
.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;
}

/* Cards */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

/* Tables */
.table th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

.table tbody tr {
    transition: background-color 0.15s ease;
}

/* Badges */
.bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.15) !important;
}

.bg-danger-subtle {
    background-color: rgba(220, 53, 69, 0.15) !important;
}

/* KPI Cards animations */
.card .bi {
    transition: transform 0.2s ease;
}

.card:hover .bi {
    transform: scale(1.1);
}

/* Modal */
.modal-header.bg-primary .btn-close-white {
    filter: invert(1);
}

/* Loading spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Pagination */
.pagination .page-link {
    border-radius: 0.375rem;
    margin: 0 0.125rem;
}

/* Custom badge for tokens */
.badge.bg-info.bg-opacity-10 {
    font-weight: 600;
}