/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #07131d;
  --bg-soft: #0c1a27;
  --panel: rgba(10, 20, 31, 0.74);
  --panel-strong: rgba(14, 26, 39, 0.9);
  --line: rgba(209, 220, 232, 0.14);
  --line-strong: rgba(214, 177, 112, 0.28);
  --accent: #d7b06d;
  --accent-strong: #f0d19a;
  --accent-soft: rgba(215, 176, 109, 0.14);
  --text: #f5f8fb;
  --muted: rgba(245, 248, 251, 0.72);
  --muted-soft: rgba(245, 248, 251, 0.5);
  --error: #ff8c8c;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(215, 176, 109, 0.16), transparent 82%),
    radial-gradient(circle at bottom right, rgba(81, 132, 168, 0.16), transparent 80%),
    var(--bg);
  overflow: hidden;
}

/* ===== LOADING ===== */
.body-loading {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(215, 176, 109, 0.12), transparent 38%),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.body-loading.hide {
  opacity: 0;
  visibility: hidden;
  display: flex !important;
  pointer-events: none;
}

.loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.loading-mandala svg {
  width: 82px;
  height: 82px;
  animation: spin 5s linear infinite;
}

.loading-text {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 26px;
  color: var(--accent);
  letter-spacing: 2px;
  animation: pulse 1.9s ease-in-out infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

/* ===== HELPERS ===== */
.hide {
  display: none !important;
}

/* ===== BACKGROUND ===== */
.body-background {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: url("../img/house-front.png") center center / cover no-repeat;
  z-index: 0;
  transform: translateZ(0);
  will-change: transform;
}

.body-background::before,
.body-background::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.body-background::before {
  background:
    linear-gradient(135deg, rgba(6, 10, 15, 0.78), rgba(6, 10, 15, 0.42) 45%, rgba(6, 10, 15, 0.82)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 35%);
}

.body-background::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%, rgba(0, 0, 0, 0.15));
}

.body-background-mask {
  position: absolute;
  inset: 0;
}

/* ===== FLOATING ACCENTS ===== */
.petal {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(215, 176, 109, 0.75), rgba(215, 176, 109, 0.08) 70%, transparent 72%);
  filter: blur(1px);
  opacity: 0;
  animation: floatAccent 10s ease-in-out infinite;
}

.petal-1 {
  top: 16%;
  left: 16%;
  animation-delay: 0s;
}

.petal-2 {
  top: 22%;
  left: 78%;
  width: 14px;
  height: 14px;
  animation-delay: 2s;
}

.petal-3 {
  top: 62%;
  left: 8%;
  width: 10px;
  height: 10px;
  animation-delay: 4s;
}

.petal-4 {
  top: 70%;
  left: 82%;
  width: 12px;
  height: 12px;
  animation-delay: 1s;
}

.petal-5 {
  top: 84%;
  left: 38%;
  width: 16px;
  height: 16px;
  animation-delay: 3s;
}

@keyframes floatAccent {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.9);
  }

  20% {
    opacity: 0.5;
  }

  70% {
    opacity: 0.18;
  }

  100% {
    opacity: 0;
    transform: translateY(-80px) scale(1.08);
  }
}

/* ===== MAIN LAYOUT ===== */
.body-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.body-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 24px;
  position: relative;
  z-index: 2;
}

.body-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 440px;
  position: relative;
  animation: fadeInUp 0.85s ease forwards;
  animation-delay: 1.05s;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== LEFT INFO PANEL ===== */
.content-decoration-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 34px 24px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 26px 26px 0 0;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.deco-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.deco-bottom {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.content-logo-wrapper {
  width: 120px;
  height: 120px;
  border-radius: 22px;
  overflow: hidden;
  /* border: 1px solid var(--line-strong); */
  /* background: rgba(255, 255, 255, 0.06); */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin-bottom: 20px;
}

.content-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portal-name-devanagari {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 60px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.4px;
  line-height: 1.1;
}

.portal-subtitle {
  font-family: 'Merriweather', serif;
  font-size: 29px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.divider-ornament {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  opacity: 0.9;
  font-size: 12px;
  margin: 2px 0;
}

.diamond {
  font-size: 9px;
}

.portal-description {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 300px;
}

.desc-english {
  display: inline-block;
  margin-top: 4px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: var(--muted-soft);
}

.wifi-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(215, 176, 109, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
}

.wifi-svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.wifi-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted-soft);
  font-weight: 700;
}

