/* =========================================================
   1. MAIN / HEADER / NAVIGATION
   ========================================================= */
:root {
  --color-primary: #102c3c;
  --color-primary-dark: #0b2434;
  --color-green: #099b5c;
  --color-green-dark: #07864f;
  --color-green-light: #e7f7ef;
  --color-blue: #398ce8;
  --color-orange: #f9a927;
  --color-purple: #7752e9;
  --color-red: #ff5d67;
  --color-red-dark: #f13f4d;
  --color-text: #102535;
  --color-text-muted: #718196;
  --color-text-secondary: #334e68;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-bg: #f7fbfd;
  --color-border: #d9e1e7;
  --color-border-light: #e7eef1;
  --color-nav-bg: #eaf4f3;
  --color-dark-green-text: #24594e;
  --color-link: #0785ef;
  --color-input-icon: #526675;
  --color-divider: #dfe5e9;
  --color-divider-text: #7d8c98;
  --color-chart-grid: #e5edf1;
  --color-sidebar: #063d39;
  --color-sidebar-dark: #02332f;
  --color-banner: #e4f6ee;
  --color-yellow: #ffb719;
  --color-aqua: #86d6dc;
  --color-aqua-light: #d3eee8;
  --color-brown: #7a6045;
  --color-gray-light: #d9ddd8;
  --color-gray-blue: #e5edf2;
  --color-green-tree: #23a96d;
  --color-orange-light: #ef8b52;
  --color-purple-dark: #6753ca;
  --color-purple-light: #8473d8;
  --color-purple-muted: #8070ca;
  --color-account-icon-bg: #d5f1e3;
  --color-account-border: #48ad84;
  --color-account-text: #25865f;
  --color-account-muted: #71818b;
  --color-trust-text: #637486;
  --color-trust-icon: #65798a;
  --color-bottom-text: #6d7c8c;
  --color-access-text: #8fd1f5;
  --color-feature-green: #55c86c;
  --color-feature-blue: #438de9;
  --color-feature-purple: #7450e8;
  --color-quote: #35c875;
}
/* Global */
html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}
body {
  font-family: Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
}
a {
  text-decoration: none;
}
/* Main page */
.login-page {
  min-height: 100vh;
}
/* Header / Navigation */
.login-header,
.navbar {
  position: relative;
  z-index: 10;
}
nav.navbar {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
}
.login-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  padding: 14px 58px;
}
.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
  text-decoration: none;
}
.navbar-brand .fa-envira {
  font-size: 38px;
  line-height: 1;
  color: var(--color-primary);
}
.navbar-brand .page_title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}
.navbar-nav {
  gap: 10px;
}
.navbar-nav .nav-link {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
}
.nav-login {
  color: var(--color-text);
  text-decoration: none;
}
.nav-login:hover {
  color: var(--color-green) !important;
}
.nav-login {
  padding: 9px 13px !important;
  border-radius: 10px;
  background: var(--color-nav-bg);
  color: var(--color-dark-green-text) !important;
}
/* Bootstrap mobile menu */
.navbar-toggler {
  border: 0;
  padding: 8px;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.navbar-toggler-icon {
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--color-white);
    padding: 10px;
    border-radius: 10px;
  }
  .navbar-nav {
    gap: 0;
  }
  .navbar-nav .nav-link {
    padding: 10px;
  }
}
/* =========================================================
   2. LEFT PART
   ========================================================= */
