@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Nastaliq+Urdu&display=swap');

@font-face {
    font-family: 'Jameel Noori Nastaleeq';
    src: local('Jameel Noori Nastaleeq'), local('Jameel Noori Nastaleeq Regular'), local('Jameel Noori');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-urdu: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
    --font-ui: 'Inter', 'Segoe UI', Tahoma, Arial, sans-serif;
    --bg: #f3f6fb;
    --bg-accent: #e7eefc;
    --card: rgba(255, 255, 255, 0.94);
    --card-solid: #ffffff;
    --card-soft: #f8fbff;
    --text: #122033;
    --heading: #0f172a;
    --muted: #5f6f83;
    --muted-soft: #89a0b9;
    --primary: #2257d4;
    --primary-dark: #173da0;
    --primary-soft: #eef4ff;
    --success: #107a59;
    --success-soft: #ecfdf4;
    --danger: #ba2435;
    --danger-soft: #fef1f3;
    --warning: #b57214;
    --warning-soft: #fff8eb;
    --info: #0f84a8;
    --info-soft: #effaff;
    --border: rgba(162, 181, 210, 0.30);
    --border-strong: rgba(132, 155, 191, 0.50);
    --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.06);
    --shadow: 0 22px 55px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.14);
    --radius-sm: 14px;
    --radius: 22px;
    --radius-lg: 28px;
    --sidebar-bg: linear-gradient(180deg, #0b1220 0%, #10192d 42%, #132341 100%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-urdu);
    background:
        radial-gradient(circle at top right, rgba(34, 87, 212, 0.12), transparent 30%),
        radial-gradient(circle at bottom left, rgba(16, 122, 89, 0.10), transparent 28%),
        linear-gradient(180deg, #f7f9fd 0%, var(--bg) 100%);
    color: var(--text);
    line-height: 1.9;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)),
        linear-gradient(90deg, rgba(34, 87, 212, 0.025) 1px, transparent 1px),
        linear-gradient(rgba(34, 87, 212, 0.025) 1px, transparent 1px);
    background-size: auto, 34px 34px, 34px 34px;
    z-index: -1;
}

body,
button,
input,
select,
textarea {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body,
label,
.menu-item,
.hero-kicker,
.hero-badge,
.section-title,
.table-title h3,
.summary-label,
.stats-card h3,
.detail-item strong,
.card h2,
.card h3,
.card h4,
.btn,
.badge,
.alert,
.topbar-note,
.empty-state,
.login-title,
.login-subtitle,
.nav-caption {
    font-family: var(--font-urdu);
}

code,
pre,
input,
select,
textarea,
.value,
.kpi-value,
.kpi-caption,
.metric-value,
.metric-progress-value,
.hero-badge strong,
.user-role,
.small,
th,
td,
.brand-tag,
.table-caption,
.footer-note,
.badge,
.status-chip,
.stat-pill,
.topbar-date,
.number-font {
    font-family: var(--font-ui);
}

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

.app-shell {
    display: flex;
    min-height: 100vh;
    gap: 26px;
    padding: 18px;
}

.sidebar {
    width: 292px;
    background: var(--sidebar-bg);
    color: #f8fbff;
    padding: 22px 18px 18px;
    border-radius: 30px;
    position: sticky;
    top: 18px;
    height: calc(100vh - 36px);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar::before,
.sidebar::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.sidebar::before {
    width: 170px;
    height: 170px;
    top: -64px;
    left: -42px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 68%);
}

.sidebar::after {
    width: 190px;
    height: 190px;
    bottom: -84px;
    right: -62px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.16), transparent 70%);
}

.brand-box {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(16px);
}

.brand-mark {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 48%, #22c55e 100%);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    font-family: var(--font-ui);
    box-shadow: 0 18px 32px rgba(9, 132, 227, 0.28);
}

.brand-box h2 {
    margin: 0 0 6px;
    font-size: 24px;
    line-height: 1.4;
    color: #ffffff;
}

.brand-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d8e6ff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.menu-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px 16px;
    color: #b8c6df;
    font-size: 13px;
}

.nav-caption {
    font-size: 18px;
    color: #e2ebff;
}