/* ===== RIGHT LOGIN PANEL ===== */
.login-wrapper {
  background: linear-gradient(180deg, rgba(15, 27, 39, 0.94), rgba(10, 20, 31, 0.88));
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border: 1px solid var(--line);
  border-top: none;
  position: relative;
  border-radius: 0 0 26px 26px;
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.login-panel-header {
  text-align: center;
  margin-bottom: 18px;
}

.panel-title-np {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 22px;
  color: var(--text);
  line-height: 1.1;
}

.panel-title-en {
  font-family: 'Merriweather', serif;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin-top: 3px;
}

/* ===== FORM ===== */
.login-form-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.login-form-title {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--accent-strong);
  text-transform: uppercase;
  margin-bottom: 14px;
  text-align: center;
}

.input-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  margin-bottom: 12px;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.input-group:focus-within {
  border-color: var(--line-strong);
  background: rgba(215, 176, 109, 0.08);
  transform: translateY(-1px);
}

.input-icon {
  display: flex;
  align-items: center;
  color: var(--muted-soft);
  margin-right: 10px;
  flex-shrink: 0;
}

.input-icon svg {
  width: 16px;
  height: 16px;
}

.rj-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  height: 48px;
  line-height: 48px;
}

.rj-input::placeholder {
  color: rgba(245, 248, 251, 0.42);
  font-size: 13px;
  font-weight: 500;
}

/* ===== LOGIN BUTTON ===== */
.login-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #e3bf7d, #c89a52);
  border: none;
  border-radius: 14px;
  color: #10202d;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.8px;
  cursor: pointer;
  margin-top: 18px;
  margin-bottom: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(200, 154, 82, 0.24);
}

.login-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.26), transparent 48%);
  opacity: 0.9;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(200, 154, 82, 0.32);
  filter: saturate(1.02);
}

.login-btn:active {
  transform: translateY(0);
}

.btn-arrow {
  font-size: 18px;
  transition: transform 0.25s ease;
}

.login-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ===== OTHER BUTTONS ===== */
.other-btn-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 8px;
  margin-top: 10px;
}

.rj-btn {
  cursor: pointer;
  text-align: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 14px;
  height: 44px;
  line-height: 44px;
  width: 100%;
  color: var(--muted);
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: all 0.25s ease;
}

.rj-btn:hover {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(215, 176, 109, 0.08);
}

/* ===== SPLIT LINE ===== */
.login-split-line {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 4px 0;
}

