:root {
  --gold: #d4af37;
  --gold-dark: #b8860b;
  --gold-soft: #f8e7c3;
  --rose: #e8b4b8;
  --cream: #fffbf5;
  --brown: #3e2723;
  --deep: #2b1f1a;
  --ink: #292524;
  --muted: #78716c;
  --line: #eae5dd;
  --royal-dark-gold: #76521f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Poppins", sans-serif;
  color: var(--ink);
}

body {
  background-image: url(../images/login\ form\ BG.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  font-size: 13px;
}

a {
  text-decoration: none;
}

/* ===================================
   SIDEBAR
=================================== */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 258px;
  background: #f3e8d0be;
  padding: 24px 16px 18px;
  display: flex;
  border-radius: 15px;
  flex-direction: column;
  z-index: 20;
  overflow-y: auto;
  color: #5c4630;
}

.brandLogo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -20px;
}

.brand-logo img {
  width: 120px;
}

.side-nav {
  padding-top: 16px;
}

.menu-heading {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #8b7355;
  margin: 18px 10px 8px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 12px;
  margin: 3px 0;
  border-radius: 7px;
  color: #5c4630;
  font-size: 11px;
  transition: 0.2s;
}

.menu-item i {
  width: 18px;
  text-align: center;
  font-size: 14px;
}

.menu-item:hover,
.menu-item.active {
  background: linear-gradient(110deg, #e6d2aa, #d8bd87);
  color: #4a321b;
  font-weight: 600;
}

.logout-link {
  margin-top: auto;
  color: #a34b4b;
}

/* ===================================
   THEME TOGGLE BUTTON
=================================== */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 30px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.theme-toggle .fa-sun {
  color: #ffd76a;
  font-size: 15px;
}

.theme-toggle .fa-moon {
  color: var(--deep);
  font-size: 15px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  flex: 0 0 46px;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 30px;
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  top: 2px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease;
}

.switch input:checked + .slider {
  background: #b8860b;
}

.switch input:checked + .slider::before {
  transform: translateX(22px);
}

.switch input:focus-visible + .slider {
  outline: 3px solid rgba(212, 175, 55, 0.45);
  outline-offset: 3px;
}

/* ===================================
   MAIN AREA
=================================== */

.main-area {
    margin-left: 258px;
    width: calc(100% - 258px);
    min-height: 100vh;
    min-width: 0;
}

.topbar {
  min-height: 86px;
  background: none;
  border-bottom: 2px solid var(--deep);
  padding: 16px 34px;
  display: flex;
  color: var(--deep);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;

  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-title h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 4px;
}

.topbar-title p {
  font-size: 10px;
  margin: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.top-date {
  font-size: 10px;
}

.top-date i {
  color: var(--gold-dark);
  margin-right: 5px;
}

.admin-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--deep);
}

.avatar,
.large-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--brown);
  font-weight: 600;
}

.admin-chip strong,
.admin-chip small {
  display: block;
}

.admin-chip strong {
  font-size: 10px;
}

.admin-chip small {
  font-size: 9px;
}

/* ===================================
   PAGE CONTENT
=================================== */

.page-content {
  padding: 28px 34px 18px;
  max-width: 1600px;
  margin: auto;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 23px;
}

.eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: var(--deep);
}

.page-heading h1 {
  font:
    700 32px "Cormorant Garamond",
    serif;
  color: var(--brown);
  margin: 4px;
  margin-right: 4rem;
}

.page-heading p {
  font-size: 11px;
  color: var(--deep);
  margin: 0;
}

/* ===================================
   BUTTONS
=================================== */

.btn {
  font:
    10px "Poppins",
    sans-serif;

  border-radius: 6px;
}

.btn-gold {
  background: linear-gradient(110deg, var(--gold), var(--gold-dark));
  border: 1px solid var(--gold-dark);
  color: var(--deep);
  font-weight: 600;
}

.btn-outline-gold {
  border: 2px solid #d8c38b;
  color: var(--brown);
  background: #fff;
}