.menu-list {
    display: grid;
    gap: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 14px 16px;
    border-radius: 18px;
    transition: 0.2s ease;
    color: #dbe6fb;
    font-size: 18px;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.menu-item::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    flex: 0 0 10px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.menu-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(34, 197, 94, 0.06));
    opacity: 0;
    transition: 0.2s ease;
}

.menu-item span {
    position: relative;
    z-index: 1;
}

.menu-item:hover,
.menu-item.active {
    color: #ffffff;
    border-color: rgba(96, 165, 250, 0.28);
    transform: translateX(-2px);
    box-shadow: 0 10px 24px rgba(7, 12, 22, 0.24);
}

.menu-item:hover::before,
.menu-item.active::before {
    background: #60a5fa;
}

.menu-item:hover::after,
.menu-item.active::after {
    opacity: 1;
}

.sidebar-footer {
    margin-top: 16px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cad7f0;
}

.sidebar-footer strong {
    display: block;
    color: #ffffff;
    margin-bottom: 4px;
    font-size: 17px;
}

.main-content {
    flex: 1;
    min-width: 0;
    padding: 6px 8px 24px 0;
}

.main-content {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 36px);
}

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 24px 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

.topbar-heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.topbar-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    border: 1px solid rgba(34, 87, 212, 0.12);
    font-size: 13px;
}

.topbar-kicker::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.app-heading {
    margin: 0;
    font-size: 42px;
    line-height: 1.25;
    color: var(--heading);
}

.topbar-note {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.user-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    text-align: left;
    justify-content: flex-end;
}

.user-card {
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
    border: 1px solid var(--border);
    min-width: 220px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.user-name {
    display: block;
    font-size: 19px;
    color: var(--heading);
}

.user-role {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.topbar-date {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.card,
.table-card,
.form-card,
.stats-card,
.login-card,
.insight-card,
.dashboard-hero,
.kpi-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
}

.card,
.table-card,
.form-card,
.login-card,
.insight-card {
    padding: 22px;
    margin-bottom: 22px;
}

.section-title {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 26px;
    line-height: 1.4;
    color: var(--heading);
}

.section-subtitle,
.card-subtitle,
.table-caption,
.muted,
.muted-soft {
    color: var(--muted);
}

.muted-soft {
    color: var(--muted-soft);
}

.small {
    font-size: 12px;
}

.dashboard-shell {
    display: grid;
    gap: 22px;
}

.dashboard-hero {
    position: relative;
    overflow: hidden;
    padding: 28px;
    background:
        radial-gradient(circle at top right, rgba(34, 87, 212, 0.14), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(241, 247, 255, 0.94) 100%);
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -46px;
    left: -30px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 122, 89, 0.10), transparent 70%);
    pointer-events: none;
}

.dashboard-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
    gap: 26px;
    align-items: start;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(34, 87, 212, 0.10);
    color: var(--primary-dark);
    font-size: 16px;
    margin-bottom: 12px;
}

.hero-kicker::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary);
}

.dashboard-hero h2 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.45;
    color: var(--heading);
}

.dashboard-hero p {
    margin: 0;
    font-size: 19px;
    color: var(--muted);
}

.hero-meta,
.stat-pill-wrap,
.quick-link-grid,
.metric-list,
.package-tags,
.area-pill-grid,
.dashboard-two-grid,
.dashboard-three-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta {
    margin-top: 18px;
}

.hero-badge,
.stat-pill,
.package-tag,
.area-pill,
.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border);
    color: var(--heading);
}

.hero-badge strong {
    color: var(--primary-dark);
    font-weight: 700;
}

.hero-actions {
    display: grid;
    gap: 16px;
}

.hero-filter {
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--border);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.hero-filter .field {
    margin-bottom: 12px;
}

.quick-link-grid {
    gap: 12px;
}

.quick-link-card {
    flex: 1 1 220px;
    min-width: 180px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--border);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.quick-link-card:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 87, 212, 0.22);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
}

.quick-link-title {
    display: block;
    margin-bottom: 4px;
    font-size: 19px;
    color: var(--heading);
}

.quick-link-sub {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 18px;
}

.kpi-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.kpi-card::after {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), rgba(34, 87, 212, 0.12));
}

