/* UI polish layer — refinements on top of app.css (kept low-specificity so theme overrides still apply) */

/* ---------- Typography ---------- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.lw-page-title {
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* ---------- Cards ---------- */
.card {
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.18s ease;
}
.card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.05);
}
.card .card-header {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    font-weight: 600;
}
.card .card-footer {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* ---------- Buttons ---------- */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.1s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:not(.btn-link):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}
.btn:not(.btn-link):active {
    transform: translateY(0);
    box-shadow: none;
}
.btn:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}
.btn-group .btn {
    transform: none;
}

/* ---------- Forms ---------- */
.form-control,
.custom-select {
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus,
.custom-select:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
label,
.form-control-label {
    font-weight: 600;
    font-size: 0.85rem;
}
fieldset legend {
    border-radius: 8px;
    font-weight: 600;
}

/* ---------- Tables ---------- */
.table thead th {
    font-size: 0.72rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-weight: 700;
}
.table td,
.table th {
    vertical-align: middle;
}
table.dataTable tbody tr {
    transition: background-color 0.12s ease;
}

/* ---------- Badges & alerts ---------- */
.badge {
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.alert {
    border-radius: 10px;
    border: none;
}

/* ---------- Modals ---------- */
.modal-content {
    border: none;
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
}
.modal-header {
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}
.modal-footer {
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

/* ---------- Dropdowns ---------- */
.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.08);
    padding: 6px;
}
.dropdown-item {
    border-radius: 6px;
    transition: background-color 0.12s ease;
}

/* ---------- Pagination ---------- */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    transition: background-color 0.12s ease;
}

/* ---------- Sidebar refinements ---------- */
.new-sidebar__link {
    transition: background-color 0.15s ease, color 0.15s ease;
}
.new-sidebar__icon {
    transition: transform 0.15s ease;
}
.new-sidebar__link:hover .new-sidebar__icon {
    transform: translateX(2px);
}

/* ---------- Scrollbars (WebKit) ---------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.35);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
    background-color: rgba(100, 116, 139, 0.55);
}
::-webkit-scrollbar-track {
    background: transparent;
}

/* ---------- Misc ---------- */
img {
    max-width: 100%;
}
.breadcrumb {
    border-radius: 8px;
}
hr {
    opacity: 0.6;
}