/* ===================================
   DASHBOARD STATS
=================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 18px;
}

.stat-card {
  background: #fff;
  border: 1px solid #eee7db;
  border-radius: 9px;
  padding: 17px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 3px 12px #3e272308;
}

.stat-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 17px;
}

.gold {
  background: #fff3d6;
  color: #a77a08;
}

.rose {
  background: #fdecef;
  color: #b96e7a;
}

.blue {
  background: #eaf2f9;
  color: #527fa8;
}

.green {
  background: #e6f5ec;
  color: #16865b;
}

.stat-card span {
  font-size: 10px;
  color: var(--muted);
}

.stat-card h3 {
  font-size: 19px;
  margin: 4px 0;
  color: var(--brown);
  font-weight: 600;
}

.stat-card small {
  font-size: 9px;
  color: #a8a29e;
}

/* ===================================
   PANELS
=================================== */

.panel {
  background: #fff;
  border: 1px solid #eee7db;
  border-radius: 9px;
  padding: 20px;
  margin-bottom: 17px;
  box-shadow: 0 3px 12px #3e272308;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 17px;
}

.panel h3,
.panel-head h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--brown);
  margin: 0 0 4px;
}

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

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===================================
   CHART
=================================== */

.chart-placeholder {
  min-height: 180px;
  background: #fffcf7;
  border: 1px dashed #e6dcc8;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #b9a77e;
}

.chart-placeholder i {
  font-size: 30px;
}

.chart-placeholder p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
}

/* ===================================
   TOOLBAR & SEARCH
=================================== */

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 16px 0;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 180px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 11px;
  color: #a8a29e;
}

.search-field input {
  border: 0;
  background: none;
  outline: 0;
  width: 100%;
  font:
    10px "Poppins",
    sans-serif;
}

/* ===================================
   FORMS
=================================== */

.form-select,
.form-control {
  font:
    10px "Poppins",
    sans-serif;
  border-color: var(--line);
  min-height: 38px;
}

.form-panel {
  padding: 23px;
}

.form-section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--brown);
  padding: 0 0 10px;
  margin: 7px 0 15px;
  border-bottom: 1px solid var(--line);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 18px;
  margin-bottom: 22px;
}

.form-grid label,
.login-card label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 10px;
  font-weight: 500;
  color: #57504b;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
}

/* ===================================
   TABLE
=================================== */

.table {
  font-size: 10px;
  margin: 0;
  white-space: nowrap;
}

.table thead th {
  background: #fbf7ef;
  color: #8b776d;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 12px;
  border: 0;
}

.table td {
  padding: 13px 12px;
  color: #625b56;
  border-color: #f0ece6;
  vertical-align: middle;
}

.table-sub {
  display: block;
  color: #a8a29e;
  font-size: 9px;
}

.pill {
  display: inline-block;
  border-radius: 30px;
  padding: 5px 9px;
  font-size: 9px;
  background: #f0f0f0;
  color: #686868;
}

.table-action {
  border: 0;
  background: none;
  color: #8b776d;
}

/* ===================================
   FOOTER
=================================== */

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 4px;
  color: var(--deep);
  font-size: 9px;
}

.page-footer i {
  color: var(--rose);
}

/* ===================================
   PROFIT LOSS STATEMENT
=================================== */

.statement-list {
  max-width: 650px;
}

.statement-list > div {
  display: flex;
  justify-content: space-between;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.statement-total {
  background: #fbf7ef;
  font-weight: 600;
}

.final-total {
  background: #f6ebd1;
}

.helper-note {
  font-size: 10px;
  color: var(--muted);
  background: #fffcf7;
  border-left: 3px solid var(--gold);
  padding: 11px 13px;
  margin-top: 18px;
}

/* ===================================
   CATEGORY & REPORT CARDS
=================================== */

.category-grid,
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.category-card,
.report-card {
  background: #fff;
  border: 1px solid #eee7db;
  border-radius: 9px;
  padding: 20px;
  color: inherit;
}

.category-art {
  height: 105px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 36px;
  margin-bottom: 17px;
}

.gold-art {
  background: #fff5df;
  color: #b8860b;
}

.diamond-art {
  background: #edf4fa;
  color: #527fa8;
}

.silver-art {
  background: #f1f1f1;
  color: #777;
}

.category-card h3,
.report-card h3 {
  font:
    700 23px "Cormorant Garamond",
    serif;
  color: var(--brown);
  margin: 5px 0;
}

.category-card p,
.report-card p {
  font-size: 10px;
  color: var(--muted);
}

.category-card strong,
.report-card span {
  font-size: 10px;
  color: var(--gold-dark);
}

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

.report-icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  display: grid;
  place-items: center;
}