.kpi-card.success::after {
    background: linear-gradient(90deg, var(--success), rgba(16, 122, 89, 0.12));
}

.kpi-card.danger::after {
    background: linear-gradient(90deg, var(--danger), rgba(186, 36, 53, 0.12));
}

.kpi-card.warning::after {
    background: linear-gradient(90deg, var(--warning), rgba(181, 114, 20, 0.12));
}

.kpi-card.info::after {
    background: linear-gradient(90deg, var(--info), rgba(15, 132, 168, 0.12));
}

.kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.kpi-card.success .kpi-icon {
    color: var(--success);
    background: var(--success-soft);
}

.kpi-card.danger .kpi-icon {
    color: var(--danger);
    background: var(--danger-soft);
}

.kpi-card.warning .kpi-icon {
    color: var(--warning);
    background: var(--warning-soft);
}

.kpi-card.info .kpi-icon {
    color: var(--info);
    background: var(--info-soft);
}

.kpi-label {
    margin: 0 0 6px;
    font-size: 18px;
    color: var(--muted);
}

.kpi-value {
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
    color: var(--heading);
    font-weight: 700;
}

.kpi-caption {
    display: block;
    margin-top: 6px;
    color: var(--muted-soft);
    font-size: 12px;
    line-height: 1.5;
}

.kpi-progress {
    margin-top: 14px;
    height: 8px;
    background: #edf2fb;
    border-radius: 999px;
    overflow: hidden;
}

.kpi-progress span,
.metric-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), #60a5fa);
}

.kpi-card.success .kpi-progress span {
    background: linear-gradient(90deg, var(--success), #34d399);
}

.kpi-card.danger .kpi-progress span {
    background: linear-gradient(90deg, var(--danger), #fb7185);
}

.kpi-card.warning .kpi-progress span {
    background: linear-gradient(90deg, var(--warning), #fbbf24);
}

.kpi-card.info .kpi-progress span {
    background: linear-gradient(90deg, var(--info), #22d3ee);
}

.dashboard-two-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
    gap: 18px;
}

.dashboard-three-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.insight-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(249, 251, 255, 0.96) 100%);
}

.insight-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(34, 87, 212, 0.08), transparent 70%);
}

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.card-head p {
    margin: 0;
}

.stat-pill-wrap {
    margin-top: 10px;
}

.stat-pill {
    background: #f6f9ff;
    border: 1px solid rgba(34, 87, 212, 0.10);
    color: var(--primary-dark);
}

.metric-list {
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
}

.metric-row {
    padding: 16px 18px;
    border-radius: 18px;
    background: #fbfdff;
    border: 1px solid rgba(162, 181, 210, 0.22);
}

.metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.metric-label {
    color: var(--heading);
    font-size: 19px;
}

.metric-value,
.metric-progress-value {
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
}

.metric-progress {
    height: 9px;
    background: #edf3fb;
    border-radius: 999px;
    overflow: hidden;
}

.metric-help {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
}

.action-stack {
    display: grid;
    gap: 14px;
}

.action-panel {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(162, 181, 210, 0.22);
    background: #fbfdff;
}

.action-panel h4 {
    margin: 0 0 6px;
    font-size: 22px;
    color: var(--heading);
}

.action-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.package-tags,
.area-pill-grid {
    gap: 12px;
}

.package-tag,
.area-pill {
    padding: 12px 14px;
    border-radius: 18px;
    background: #fbfdff;
    border: 1px solid rgba(162, 181, 210, 0.25);
    color: var(--heading);
    min-width: 145px;
    justify-content: space-between;
}

.package-tag small,
.area-pill small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.package-tag strong,
.area-pill strong {
    font-size: 13px;
    font-family: var(--font-ui);
}

.status-chip {
    background: #f4f7fb;
    border: 1px solid rgba(162, 181, 210, 0.26);
    color: var(--muted);
}

.status-chip.success {
    background: var(--success-soft);
    border-color: rgba(16, 122, 89, 0.14);
    color: var(--success);
}

.status-chip.danger {
    background: var(--danger-soft);
    border-color: rgba(186, 36, 53, 0.14);
    color: var(--danger);
}