.login-left {
  position: relative;
  min-height: 100vh;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: var(--color-white);
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
}
.login-left-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-left-content:before {
  content: "";
  background: rgba(255, 255, 255, 0.7);
  position: absolute;
  left: 0;
  top: 0;
  height: 64px;
  width: 100%;
}
.left-content-inner {
  width: 100%;
  max-width: 850px;
}
/* Left heading */
.left-content-inner h1 {
  color: var(--color-white);
  font-size: 50px;
  font-weight: 700;
  line-height: 1.05;
}
.left-description {
  max-width: 500px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1.55;
}
/* Access label */
.access-label {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid rgba(70, 180, 235, 0.55);
  border-radius: 50px;
  color: var(--color-access-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}
/* Features */
.feature-item {
  display: flex;
  align-items: center;
  gap: 24px;
}
.feature-icon {
  display: flex;
  flex: 0 0 66px;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  color: var(--color-white);
  font-size: 28px;
}
.feature-green {
  background: var(--color-feature-green);
}
.feature-blue {
  background: var(--color-feature-blue);
}
.feature-orange {
  background: var(--color-orange);
}
.feature-purple {
  background: var(--color-feature-purple);
}
.feature-content {
  max-width: 250px;
}
.feature-content h3 {
  color: var(--color-white);
  font-size: 19px;
  font-weight: 700;
}
.feature-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.4;
}
/* Quote */
.quote-line {
  width: 64px;
  height: 5px;
  margin-top: 35px;
  margin-bottom: 34px;
  background: var(--color-quote);
  border-radius: 5px;
}
.left-quote {
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  font-style: italic;
  line-height: 1.45;
}
/* =========================================================
   3. RIGHT PART
   ========================================================= */