.login-wrap {
  width: min(100%, 440px);
}

.login-card {
  display: grid;
  justify-content: center;
  background: #fffbf5;
  padding: 38px;
  border: 1px solid #d4af37;
  border-radius: 13px;
  box-shadow: 0 20px 60px #0003;
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-logo img {
  width: 150px;
  display: grid;
  margin-bottom: 15px;
}

.login-card h1 {
  font:
    700 34px "Cormorant Garamond",
    serif;
  color: var(--brown);
  margin: 5px 0;
}

.login-card > p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 25px;
}

.login-card form > label {
  margin-bottom: 15px;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  margin: 3px 0 20px;
}
.login-options input {
  margin-left: -40px;
}
.login-options a {
  color: var(--gold-dark);
}

.login-foot {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: 9px;
  margin-top: 20px;
}

/* ===================================
   DARK / LIGHT MODE
=================================== */

/* Dark mode main background */

html.dark-mode,
html.dark-mode body,
body.dark-mode {
  background-color:black;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: #eeeeee;
}

html.dark-mode .main-area,
html.dark-mode .page-content,
body.dark-mode .main-area,
body.dark-mode .page-content {
  color: var(--gold-soft);
}

/* Header black in dark mode */

html.dark-mode .topbar,
body.dark-mode .topbar {
  background: none;
  border: 2px solid var(--gold-soft);
  color: var(--gold-soft);
}
html.dark-mode .fa-moon,
body.dark-mode .fa-moon {
  color: var(--cream);
}
html.dark-mode .topbar-title h2,
html.dark-mode .topbar-title p,
html.dark-mode .top-date,
html.dark-mode .admin-chip,
html.dark-mode .admin-chip strong,
body.dark-mode .topbar-title h2,
body.dark-mode .topbar-title p,
body.dark-mode .top-date,
body.dark-mode .admin-chip,
body.dark-mode .admin-chip strong {
  color: var(--gold-soft);
}

/* Sidebar light golden in both modes */

html.dark-mode .sidebar,
body.dark-mode .sidebar {
  background: black;
  color: var(--gold-soft);
}

html.dark-mode .sidebar .menu-heading,
body.dark-mode .sidebar .menu-heading {
  color: var(--gold-soft);
}

html.dark-mode .sidebar .menu-item,
body.dark-mode .sidebar .menu-item {
  color: var(--cream);
}