.status-chip.warning {
    background: var(--warning-soft);
    border-color: rgba(181, 114, 20, 0.14);
    color: var(--warning);
}

.table-card {
    overflow: hidden;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(162, 181, 210, 0.18);
    border-radius: 18px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-solid);
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid #edf2f8;
    text-align: right;
    vertical-align: middle;
    font-size: 13px;
    white-space: nowrap;
    line-height: 1.45;
}

th {
    background: linear-gradient(180deg, #f8fbff 0%, #f4f8ff 100%);
    font-weight: 700;
    color: #42556d;
    position: sticky;
    top: 0;
}

tr:hover td {
    background: #fafcff;
}

.table-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.table-title h3 {
    margin: 0;
    font-size: 25px;
    color: var(--heading);
}

.table-caption {
    font-size: 13px;
    color: var(--muted);
}

.alert {
    padding: 15px 18px;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.alert-error,
.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.alert-warning {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-secondary {
    background: #e8edf4;
    color: #475569;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.field label {
    font-size: 19px;
    color: var(--heading);
}

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(162, 181, 210, 0.36);
    border-radius: 14px;
    background: #ffffff;
    color: var(--heading);
    font-size: 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(34, 87, 212, 0.40);
    box-shadow: 0 0 0 4px rgba(34, 87, 212, 0.08);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: end;
    margin-bottom: 18px;
}

.filters > * {
    min-width: 160px;
    flex: 1;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 14px;
    border: 0;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
    font-size: 18px;
    line-height: 1.2;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #4c7ef0);
    color: #fff;
    box-shadow: 0 12px 24px rgba(34, 87, 212, 0.24);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #1bb77f);
    color: #fff;
    box-shadow: 0 12px 24px rgba(16, 122, 89, 0.20);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #ef476f);
    color: #fff;
    box-shadow: 0 12px 24px rgba(186, 36, 53, 0.18);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #e7a334);
    color: #fff;
    box-shadow: 0 12px 24px rgba(181, 114, 20, 0.18);
}

.btn-light {
    background: #eef4ff;
    color: #1e3a8a;
    border: 1px solid rgba(34, 87, 212, 0.10);
}

.btn-dark {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #fff;
}

.btn-sm {
    padding: 9px 12px;
    font-size: 15px;
    border-radius: 12px;
}

.grid-two,
.grid-three,
.grid-four,
.stats-grid,
.detail-list,
.photo-grid,
.summary-list {
    display: grid;
    gap: 16px;
}

.grid-two {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-three {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-four {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 24px;
}

.stats-card {
    padding: 20px;
}

.stats-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--muted);
}

.stats-card .value {
    font-size: 30px;
    font-weight: 700;
    color: var(--heading);
}

.stats-card .sub {
    color: var(--muted);
    font-size: 13px;
}

.empty-state,
.dashboard-empty {
    padding: 28px 18px;
    text-align: center;
    color: var(--muted);
    background: #fbfdff;
    border: 1px dashed rgba(162, 181, 210, 0.36);
    border-radius: 18px;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top right, rgba(34, 87, 212, 0.18), transparent 30%),
        radial-gradient(circle at bottom left, rgba(16, 122, 89, 0.15), transparent 30%),
        linear-gradient(180deg, #eff4ff, #f8fbff 45%, #f4f7fb);
}

.login-card {
    width: min(520px, 100%);
    padding: 34px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.90);
}

.login-title {
    margin: 0 0 8px;
    font-size: 40px;
    color: var(--heading);
}

.login-subtitle {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 18px;
}

.photo-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.photo-box {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px;
    background: #fbfdff;
}

.photo-box img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    background: #e5e7eb;
}

.detail-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.detail-item {
    background: #fbfdff;
    border-radius: 18px;
    padding: 14px;
    border: 1px solid var(--border);
}

.detail-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--heading);
    font-size: 18px;
}

.footer-note {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 12px;
    padding: 0 4px 8px;
}

.inline-form {
    display: inline;
}

.text-danger {
    color: var(--danger);
}

.text-success {
    color: var(--success);
}