.login-split-line .left,
.login-split-line .right {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.login-split-line span {
  color: var(--muted-soft);
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

/* ===== ERROR MESSAGE ===== */
.login-msg {
  color: var(--error);
  font-size: 12px;
  text-align: center;
  min-height: 16px;
  margin-top: 8px;
}

/* ===== FOOTER NOTE ===== */
.login-footer-note {
  text-align: center;
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 11px;
  color: var(--muted-soft);
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  line-height: 1.8;
}

.login-footer-note span {
  display: block;
  margin-top: 3px;
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  letter-spacing: 0.3px;
  color: rgba(245, 248, 251, 0.44);
}

/* ===== iOS SAFARI OVERRIDES ===== */
@supports (-webkit-touch-callout: none) {
  .content-decoration-wrapper {
    /* background: linear-gradient(180deg, rgba(14, 24, 35, 0.92), rgba(11, 19, 28, 0.88)); */
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
  }

  .content-decoration-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    /* background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)); */
    border-radius: inherit;
    pointer-events: none;
  }

  .content-decoration-wrapper > * {
    position: relative;
    z-index: 1;
  }

  .login-wrapper {
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
}

/* ===== LANGUAGE DROPDOWN ===== */
.language-select {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 40;
  cursor: pointer;
}

.dropdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  line-height: 1;
  position: relative;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  min-height: 40px;
  align-self: center;
}

.dropdown-label {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: none;
  user-select: none;
  font-weight: 600;
}

.dropdown-arrow {
  color: var(--accent-strong);
  font-size: 12px;
  transition: transform 0.25s ease;
  display: inline-block;
}

.dropdown.actived .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown.actived .dropdown-menu {
  display: block;
}

.dropdown:hover {
  border-color: var(--line-strong);
  background: rgba(215, 176, 109, 0.06);
}

.dropdown.actived {
  background: rgba(215, 176, 109, 0.08);
  border-color: var(--line-strong);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: rgba(9, 18, 27, 0.98);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: none;
  min-width: 120px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  transition: all 0.2s;
}

.dropdown-menu a:hover {
  background: rgba(215, 176, 109, 0.1);
  color: var(--accent-strong);
}

.dropdown-menu a.selected {
  background: rgba(215, 176, 109, 0.10);
  color: var(--text);
  font-weight: 700;
}

/* ===== DESKTOP (≥ 1025px) ===== */
@media screen and (min-width: 1025px) {
  .body-content-wrapper {
    height: 100vh;
  }

  .body-content {
    flex-direction: row;
    max-width: 750px;
    width: 750px;
    min-height: 600px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.03);
  }

  .content-decoration-wrapper {
    flex: 1;
    border-radius: 30px 0 0 30px;
    border-right: none;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
      rgba(9, 19, 29, 0.72);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    padding: 54px 44px;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .deco-top {
    align-items: flex-start;
    text-align: left;
  }

  .portal-description {
    text-align: left;
  }

  .content-logo-wrapper {
    width: 100%;
    height: 140px;
    margin-bottom: 28px;
  }

  .portal-name-devanagari {
    font-size: 60px;
  }

  .portal-subtitle {
    font-size: 25px;
    letter-spacing: 6px;
  }

  .divider-ornament {
    margin: 6px 0;
  }

  .portal-description {
    font-size: 15px;
    max-width: 300px;
  }

  .login-wrapper {
    width: 400px;
    flex-shrink: 0;
    border: none;
    border-radius: 0 30px 30px 0;
    padding: 54px 42px 42px;
    justify-content: center;
    background: linear-gradient(180deg, rgba(13, 24, 35, 0.96), rgba(11, 20, 31, 0.92));
  }

  .login-panel-header {
    margin-bottom: 28px;
  }

  .panel-title-np {
    font-size: 28px;
  }

  .language-select {
    right: 24px;
    top: 24px;
  }

  .login-footer-note {
    margin-top: 22px;
  }
}

/* Desktop: keep dropdown inside the login card by opening upwards */
@media screen and (min-width: 1025px) {
  .login-wrapper .dropdown-menu {
    top: auto !important;
    bottom: calc(100% + 10px) !important;
    right: 18px !important;
    min-width: 140px;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: var(--shadow);
    z-index: 80;
  }

  .login-wrapper .dropdown {
    right: 18px;
    top: 18px;
  }
}

/* ===== MOBILE (< 1025px) ===== */
@media screen and (max-width: 1024px) {
  body {
    overflow-y: auto;
  }

  html,
  body {
    min-height: 100%;
  }

  .body-background {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .body-wrapper {
    min-height: 100svh;
    align-items: flex-start;
    padding: 18px 0;
  }

  .body-content-wrapper {
    padding: 16px;
    align-items: flex-start;
  }

  .body-content {
    max-width: 420px;
    margin: 0 auto;
  }
}


/* ==========================================================================
   MODERN COMPONENT SAAS OVERHAUL LAYOUT ENGINE
   ========================================================================== */

:root {
  --sidebar-width: 260px;
  --panel-blur: blur(25px);
  --bg-gradient: radial-gradient(circle at 50% 0%, #0d1f30 0%, #07131d 100%);
  --primary-glow: rgba(215, 176, 109, 0.15);
}

/* Base Framework Overrides */
.app-dashboard-container {
  display: flex;
  min-height: 100vh;
  background: var(--bg-gradient);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  overflow-x: hidden;
}

/* Sidebar Styling Component */
.app-sidebar {
  width: var(--sidebar-width);
  background: rgba(10, 21, 33, 0.85);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 24px;
  backdrop-filter: var(--panel-blur);
  -webkit-backdrop-filter: var(--panel-blur);
  position: fixed;
  height: 100vh;
  z-index: 90;
  transition: transform 0.3s ease;
}

.sidebar-brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-np {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.brand-en {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

.sidebar-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-item i {
  width: 18px;
  height: 18px;
}

.nav-item:hover, .nav-item.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: inset 0 0 8px rgba(215, 176, 109, 0.05);
}

.logout-action-trigger {
  width: 100%;
  padding: 12px;
  background: rgba(255, 140, 140, 0.06);
  border: 1px solid rgba(255, 140, 140, 0.15);
  border-radius: 12px;
  color: #ff8c8c;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}

.logout-action-trigger:hover {
  background: rgba(255, 140, 140, 0.15);
}

/* Viewport Main Platform Base Canvas */
.app-main-viewport {
  flex-grow: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.viewport-canvas-padding {
  padding: 32px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Jumbotron Banner Styling */
.canvas-welcome-jumbotron {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.jumbotron-text h2 {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 26px;
  color: var(--accent-strong);
  margin-bottom: 4px;
}

.jumbotron-text p {
  font-size: 14px;
  color: var(--muted-soft);
}

.live-time-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(140, 240, 162, 0.05);
  border: 1px solid rgba(140, 240, 162, 0.15);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  color: #8cf0a2;
}

/* Metric Display Cards Grid System Layouts */
.modern-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.metric-glass-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  backdrop-filter: var(--panel-blur);
  -webkit-backdrop-filter: var(--panel-blur);
}

.metric-glass-card.border-alert {
  border-color: rgba(255, 140, 140, 0.25);
  background: linear-gradient(145deg, var(--panel), rgba(255, 140, 140, 0.02));
}

.card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-alert-soft { background: rgba(255, 140, 140, 0.1); }
.bg-success-soft { background: rgba(140, 240, 162, 0.1); }
.bg-primary-soft { background: rgba(215, 176, 109, 0.1); }

.text-alert { color: #ff8c8c; }
.text-success { color: #8cf0a2; }
.text-primary { color: var(--accent-strong); }

.card-data {
  display: flex;
  flex-direction: column;
}

.card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted-soft);
  letter-spacing: 0.5px;
}

.card-main-number {
  font-size: 24px;
  font-weight: 800;
  margin: 4px 0;
}

.card-meta-desc {
  font-size: 12px;
  color: var(--muted);
}

/* Split Column Adaptive Framework Layout */
.dashboard-split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media screen and (min-width: 900px) {
  .dashboard-split-layout {
    grid-template-columns: 1.6fr 1fr;
  }
}

.content-glass-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: var(--panel-blur);
  -webkit-backdrop-filter: var(--panel-blur);
}

.card-header-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.card-header-inline h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 18px;
  color: var(--text);
}

.card-header-inline h4 i {
  color: var(--accent);
  width: 20px;
  height: 20px;
}

/* Styled System Badges */
.badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 8px;
  text-transform: uppercase;
}

.status-pending { background: rgba(215, 176, 109, 0.15); color: var(--accent-strong); border: 1px solid var(--line-strong); }
.status-paid { background: rgba(140, 240, 162, 0.15); color: #8cf0a2; border: 1px solid rgba(140, 240, 162, 0.3); }
.status-hold { background: rgba(255, 140, 140, 0.15); color: #ff8c8c; border: 1px solid rgba(255, 140, 140, 0.3); }

/* QR Unified Showcase Module Component Flexbox */
.qr-payment-flex-module {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

@media screen and (min-width: 480px) {
  .qr-payment-flex-module {
    flex-direction: row;
    align-items: flex-start;
  }
}

.qr-wrapper-frame {
  background: #fff;
  padding: 8px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  flex-shrink: 0;
}

.qr-wrapper-frame img {
  width: 150px;
  height: 150px;
  display: block;
}

.qr-instructions h5 {
  font-size: 15px;
  color: var(--accent-strong);
  margin-bottom: 6px;
}

.qr-instructions p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Document & Button Stacks */
.panel-inner-text {
  font-size: 13px;
  color: var(--muted-soft);
  line-height: 1.5;
  margin-bottom: 16px;
}

.action-buttons-stack, .receipt-action-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modern-secondary-btn, .modern-file-trigger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modern-secondary-btn:hover, .modern-file-trigger-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-strong);
}

.modern-file-trigger-btn {
  background: var(--accent-soft);
  border-color: var(--line-strong);
  color: var(--accent-strong);
}

.receipt-action-group input[type="file"] {
  display: none;
}

/* Modern Input Controls & Admin Calculations Panel Elements */
.modern-input-field-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-soft);
  text-transform: uppercase;
}

.modern-dashboard-input {
  width: 100%;
  height: 46px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 16px;
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s;
}

.modern-dashboard-input:focus {
  outline: none;
  border-color: var(--accent);
}

.modern-primary-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  background: var(--accent);
  border: none;
  border-radius: 12px;
  color: #07131d;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.2s;
}

.modern-primary-action-btn:hover {
  opacity: 0.95;
}

/* Modernized Dashboard Data Analytical Table Layout Structures */
.modern-table-scroll-frame {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.15);
}