.login-right {
  position: relative;
  min-height: 100vh;
  background: var(--color-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
}
/* Decorative leaves */
.decoration {
  position: absolute;
  width: 180px;
  height: 280px;
  border-radius: 100% 0 100% 0;
  background: rgba(107, 204, 164, 0.07);
  transform: rotate(25deg);
}
.decoration-one {
  top: 30px;
  right: -70px;
}
.decoration-two {
  bottom: 70px;
  left: -110px;
  transform: rotate(205deg);
}
.decoration-three {
  right: -30px;
  bottom: -100px;
}
/* Right content */
.login-right-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 670px;
  margin-right: auto;
  margin-left: auto;
}
/* Login card */
.login-card {
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
/* Card logo */
.login-card-logo {
  text-align: center;
}
.login-card-logo .navbar-brand .fa-envira {
  font-size: 34px;
}
.login-card-logo .navbar-brand .page_title {
  font-size: 20px;
}
/* Login heading */
.login-card h2 {
  margin: 0;
  color: var(--color-text);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.login-subtitle {
  color: var(--color-text-muted);
  font-size: 16px;
  text-align: center;
}
/* Form */
.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
}
.password-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.password-label label {
  margin-bottom: 8px;
}
.password-label a {
  color: var(--color-link);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.password-label a:hover {
  color: var(--color-green);
}
/* Form inputs */
.input-wrapper {
  position: relative;
}
.input-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 2;
  color: var(--color-input-icon);
  font-size: 20px;
  transform: translateY(-50%);
}
.input-wrapper .form-control {
  min-height: 50px;
  padding-left: 50px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  color: var(--color-text);
  font-size: 16px;
  box-shadow: none;
}
.input-wrapper .form-control:focus {
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(9, 155, 92, 0.1);
}
/* =========================================================
   COMMON BUTTONS
   ========================================================= */
.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.site-btn:focus {
  outline: none;
}

.site-btn.btn-lg {
  padding: 18px 24px;
  font-size: 16px;
}

.site-btn-green {
  background: var(--color-green);
  border-color: var(--color-green);
  color: var(--color-white);
}

.site-btn-green:hover,
.site-btn-green:focus {
  background: var(--color-green-dark);
  border-color: var(--color-green-dark);
  color: var(--color-white);
}

.site-btn-outline-green {
  background: var(--color-white);
  border-color: var(--color-account-border);
  color: var(--color-account-text);
}

.site-btn-outline-green:hover,
.site-btn-outline-green:focus {
  background: var(--color-green);
  border-color: var(--color-green);
  color: var(--color-white);
}

.site-btn-light {
  background: #eef5fa;
  border-color: transparent;
  color: var(--color-primary);
}

.site-btn-light:hover,
.site-btn-light:focus {
  background: #e4eef5;
  border-color: transparent;
  color: var(--color-primary);
}

.site-btn-blue-light {
  background: #eef6ff;
  border-color: transparent;
  color: var(--color-link);
}

.site-btn-blue-light:hover,
.site-btn-blue-light:focus {
  background: #e3f0ff;
  border-color: transparent;
  color: var(--color-link);
}

.site-btn-border {
  background: var(--color-bg);
  border-color: var(--color-border);
  color: var(--color-primary);
}

.site-btn-border:hover,
.site-btn-border:focus {
  background: var(--color-green-light);
  border-color: var(--color-border);
  color: var(--color-primary);
}

.site-btn-icon {
  min-width: 42px;
  padding: 8px 10px;
}

.site-btn-green.w-100 {
  min-height: 50px;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 700;
}

.button-arrow {
  font-size: 20px;
  line-height: 1;
}
/* Divider */
.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
}
.login-divider span {
  flex: 1;
  height: 1px;
  background: var(--color-divider);
}
.login-divider strong {
  color: var(--color-divider-text);
  font-size: 14px;
  font-weight: 400;
}
/* Create account */
.create-account-box {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border-radius: 8px;
  background: var(--color-green-light);
}
.create-account-icon {
  display: flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-account-icon-bg);
  color: var(--color-green);
  font-size: 18px;
}
.create-account-content {
  flex: 1 1 auto;
  min-width: 0;
}
.create-account-content h3 {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
}
.create-account-content p {
  color: var(--color-account-muted);
  font-size: 12px;
}
.create-account-button {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
}
/* Trust items */
.trust-items {
  display: flex;
  justify-content: center;
  gap: 45px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-trust-text);
  font-size: 12px;
}
.trust-icon {
  color: var(--color-trust-icon);
  font-size: 24px;
}
.trust-item:first-child .trust-icon {
  color: var(--color-green);
}
.bottom-text {
  color: var(--color-bottom-text);
  font-size: 13px;
  text-align: center;
}
/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991.98px) {
  .login-left {
    min-height: auto;
  }
  .login-left-content {
    min-height: auto;
  }
  .login-right {
    min-height: auto;
    padding-bottom: 40px;
    box-shadow: none;
  }
  .left-content-inner {
    margin-top: 20px;
  }
}
@media (max-width: 767.98px) {
  /* Header */
  .login-header {
    padding: 14px 20px;
  }
  .navbar-brand .fa-envira {
    font-size: 32px;
  }
  .navbar-brand .page_title {
    font-size: 19px;
  }
  /* Left */
  .login-left-content {
    padding-bottom: 45px;
  }
  .left-content-inner h1 {
    font-size: 42px;
  }
  .left-description {
    font-size: 16px;
  }
  .feature-item {
    gap: 15px;
  }
  .feature-icon {
    flex-basis: 55px;
    width: 55px;
    height: 55px;
    font-size: 23px;
  }
  .feature-content h3 {
    font-size: 16px;
  }
  .feature-content p {
    font-size: 14px;
  }
  /* Right */
  .login-right-content {
    margin-top: 30px !important;
  }
  .login-card h2 {
    font-size: 28px;
  }
  .create-account-box {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .create-account-content {
    width: 100%;
  }
  .create-account-button {
    width: 100%;
    text-align: center;
  }
  .trust-items {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
}
/* =========================================================
4. DASHBOARD
========================================================= */
.dashboard {
  min-height: 100vh;
  display: flex;
}
.dashboard .sidebar {
  width: 300px;
  min-height: 100vh;
  flex: 0 0 300px;
  background: linear-gradient(
    180deg,
    var(--color-sidebar),
    var(--color-sidebar-dark)
  );
  padding: 22px 16px;
  color: var(--color-white);
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-brand img {
  max-width: 100%;
}
.dashboard .sidebar-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.dashboard .sidebar-link {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 13px 14px;
  margin-bottom: 7px;
  border-radius: 9px;
  font-size: 15px;
}
.dashboard .sidebar-link i {
  width: 22px;
  text-align: center;
  font-size: 22px;
}
.dashboard .sidebar-link:hover,
.dashboard .sidebar-link.active {
  background: var(--color-green);
  color: var(--color-white);
}
.dashboard .main-content {
  width: calc(100% - 300px);
  min-width: 0;
  padding: 0 24px 24px;
  background: var(--color-bg);
}
.dashboard .top-bar {
  min-height: 83px;
  padding: 13px 0;
}
.dashboard .mobile-menu-btn {
  display: none;
}
.dashboard .welcome-title {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--color-text);
}
.dashboard .welcome-subtitle {
  color: var(--color-text);
  font-size: 18px;
}
.sidebar .bottom-bar-actions {
  white-space: nowrap;
}
.sidebar .user-menu,
.mobile-sidebar .user-menu {
  padding-left: 4px;
  background: transparent;
  border: none;
}
.user-menu-btn::after {
  display: none !important;
}
.user-menu-arrow {
  font-size: 12px;
  margin-left: 4px;
}
.user-menu i {
  width: 40px;
  height: 40px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.sidebar .avatar,
.mobile-sidebar .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.sidebar .user-name,
.mobile-sidebar .user-name {
  font-weight: 600;
  margin: 0 7px;
  color: var(--color-white);
}
.dashboard .hero-banner {
  min-height: 148px;
  border-radius: 11px;
  background: var(--color-banner);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 20px 26px;
}
.dashboard .hero-copy {
  position: relative;
  z-index: 3;
}
.dashboard .eyebrow {
  font-size: 14px;
  letter-spacing: 1.4px;
  color: var(--color-dark-green-text);
  font-weight: 700;
}
.dashboard .hero-copy h2 {
  font-size: 40px;
  line-height: 1.12;
  margin: 0;
  font-weight: bold;
  color: var(--color-primary);
}
.dashboard .hero-line {
  width: 56px;
  height: 3px;
  background: var(--color-green);
  margin-top: 9px;
}
.dashboard .hero-art {
  position: absolute;
  right: 20px;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.dashboard .hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
}
.dashboard .hero-art img.tree-LHS {
  width: auto;
}
.dashboard .stats-row {
  margin-top: 9px;
}
.dashboard .stat-card {
  min-height: 101px;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(24, 54, 74, 0.07);
  display: flex;
  gap: 15px;
  height: 100%;
}
.dashboard .stat-icon {
  width: 51px;
  height: 51px;
  flex: 0 0 51px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 22px;
}
.dashboard .stat-icon.income {
  background: var(--color-green);
}
.dashboard .stat-icon.expense {
  background: var(--color-red);
}
.dashboard .stat-icon.saving {
  background: var(--color-purple);
}
.dashboard .stat-icon.calendar {
  background: var(--color-blue);
}
.dashboard .stat-info span {
  display: block;
  color: var(--color-text-secondary);
}
.dashboard .stat-info strong {
  display: block;
  font-size: 24px;
}
.dashboard .stat-info small {
  font-size: 15px;
  font-weight: 700;
}
.dashboard .stat-info em {
  font-style: normal;
  font-weight: 400;
  color: var(--color-text-secondary);
}
.dashboard .up {
  color: var(--color-green-dark);
}
.dashboard .down {
  color: var(--color-red-dark);
}
.dashboard .year-arrow {
  float: right;
  font-size: 12px;
  margin-top: 7px;
}
.dashboard .charts-row {
  margin-top: 13px;
}
.dashboard .panel {
  height: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(24, 54, 74, 0.07);
}
.dashboard .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dashboard .panel-header h3 {
  font-size: 22px;
  margin: 0;
  font-weight: bold;
  color: var(--color-text);
}

.dashboard .legend {
  display: flex;
  gap: 24px;
  margin: 15px 0 5px 8px;
  font-size: 14px;
}
.dashboard .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dashboard .income-dot {
  background: var(--color-green);
}
.dashboard .expense-dot {
  background: var(--color-red);
}
.dashboard .legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.dashboard .chart-canvas-wrap {
  position: relative;
  width: 100%;
}
.dashboard .bar-chart-wrap {
  height: 255px;
  margin-top: 8px;
}
.dashboard .donut-layout {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 21px 3px 4px;
}
.dashboard .donut {
  width: 165px;
  height: 165px;
  flex: 0 0 165px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dashboard .donut canvas {
  position: relative;
  z-index: 1;
}
.dashboard .donut-hole {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 88px;
  height: 88px;
  background: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  pointer-events: none;
  z-index: 2;
}
.dashboard .donut-hole strong {
  font-size: 13px;
}
.dashboard .donut-hole span {
  font-size: 11px;
  color: var(--color-text-muted);
}
.dashboard .breakdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  font-size: 11px;
}
.dashboard .breakdown-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
}
.dashboard .breakdown-list li span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dashboard .savings-panel {
  display: flex;
  flex-direction: column;
}
.dashboard .progress-ring {
  width: 142px;
  height: 142px;
  margin: 18px auto 12px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dashboard .progress-ring:after {
  content: "";
  position: absolute;
  inset: 12px;
  background: var(--color-white);
  border-radius: 50%;
}
.dashboard .progress-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.dashboard .progress-inner strong {
  font-size: 21px;
}
.dashboard .progress-inner b {
  font-size: 12px;
}
.dashboard .progress-inner span {
  font-size: 10px;
  color: var(--color-text-muted);
}
.dashboard .track-message {
  background: var(--color-green-light);
  border-radius: 8px;
  padding: 9px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--color-green-dark);
}
.dashboard .track-message > i {
  font-size: 21px;
}
.dashboard .track-message strong,
.dashboard .track-message span {
  display: block;
}
.dashboard .track-message strong {
  font-size: 13px;
}
.dashboard .track-message span {
  font-size: 12px;
  color: var(--color-green);
}
.mobile-sidebar {
  background: var(--color-sidebar);
  color: var(--color-white);
  width: 270px;
}
.mobile-sidebar .offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.mobile-sidebar .sidebar-nav {
  padding-top: 5px;
}
/* =========================================================
5. DASHBOARD RESPONSIVE
========================================================= */
@media (max-width: 1199.98px) {
  .dashboard .main-content {
    width: calc(100% - 225px);
    padding: 0 18px 18px;
  }
  .dashboard .sidebar {
    width: 225px;
    flex-basis: 225px;
  }
  .dashboard .hero-art {
    right: 45px;
    transform: scale(0.88);
    transform-origin: right bottom;
  }
  .dashboard .hero-copy h2 {
    font-size: 28px;
  }
  .dashboard .donut-layout {
    flex-direction: column;
  }
  .dashboard .breakdown-list {
    max-width: 220px;
  }
}
@media (max-width: 991.98px) {
  .dashboard .sidebar {
    display: none !important;
  }
  .dashboard .main-content {
    width: 100%;
  }
  .dashboard .mobile-menu-btn {
    display: inline-flex;
  }
  .dashboard .hero-banner {
    min-height: 165px;
  }
  .dashboard .hero-art {
    right: 100px;
    opacity: 0.7;
  }
  .dashboard .charts-row .panel {
    min-height: 360px;
  }
}
@media (max-width: 767.98px) {
  .dashboard .bar-chart-wrap {
    height: 220px;
  }
  .dashboard .panel-header h3 {
    font-size: 18px;
  }
  .dashboard .legend {
    font-size: 12px;
    margin-left: 8px;
  }
  .dashboard .main-content {
    padding: 0 12px 16px;
  }
  .dashboard .welcome-title {
    font-size: 19px;
  }
  .dashboard .welcome-subtitle {
    font-size: 12px;
  }
  .sidebar .user-name,
  .sidebar .user-menu > i {
    display: none;
  }
  .sidebar .avatar,
  .mobile-sidebar .avatar {
    width: 36px;
    height: 36px;
  }
  .dashboard .hero-banner {
    padding: 18px;
    min-height: 190px;
  }
  .dashboard .hero-copy h2 {
    font-size: 25px;
  }
  .dashboard .hero-art {
    right: -75px;
    opacity: 0.45;
  }
  .dashboard .stat-card {
    min-height: 92px;
    align-items: center;
  }
  .dashboard .donut-layout {
    flex-direction: row;
  }
}
@media (max-width: 575.98px) {
  .dashboard .top-bar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .sidebar .bottom-bar-actions,
  .mobile-sidebar .bottom-bar-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .dashboard .hero-banner {
    min-height: 175px;
  }
  .dashboard .hero-copy h2 {
    font-size: 24px;
  }
  .dashboard .stat-info strong {
    font-size: 19px;
  }
  .dashboard .donut-layout {
    flex-direction: column;
  }
  .dashboard .donut {
    width: 155px;
    height: 155px;
    flex-basis: 155px;
  }
  .dashboard .breakdown-list {
    max-width: none;
  }
  .dashboard .charts-row .panel {
    min-height: 330px !important;
  }
}

/* =========================================================
   BUDGET CATEGORIES
========================================================= */
.budget-header {
  padding: 0;
}

.budget-title {
  color: var(--color-primary);
  font-size: 22px;
  font-weight: 700;
}

.budget-actions {
  margin-left: auto;
}

.budget-action-btn {
  min-height: 42px;
}

.budget-category {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.budget-category:has(.collapse.show) {
  border-color: var(--color-green);
}

.category-header {
  padding: 15px 10px;
  background: var(--color-white);
}

.budget-category:has(.collapse.show) .category-header {
  background: linear-gradient(90deg, var(--color-green-light), var(--color-white));
}

.category-info {
  gap: 20px;
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  color: var(--color-white);
  background: var(--color-green);
  border-radius: 50%;
  font-size: 28px;
}

/* Category colors reuse the existing site palette */
.budget-category.category-green .category-icon {
  background: var(--color-green);
}

.budget-category.category-orange .category-icon {
  background: var(--color-orange);
}

.budget-category.category-red .category-icon {
  background: var(--color-red);
}

.budget-category.category-purple .category-icon {
  background: var(--color-purple);
}

.budget-category.category-blue .category-icon {
  background: var(--color-blue);
}

.budget-category.category-aqua .category-icon {
  background: var(--color-aqua);
}

.budget-category.category-gray .category-icon {
  background: var(--color-text-muted);
}

.category-info h3 {
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 700;
}

.category-info p {
  margin-top: 3px;
  color: var(--color-text-muted);
  font-size: 16px;
}

.category-info strong {
  color: var(--color-primary);
}

.category-header-actions {
  justify-content: flex-end;
}

.category-toggle {
  min-height: 34px;
  min-width: 34px;
  padding: 4px 6px;
  border-color: transparent;
  background: transparent;
  color: var(--color-primary);
}

.category-toggle[aria-expanded="true"] {
  border-color: transparent;
  background: var(--color-green-light);
  color: var(--color-primary);
  box-shadow: none;
  transform: rotate(180deg);
}

.budget-table-wrap {
  padding: 11px;
}

.budget-table {
  color: var(--color-primary);
  border-spacing: 0;
  border-collapse: separate;
  border-width: 0;
}

.budget-table th {
  padding: 10px 10px;
  color: var(--color-primary);
  background: var(--color-border);
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  border: none;
}

.budget-table thead tr {
  border-top: none;
}

.budget-table thead th:first-child {
  width: 180px;
  text-align: left;
  border-top-left-radius: 8px;
}

.budget-table thead th:last-child {
  border-top-right-radius: 8px;
}

.budget-table tfoot tr,
.budget-table tfoot th {
  border: none;
}

.budget-table tfoot th:first-child {
  width: 180px;
  text-align: left;
  border-bottom-left-radius: 8px;
}

.budget-table tfoot th:last-child {
  border-bottom-right-radius: 8px;
}
.budget-table .mob-wrapper .mob-action-box {
  width: 18px;
  height: 18px;
  text-align: center;
  background: linear-gradient(
    90deg,
    var(--color-green-light),
    var(--color-white)
  );
}

.budget-table .mob-wrapper .prev-text,
.budget-table .mob-wrapper .next-btn {
  float: left;
}

.budget-table .mob-wrapper .prev-btn {
  float: right;
}


.budget-table .mob-wrapper .next-text {
  display: inline-block;
}

.budget-table td {
  padding: 5px 8px;
  border-color: var(--color-border);
  text-align: center;
  vertical-align: middle;
  border-right: 1px solid var(--color-border);
}

.budget-table td:first-child {
  text-align: left;
  border-left: 1px solid var(--color-border);
}

.budget-input {
  width: 75px;
  color: var(--color-primary);
  background: var(--color-white);
  border: none;
  font-size: 13px;
  text-align: center;
  box-shadow: 0 0 0 3px rgba(9, 155, 92, 0.1);
}

.name__input {
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: .2rem;
  color: #212529;
  font-size: 13px;
  line-height: 1.5;
  padding: .25rem .5rem;
  word-break: break-word;
  width: 178px;
}

.budget-input:focus,
.description-input:focus {
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(9, 155, 92, 0.1);
}

.description-input {
  min-width: 145px;
  min-height: 38px;
  padding: 6px 9px;
  color: var(--color-primary);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 13px;
}

.row-total {
  color: var(--color-primary);
  font-size: 14px;
  white-space: nowrap;
  font-weight: bold;
}

.category-footer {
  padding: 0 11px 11px;
  background: var(--color-white);
}

.add-item-btn,
.edit-btn,
.view-details-btn {
  min-height: 42px;
}

.add-item-btn i {
  font-size: 17px;
}

.view-details-btn i {
  font-size: 16px;
}

/* Responsive */

@media (max-width: 991.98px) {
  .category-header {
    align-items: flex-start !important;
    gap: 15px;
  }
}

@media (max-width: 767.98px) {
  .budget-header {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 12px;
  }

  .budget-actions {
    width: 100%;
  }

  .budget-action-btn {
    flex: 1;
    min-height: 38px;
    font-size: 12px;
    padding: 8px;
  }

  .category-info {
    flex: 1 0 auto !important;
    gap: 10px;
  }

  .category-info h3 {
    font-size: 16px;
  }

  .category-info p {
    font-size: 14px;
  }

  .category-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 20px;
  }

  .category-footer {
    align-items: stretch !important;
    flex-direction: column;
    gap: 10px;
  }

  .category-footer-actions {
    width: 100%;
    justify-content: center;
  }

  .add-item-btn,
  .edit-btn,
  .view-details-btn {
    justify-content: center;
  }

  .name__input {
    width: 120px;
  }
}

@media (max-width: 575.98px) {
  .category-footer-actions {
    flex-direction: column;
  }
}

/* ========================================
   Calculator Action Banner
======================================== */
.calculator-banner {
  width: 100%;
  background: var(--color-green-light);
  border-radius: 12px;
}
.calculator-banner-content {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.calculator-banner-image {
  width: 80px;
  height: 74px;
  flex: 0 0 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calculator-banner-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.calculator-banner-quote {
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: 8px;
}
.calculator-banner-quote em {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-green-dark);
}

/* Responsive */
@media (max-width: 767.98px) {
  .calculator-banner-content {
    flex-wrap: wrap;
    justify-content: center;
  }
  .calculator-banner-quote {
    flex: 0 0 100%;
    justify-content: center;
    text-align: center;
    padding-left: 0;
  }
  .calculator-banner-actions {
    width: 100%;
    justify-content: center;
  }
  .calculator-banner-actions .btn {
    min-width: 140px;
  }
}

@media (max-width: 480px) {
  .calculator-banner-actions {
    flex-direction: column;
    width: 100%;
  }
  .calculator-banner-actions .btn {
    width: 100%;
  }
}

/* =========================================================
   FOOTER
========================================================= */
.dashboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 100px;
  padding: 24px;
  border-top: 1px solid var(--color-border-light);
}

.footer-brand .navbar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0;
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 700;
}

.footer-brand .navbar-brand i {
  color: var(--color-green);
  font-size: 28px;
}

.footer-center {
  color: var(--color-text-muted);
  font-size: 16px;
  text-align: center;
}

.footer-right {
  color: var(--color-text-muted);
  font-size: 16px;
  text-align: right;
}
@media (min-width: 992px) {
  .dashboard-footer {
    margin-left: -24px;
    margin-right: -24px;
  }
}
@media (max-width: 991.98px) {
  .mobile-sidebar .sidebar-link {
    display: inline-block;
    width: 100%;
    padding: 5px 10px;
    color: var(--color-white);
  }
  .mobile-sidebar .sidebar-link i {
    margin-right: 7px;
  }
  .mobile-sidebar .sidebar-link.active {
    background: var(--color-green);
    margin-bottom: 3px;
    border-radius: 6px;
  }
}
@media (max-width: 767.98px) {
  .dashboard-footer {
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 22px 15px;
    text-align: center;
  }
  .footer-center,
  .footer-right {
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .footer-brand .navbar-brand {
    font-size: 16px;
  }
  .footer-brand .navbar-brand i {
    font-size: 24px;
  }
  .footer-center,
  .footer-right {
    font-size: 13px;
  }
}