.summary-list {
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.summary-list li {
    background: #fbfdff;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
}

@media (max-width: 1280px) {
    .dashboard-hero-grid,
    .dashboard-two-grid,
    .dashboard-three-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .app-shell {
        flex-direction: column;
        gap: 16px;
        padding: 12px;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-radius: 24px;
    }

    .main-content {
        padding: 0 0 18px;
        min-height: auto;
    }

    .topbar {
        padding: 20px;
    }

    .app-heading {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .topbar,
    .table-title,
    .user-panel,
    .card-head,
    .metric-top {
        flex-direction: column;
        align-items: stretch;
    }

    .topbar {
        gap: 14px;
    }

    .app-heading {
        font-size: 28px;
    }

    .dashboard-hero,
    .card,
    .table-card,
    .form-card,
    .login-card,
    .insight-card,
    .hero-filter,
    .quick-link-card {
        padding: 18px;
    }

    .dashboard-hero h2 {
        font-size: 28px;
    }

    .kpi-value {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    th,
    td {
        font-size: 12px;
    }

    .menu-item,
    .btn,
    .field label,
    .topbar-note,
    .dashboard-hero p,
    .action-panel p {
        font-size: 16px;
    }

    .section-title,
    .table-title h3,
    .action-panel h4 {
        font-size: 22px;
    }

    .login-title,
    .app-heading {
        font-size: 26px;
    }

    .hero-badge,
    .stat-pill,
    .package-tag,
    .area-pill,
    .status-chip,
    .topbar-date,
    .badge {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Professional English Theme Override ===== */
:root {
    --font-urdu: 'Inter', 'Segoe UI', Tahoma, Arial, sans-serif;
    --font-ui: 'Inter', 'Segoe UI', Tahoma, Arial, sans-serif;
    --bg: #eef3fb;
    --card: rgba(255,255,255,0.96);
    --primary: #3459e6;
    --primary-dark: #1e3fb6;
    --success: #118a63;
    --danger: #d43f52;
    --warning: #ca8a04;
    --text: #132238;
    --muted: #61738c;
}

html[dir="ltr"] body,
html[dir="ltr"] button,
html[dir="ltr"] input,
html[dir="ltr"] select,
html[dir="ltr"] textarea {
    font-family: var(--font-ui);
}

html[dir="ltr"] .app-shell {
    direction: ltr;
}

html[dir="ltr"] .sidebar,
html[dir="ltr"] .topbar,
html[dir="ltr"] .card,
html[dir="ltr"] .table-card,
html[dir="ltr"] .form-card,
html[dir="ltr"] .insight-card,
html[dir="ltr"] .login-card {
    text-align: left;
}

.premium-sidebar {
    width: 300px;
    background: linear-gradient(180deg, #0b1220 0%, #111b31 54%, #17294d 100%);
}

.premium-topbar {
    border: 1px solid rgba(170, 188, 221, 0.28);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(246,250,255,0.92));
}

.glass-card,
.elevated-card,
.card-3d,
.hero-3d {
    position: relative;
    overflow: hidden;
}

.elevated-card,
.card-3d,
.hero-3d,
.quick-link-card,
.kpi-card {
    border: 1px solid rgba(171, 186, 214, 0.34);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.10), inset 0 1px 0 rgba(255,255,255,0.72);
}

.card-3d,
.kpi-card,
.quick-link-card,
.elevated-card {
    transform: translateY(0);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card-3d:hover,
.kpi-card:hover,
.quick-link-card:hover,
.elevated-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255,255,255,0.85);
    border-color: rgba(52, 89, 230, 0.24);
}

.brand-mark.large {
    width: 74px;
    height: 74px;
    font-size: 24px;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.login-screen {
    background:
        radial-gradient(circle at top left, rgba(52, 89, 230, 0.16), transparent 28%),
        radial-gradient(circle at bottom right, rgba(17, 138, 99, 0.14), transparent 26%),
        linear-gradient(180deg, #f4f7fd 0%, #eaf0fa 100%);
}

.premium-login {
    max-width: 520px;
    border-radius: 28px;
}

.login-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.login-subtitle,
.login-footer-note {
    color: var(--muted);
}

.btn-block { width: 100%; }

.quick-link-grid-3d,
.dashboard-kpi-3d {
    perspective: 1000px;
}

.quick-link-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.compact-kpi-grid {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    margin-bottom: 18px;
}

.kpi-card::before,
.quick-link-card::before,
.elevated-card::before,
.hero-3d::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.36), transparent 40%, rgba(52, 89, 230, 0.04));
    pointer-events: none;
}

.professional-dashboard .dashboard-hero {
    background: linear-gradient(135deg, rgba(10, 19, 42, 0.94), rgba(23, 41, 77, 0.92));
    color: #fff;
}

.professional-dashboard .dashboard-hero h2,
.professional-dashboard .dashboard-hero p,
.professional-dashboard .hero-kicker,
.professional-dashboard .hero-badge {
    color: #fff;
}

.professional-dashboard .hero-badge {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.14);
}

.form-grid-tight {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field-span-2 { grid-column: 1 / -1; }

.permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.choice-card,
.choice-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid rgba(167, 182, 210, 0.30);
    cursor: pointer;
}

.choice-card input,
.choice-pill input {
    margin: 0;
}

.radio-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.table-wrap table {
    min-width: 980px;
}

.topbar-note,
.table-caption,
.section-subtitle,
.kpi-caption,
.metric-help,
.small,
.muted {
    color: var(--muted);
}

.alert {
    border-radius: 16px;
    border: 1px solid transparent;
}

.badge,
.status-chip,
.hero-badge,
.stat-pill {
    font-weight: 700;
}

.footer-note {
    margin-top: 24px;
}

@media (max-width: 1024px) {
    .form-grid-tight,
    .compact-kpi-grid {
        grid-template-columns: 1fr;
    }

    .premium-sidebar {
        width: 100%;
    }
}


.main-content {
    flex: 1;
    min-width: 0;
}

.premium-topbar {
    position: sticky;
    top: 18px;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(255,255,255,0.55);
}

.glass-card,
.glass-panel-soft,
.elevated-card,
.mini-stat-card,
.analytics-bar-card,
.kpi-card,
.quick-link-card,
.hero-filter {
    backdrop-filter: blur(14px);
}

.ultra-dashboard {
    display: grid;
    gap: 24px;
}

.premium-hero-panel {
    position: relative;
    overflow: hidden;
}

.premium-hero-panel::after {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    right: -100px;
    top: -120px;
    background: radial-gradient(circle, rgba(56,189,248,0.18), transparent 68%);
    pointer-events: none;
}

.executive-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.mini-stat-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 10px 24px rgba(15,23,42,0.12);
}