html.dark-mode .sidebar .menu-item:hover,
html.dark-mode .sidebar .menu-item.active,
body.dark-mode .sidebar .menu-item:hover,
body.dark-mode .sidebar .menu-item.active {
  background: linear-gradient(110deg, #e6d2aa, #d8bd87);
  color: #4a321b;
}

/* Cards and panels */

html.dark-mode .panel,
html.dark-mode .stat-card,
html.dark-mode .form-panel,
html.dark-mode .category-card,
html.dark-mode .report-card,
body.dark-mode .panel,
body.dark-mode .stat-card,
body.dark-mode .form-panel,
body.dark-mode .category-card,
body.dark-mode .report-card {
  background: #242424;
  border-color: #383838;
  color: #eeeeee;
}

html.dark-mode .report-card h3,
html.dark-mode .report-card p,
html.dark-mode .category-card h3,
html.dark-mode .category-card p,
body.dark-mode .report-card h3,
body.dark-mode .report-card p,
body.dark-mode .category-card h3,
body.dark-mode .category-card p {
  color: #eeeeee;
}

html.dark-mode .panel h3,
html.dark-mode .panel p,
html.dark-mode .stat-card h3,
html.dark-mode .stat-card span,
html.dark-mode .page-heading h1,
html.dark-mode .page-heading p,
html.dark-mode .form-section-title,
html.dark-mode label,
body.dark-mode .panel h3,
body.dark-mode .panel p,
body.dark-mode .stat-card h3,
body.dark-mode .stat-card span,
body.dark-mode .page-heading h1,
body.dark-mode .page-heading p,
body.dark-mode .form-section-title,
body.dark-mode label {
  color: #eeeeee;
}

/* Tables */

html.dark-mode .table,
body.dark-mode .table {
  color: #eeeeee;
}

html.dark-mode .table thead th,
body.dark-mode .table thead th {
  background: #303030;
  color: #eeeeee;
}

html.dark-mode .table td,
body.dark-mode .table td {
  background: #242424;
  color: #eeeeee;
  border-color: #444444;
}

/* Inputs */

html.dark-mode .form-control,
html.dark-mode .form-select,
html.dark-mode .search-field,
body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode .search-field {
  background: #303030;
  color: #ffffff;
  border-color: #505050;
}

html.dark-mode .form-control::placeholder,
html.dark-mode .search-field input,
body.dark-mode .form-control::placeholder,
body.dark-mode .search-field input {
  color: #bbbbbb;
}

/* Other content areas */

html.dark-mode .chart-placeholder,
html.dark-mode .helper-note,
html.dark-mode .statement-total,
body.dark-mode .chart-placeholder,
body.dark-mode .helper-note,
body.dark-mode .statement-total {
  background: #303030;
  color: #eeeeee;
  border-color: #505050;
}

html.dark-mode .final-total,
body.dark-mode .final-total {
  background: #3a3020;
  color: #ffffff;
}

html.dark-mode .page-footer,
body.dark-mode .page-footer {
  color:#f8e7c3;
}

/* ===================================
   SMOOTH TRANSITIONS
=================================== */

body,
.sidebar,
.main-area,
.page-content,
.topbar,
.panel,
.stat-card,
.form-panel,
.category-card,
.report-card,
.table th,
.table td,
.form-control,
.form-select,
.search-field {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

/* Admin Profile Picture */
.admin-chip .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: fill;
  display: block;
  flex-shrink: 0;
    background-color:black;
}

/* Custom Profile Upload */
.profile-upload {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.profile-upload input[type="file"] {
  display: none;
}

.profile-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  background: #d4af37;
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s ease;
}

.profile-upload-btn:hover {
  background: #b8860b;
}

.profile-upload small,
#selectedFileName {
  font-size: 12px;
  color: var(--muted);
}

/* =========================================
   PREMIUM GOLD THEME - LIGHT & DARK MODE
   Add this block at the END of style.css
========================================= */

/* ---------- LIGHT MODE ---------- */

html:not(.dark-mode) body,
body:not(.dark-mode) {
    background: linear-gradient(
        135deg,
        #f5f0e5 0%,
        #eee3ca 45%,
        #faf7f0 100%
    );
    background-attachment: fixed;
    color: #29251f;
}

/* Remove background images */
body,
.login-page {
    background-image: none !important;
}

.login-page {
    background: linear-gradient(
        135deg,
        #f5f0e5,
        #e9d9b8,
        #fbf8f1
    );
}

/* Sidebar */
.sidebar {
    background: #eee5d3;
    color: #3b3024;
    border-right: 1px solid #d8c49b;
    box-shadow: 3px 0 18px rgba(75, 55, 20, 0.07);
}

.sidebar .menu-heading {
    color: #8a7044;
}

.sidebar .menu-item {
    color: #493b2b;
}

