:root {
    --brand: #2f5d50;
    --brand-dark: #234339;
    --brand-light: #eaf3f0;
    --sidebar-width: 250px;
}

body {
    background-color: #f5f7f6;
    min-height: 100vh;
}

body.lang-ur {
    font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", Tahoma, sans-serif;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: var(--brand-dark);
    color: #fff;
    min-height: 100vh;
    position: sticky;
    top: 0;
}

.sidebar .brand {
    padding: 1.15rem 1.25rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, .82);
    padding: .6rem 1.25rem;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.offcanvas-body .nav-link {
    padding: .6rem .5rem;
    color: #212529;
}

.offcanvas-body .nav-link.active {
    color: var(--brand);
    font-weight: 600;
}

.main-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.content {
    flex: 1;
}

.stat-card {
    border: none;
    border-radius: .75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.stat-card .stat-value {
    font-size: 1.6rem;
    font-weight: 700;
}

.card {
    border: none;
    border-radius: .75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.btn-brand {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.btn-brand:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.table-responsive {
    border-radius: .5rem;
}

.measurement-fieldset {
    display: none;
}

.measurement-fieldset.active {
    display: block;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    padding: 1.5rem;
}

.auth-card {
    max-width: 460px;
    width: 100%;
    border-radius: 1rem;
}

.public-wrapper {
    min-height: 100vh;
    background: #f5f7f6;
}

.public-header {
    background: var(--brand-dark);
    color: #fff;
    padding: 1rem 1.5rem;
}

@media print {
    .no-print {
        display: none !important;
    }
}

.logo-preview {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: .5rem;
    border: 1px solid #dee2e6;
}