.mini-stat-card span,
.mini-stat-card small {
    display: block;
    color: rgba(255,255,255,0.8);
    font-family: var(--font-ui);
}

.mini-stat-card strong {
    display: block;
    margin: 8px 0 3px;
    color: #fff;
    font-size: 22px;
    line-height: 1.3;
    font-family: var(--font-ui);
}

.quick-link-grid-modern {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.premium-kpi-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.kpi-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.65);
}

.kpi-card::after {
    content: '';
    position: absolute;
    inset: auto -35px -35px auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
}

.dashboard-executive-grid,
.analytics-grid,
.dashboard-two-grid {
    align-items: stretch;
}

.luxury-panel {
    background: linear-gradient(135deg, rgba(34,87,212,0.08), rgba(14,165,233,0.06));
    border: 1px solid rgba(34,87,212,0.12);
    border-radius: 18px;
    padding: 16px 18px;
}

.wrap-actions {
    flex-wrap: wrap;
}

.analytics-bars {
    display: grid;
    gap: 14px;
}

.analytics-bar-card {
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,250,255,0.94));
    border: 1px solid rgba(163,181,211,0.28);
    box-shadow: var(--shadow-sm);
}

.analytics-top,
.analytics-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.analytics-top strong,
.analytics-foot strong,
.analytics-top span,
.analytics-foot small {
    font-family: var(--font-ui);
}

.analytics-top {
    margin-bottom: 10px;
}

.analytics-foot {
    margin: 10px 0 8px;
}

.mini-progress {
    height: 10px;
    border-radius: 999px;
    background: #edf3ff;
    overflow: hidden;
}

