:root {
    --sidebar-width: 260px;
    --erp-primary: #0d6efd;
    --erp-accent: #20c997;
}

body {
    min-height: 100vh;
    background: var(--bs-body-bg);
    font-family: "Segoe UI", "Noto Sans Devanagari", system-ui, sans-serif;
}

html[lang="mr"] body {
    font-family: "Noto Sans Devanagari", "Segoe UI", system-ui, sans-serif;
}

.sidebar {
    width: var(--sidebar-width);
    z-index: 1040;
    top: 0;
    left: 0;
}

.content-wrap {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin 0.2s ease;
}

.sidebar-nav .nav-link {
    color: #adb5bd;
    border-radius: 0.5rem;
    padding: 0.55rem 0.75rem;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: rgba(13, 110, 253, 0.15);
    color: #fff;
}

.card-stat {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.15);
}

.login-page {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #0d6efd33 100%);
}

.login-card {
    max-width: 420px;
    width: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.table-erp thead th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bs-secondary-color);
}

.badge-low-stock {
    background: #dc3545;
}

body.is-offline .offline-badge {
    display: block !important;
}

.app-shell {
    width: 100%;
}

/* Pull-to-scroll smooth on iOS */
.content-wrap {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .content-wrap {
        margin-left: 0;
    }
}

@media print {
    .sidebar,
    .page-title,
    .btn,
    #themeToggle {
        display: none !important;
    }

    .content-wrap {
        margin: 0 !important;
    }
}