.sidebar .menu-item:hover,
.sidebar .menu-item.active {
    background: linear-gradient(110deg, #e7d3a7, #d6bd85);
    color: #352713;
}

/* Topbar */
.topbar {
    background: #f8f4eb;
    color: #30271d;
    border: none;
    border-bottom: 1px solid #d8c49b;
    box-shadow: 0 3px 14px rgba(75, 55, 20, 0.06);
}

.topbar-title h2,
.topbar-title p,
.top-date,
.admin-chip,
.admin-chip strong,
.admin-chip small {
    color: #30271d;
}

/* Page headings */
.page-heading h1 {
    color: #49351d;
}

.page-heading p,
.eyebrow {
    color: #65543d;
}

/* Cards and panels */
.panel,
.stat-card,
.form-panel,
.category-card,
.report-card {
    background: #fffdf9;
    border-color: #e8ddc9;
    color: #29251f;
}

.panel h3,
.panel-head h3,
.stat-card h3,
.category-card h3,
.report-card h3 {
    color: #49351d;
}

/* Tables */
.table thead th {
    background: #eee4d0;
    color: #5c4930;
}

.table td {
    color: #443b30;
    border-color: #e9e0d2;
}

/* Inputs */
.form-control,
.form-select,
.search-field {
    background-color: #fffdf9;
    color: #29251f;
    border-color: #d9cdb8;
}

.form-control::placeholder,
.search-field input::placeholder {
    color: #8c8171;
}

/* Footer */
.page-footer {
    background: #eee5d3;
    color: #51432f;
    border-top: 1px solid #d8c49b;
    padding: 16px 20px;
    border-radius: 8px;
}

/* Login card */
.login-card {
    background: #fffdf9;
    color: #29251f;
    border-color: #d4af37;
}

.login-card h1 {
    color: #49351d;
}

/* ---------- DARK MODE ---------- */

html.dark-mode body,
body.dark-mode {
    background: linear-gradient(
        125deg,
        #101113 0%,
        #191a1d 48%,
        #171612 100%
    );
    background-attachment: fixed;
    color: #f1eee7;
}

/* Main area */
html.dark-mode .main-area,
html.dark-mode .page-content,
body.dark-mode .main-area,
body.dark-mode .page-content {
    background: transparent;
    color: #f1eee7;
}

/* Sidebar */
html.dark-mode .sidebar,
body.dark-mode .sidebar {
    background: black;
    color: #e9dfc9;
    border-right: 1px solid #51452e;
    box-shadow: 3px 0 20px rgba(0, 0, 0, 0.25);
}

html.dark-mode .sidebar .menu-heading,
body.dark-mode .sidebar .menu-heading {
    color: #bca36e;
}

html.dark-mode .sidebar .menu-item,
body.dark-mode .sidebar .menu-item {
    color: #e5e0d6;
}

html.dark-mode .sidebar .menu-item:hover,
html.dark-mode .sidebar .menu-item.active,
body.dark-mode .sidebar .menu-item:hover,
body.dark-mode .sidebar .menu-item.active {
    background: linear-gradient(
        110deg,
        #51452e,
        #78633a
    );
    color: #fff8e8;
}

/* Topbar */
html.dark-mode .topbar,
body.dark-mode .topbar {
    background: #191a1d;
    color: #f1eee7;
    border: none;
    border-bottom: 1px solid #665631;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.2);
}

html.dark-mode .topbar-title h2,
html.dark-mode .topbar-title p,
html.dark-mode .top-date,
html.dark-mode .admin-chip,
html.dark-mode .admin-chip strong,
html.dark-mode .admin-chip small,
body.dark-mode .topbar-title h2,
body.dark-mode .topbar-title p,
body.dark-mode .top-date,
body.dark-mode .admin-chip,
body.dark-mode .admin-chip strong,
body.dark-mode .admin-chip small {
    color: #eee6d5;
}

/* Headings */
html.dark-mode .page-heading h1,
body.dark-mode .page-heading h1 {
    color: #f1dfb5;
}

html.dark-mode .page-heading p,
html.dark-mode .eyebrow,
body.dark-mode .page-heading p,
body.dark-mode .eyebrow {
    color: #d0c5ad;
}

/* Cards and panels */
html.dark-mode .panel,
html.dark-mode .stat-card,
html.dark-mode .form-panel,
html.dark-mode .category-card,
html.dark-mode .report-card,
body.dark-mode .panel,
body.dark-mode .stat-card,
body.dark-mode .form-panel,
body.dark-mode .category-card,
body.dark-mode .report-card {
    background: black;
    border-color: #39352d;
    color: #f1eee7;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

html.dark-mode .panel h3,
html.dark-mode .panel-head h3,
html.dark-mode .panel p,
html.dark-mode .stat-card h3,
html.dark-mode .stat-card span,
html.dark-mode .category-card h3,
html.dark-mode .category-card p,
html.dark-mode .report-card h3,
html.dark-mode .report-card p,
body.dark-mode .panel h3,
body.dark-mode .panel-head h3,
body.dark-mode .panel p,
body.dark-mode .stat-card h3,
body.dark-mode .stat-card span,
body.dark-mode .category-card h3,
body.dark-mode .category-card p,
body.dark-mode .report-card h3,
body.dark-mode .report-card p {
    color: #eee9df;
}

/* Tables */
html.dark-mode .table thead th,
body.dark-mode .table thead th {
    background: #302d27;
    color: #e9d8ae;
}

html.dark-mode .table td,
body.dark-mode .table td {
    background: #202125;
    color: #e8e5df;
    border-color: #403d36;
}

html.dark-mode .table-sub,
body.dark-mode .table-sub {
    color: #b9b1a3;
}

/* Inputs */
html.dark-mode .form-control,
html.dark-mode .form-select,
html.dark-mode .search-field,
body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode .search-field {
    background: #292a2e;
    color: #f5f2eb;
    border-color: #514b3e;
}

html.dark-mode .form-control::placeholder,
html.dark-mode .search-field input,
body.dark-mode .form-control::placeholder,
body.dark-mode .search-field input {
    color: #c1baad;
}

/* Labels */
html.dark-mode label,
html.dark-mode .form-section-title,
body.dark-mode label,
body.dark-mode .form-section-title {
    color: #e9dfc9;
}

/* Chart and helper areas */
html.dark-mode .chart-placeholder,
html.dark-mode .helper-note,
html.dark-mode .statement-total,
body.dark-mode .chart-placeholder,
body.dark-mode .helper-note,
body.dark-mode .statement-total {
    background: #292a2e;
    color: #e9dfc9;
    border-color: #514b3e;
}

html.dark-mode .final-total,
body.dark-mode .final-total {
    background: #403622;
    color: #fff4d7;
}

/* Footer */
html.dark-mode .page-footer,
body.dark-mode .page-footer {
    background: #191a1d;
    color: #e9dfc9;
    border-top: 1px solid #665631;
    padding: 16px 20px;
    border-radius: 8px;
}

/* Buttons */
html.dark-mode .btn-outline-gold,
body.dark-mode .btn-outline-gold {
    background: transparent;
    color: #f1dfb5;
    border-color: #b99b5b;
}

html.dark-mode .btn-gold,
body.dark-mode .btn-gold {
    color: #211b10;
}

/* Login page in dark mode */
html.dark-mode .login-page,
body.dark-mode .login-page {
    background: linear-gradient(
        125deg,
        #101113,
        #1d1c19,
        #17181b
    );
}

html.dark-mode .login-card,
body.dark-mode .login-card {
    background: #202125;
    color: #eee9df;
    border-color: #8f7540;
}

html.dark-mode .login-card h1,
body.dark-mode .login-card h1 {
    color: #f1dfb5;
}

html.dark-mode .login-card label,
body.dark-mode .login-card label {
    color: #e9dfc9;
}

/* Smooth theme transitions */
body,
.sidebar,
.topbar,
.page-footer,
.panel,
.stat-card,
.form-panel,
.category-card,
.report-card,
.table th,
.table td,
.form-control,
.form-select,
.search-field,
.login-card {
    transition:
        background 0.3s ease,
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}
/* =========================================
   SOFT WARM LIGHT MODE
========================================= */

html:not(.dark-mode) body,
body:not(.dark-mode) {
    background: linear-gradient(
        135deg,
        #e8dfcf 0%,
        #e4dac8 50%,
        #eee7da 100%
    );
    color: #302b24;
}

/* Sidebar */
.sidebar {
    background: #ded2bd;
    color: #403526;
    border-right: 1px solid #c9b894;
}

/* Topbar */
.topbar {
    background: #e8dfd0;
    color: #352e24;
    border-bottom: 1px solid #c9b894;
}

/* Main cards and panels */
.panel,
.stat-card,
.form-panel,
.category-card,
.report-card {
    background: #fff;
    border-color: #d9cbb5;
    color: #302b24;
}

/* Headings */
.page-heading h1,
.panel h3,
.panel-head h3,
.stat-card h3,
.category-card h3,
.report-card h3 {
    color: #493a27;
}

/* Tables */
.table thead th {
    background: #ded2bd;
    color: #51432f;
}

.table td {
    background: #f0e9dd;
    color: #40382e;
    border-color: #ded3c1;
}

/* Inputs */
.form-control,
.form-select,
.search-field {
    background: #f3ede3;
    color: #302b24;
    border-color: #cfc1a9;
}

/* Footer */
.page-footer {
    background: #ded2bd;
    color: #51432f;
    border-top: 1px solid #c9b894;
}

/* Login card */
.login-card {
    background: #eee6d8;
    color: #302b24;
}
/* ===================================
   LOGIN PAGE
=================================== */

.login-page {
  background-image: url(../images/login\ form\ BG.png ) !important; 
  min-height: 100vh;
  display: grid;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: scroll;
  background-size: cover;
  place-items: center;
  padding: 25px;
}