.mini-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.mini-progress.customers span,
.mini-progress.packages span {
    background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.mini-progress.outstanding span {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.dashboard-reveal {
    animation: dashboardRise .5s ease both;
}

.dashboard-reveal:nth-child(2) { animation-delay: .04s; }
.dashboard-reveal:nth-child(3) { animation-delay: .08s; }
.dashboard-reveal:nth-child(4) { animation-delay: .12s; }
.dashboard-reveal:nth-child(5) { animation-delay: .16s; }

@keyframes dashboardRise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1400px) {
    .premium-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .quick-link-grid-modern {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .app-shell {
        flex-direction: column;
    }

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
    }

    .premium-kpi-grid,
    .executive-mini-grid,
    .dashboard-hero-grid,
    .dashboard-two-grid,
    .analytics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .premium-kpi-grid,
    .quick-link-grid-modern {
        grid-template-columns: 1fr;
    }

    .topbar,
    .user-panel,
    .hero-meta,
    .actions {
        flex-wrap: wrap;
    }
}


/* Customers list responsive improvements */
.customers-table-wrap {
    overflow-x: hidden;
}

.customers-table {
    width: 100%;
    table-layout: fixed;
}

.customers-table th,
.customers-table td {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    padding: 12px 10px;
    text-align: center;
    vertical-align: top;
    line-height: 1.35;
}

.customers-table th:nth-child(1),
.customers-table td:nth-child(1) { width: 8%; }
.customers-table th:nth-child(2),
.customers-table td:nth-child(2) { width: 12%; }
.customers-table th:nth-child(3),
.customers-table td:nth-child(3) { width: 12%; }
.customers-table th:nth-child(4),
.customers-table td:nth-child(4) { width: 9%; }
.customers-table th:nth-child(5),
.customers-table td:nth-child(5) { width: 8%; }
.customers-table th:nth-child(6),
.customers-table td:nth-child(6) { width: 8%; }
.customers-table th:nth-child(7),
.customers-table td:nth-child(7) { width: 12%; }
.customers-table th:nth-child(8),
.customers-table td:nth-child(8) { width: 8%; }
.customers-table th:nth-child(9),
.customers-table td:nth-child(9) { width: 7%; }
.customers-table th:nth-child(10),
.customers-table td:nth-child(10) { width: 8%; }
.customers-table th:nth-child(11),
.customers-table td:nth-child(11) { width: 7%; }
.customers-table th:nth-child(12),
.customers-table td:nth-child(12) { width: 11%; }

.customers-table .row-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.customers-table .btn-sm {
    min-width: 72px;
}

@media (max-width: 1200px) {
    .customers-table th,
    .customers-table td {
        font-size: 12px;
        padding: 10px 8px;
    }
}

@media (max-width: 820px) {
    .customers-table-wrap {
        border: none;
        overflow: visible;
    }

    .customers-table,
    .customers-table thead,
    .customers-table tbody,
    .customers-table tr,
    .customers-table th,
    .customers-table td {
        display: block;
        width: 100% !important;
    }

    .customers-table thead {
        display: none;
    }

    .customers-table tbody {
        display: grid;
        gap: 14px;
    }

    .customers-table tr {
        border: 1px solid rgba(162, 181, 210, 0.22);
        border-radius: 18px;
        padding: 10px 12px;
        background: #fff;
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
    }

    .customers-table td {
        border-bottom: 1px dashed #e8eef7;
        text-align: left;
        padding: 10px 0 10px 46%;
        position: relative;
        min-height: 42px;
    }

    html[dir="rtl"] .customers-table td {
        text-align: right;
        padding: 10px 46% 10px 0;
    }

    .customers-table td:last-child {
        border-bottom: none;
        padding-bottom: 2px;
    }

    .customers-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        top: 10px;
        width: 42%;
        font-weight: 700;
        color: var(--heading);
        font-family: var(--font-ui);
        font-size: 12px;
        line-height: 1.35;
    }

    html[dir="rtl"] .customers-table td::before {
        left: auto;
        right: 0;
        text-align: right;
    }

    .customers-table .row-actions {
        justify-content: flex-start;
    }

    html[dir="rtl"] .customers-table .row-actions {
        justify-content: flex-end;
    }
}