.modern-dashboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.modern-dashboard-table th {
  background: rgba(255, 255, 255, 0.02);
  padding: 14px 18px;
  color: var(--muted-soft);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.modern-dashboard-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.table-user-meta {
  display: flex;
  flex-direction: column;
}

.user-main-name { font-weight: 700; color: var(--text); }
.user-sub-phone { font-size: 12px; color: var(--muted); }

.table-action-button-row {
  display: flex;
  gap: 8px;
}

.table-mini-action-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}

.table-mini-action-btn:hover { opacity: 0.9; }
.accept-trigger { background: #15803d; color: #fff; }
.hold-trigger { background: #b45309; color: #fff; }

.chart-canvas-container {
  position: relative;
  height: 220px;
  width: 100%;
}

/* Mobile Top Navbar Controls Framework */
.mobile-top-bar {
  display: none;
}

/* Responsive Adaptive Viewports Media Controllers Breakpoint Module */
@media screen and (max-width: 1024px) {
  .app-sidebar {
    transform: translateX(-100%);
  }
  .app-main-viewport {
    margin-left: 0;
  }
  .mobile-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: rgba(10, 21, 33, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: var(--panel-blur);
    -webkit-backdrop-filter: var(--panel-blur);
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .mobile-brand img { width: 30px; height: 30px; object-fit: contain; }
  .mobile-logout-btn {
    background: transparent;
    border: none;
    color: #ff8c8c;
    cursor: pointer;
  }
  .viewport-canvas-padding {
    padding: 20px;
  }
}