:root {
  --bg-login-form: #000;
  --bg-color: #111;
  --card-bg: #161616;
  --text-color: #ffffff;
  --accent-color: #000000;
  --muted-text: #a0a0a0;
  --chart-color-1: #00ffc3;
  --chart-color-2: #fa709a;
  --chart-color-3: #ffdd57;
  --chart-color-4: #6c5ce7;
  --chart-color-5: #e17055;
  --border-color: #2b2e3a;
}
.light {
  --bg-login-form: #000;
  --bg-color: #f9f9f9;
  --card-bg: #ffffff;
  --text-color: #1c1c1c;
  --accent-color: #00b894;
  --muted-text: #6c757d;
  --chart-color-1: #00b894;
  --chart-color-2: #ff6b81;
  --chart-color-3: #fbc531;
  --chart-color-4: #a29bfe;
  --chart-color-5: #ff7675;
  --border-color: #dcdcdc;
}
.lightRed {
  --bg-login-form: #000;
  --bg-color: rgb(252, 242, 242);
  --card-bg: #ffeaea;
  --text-color: #2c0b0e;
  --accent-color: #d63031;
  --muted-text: #7f4c4c;
  --chart-color-1: #ff6b6b;
  --chart-color-2: #e17055;
  --chart-color-3: #fab1a0;
  --chart-color-4: #ff7675;
  --chart-color-5: #c0392b;
  --border-color: #ffcccc;
}
.darkRed {
  --bg-login-form: #000;
  --bg-color: #1a0b0b;
  --card-bg: #2e0e0e;
  --text-color: #f8dcdc;
  --accent-color: #ff4c4c;
  --muted-text: #b08a8a;
  --chart-color-1: #ff6b6b;
  --chart-color-2: #e63946;
  --chart-color-3: #f28482;
  --chart-color-4: #b91c1c;
  --chart-color-5: #7f1d1d;
  --border-color: #441212;
}
.lightBlue {
  --bg-login-form: #000;
  --bg-color: #f0f8ff;
  --card-bg: #e6f2ff;
  --text-color: #001f3f;
  --accent-color: #007bff;
  --muted-text: #5c7080;
  --chart-color-1: #339af0;
  --chart-color-2: #74c0fc;
  --chart-color-3: #a5d8ff;
  --chart-color-4: #4dabf7;
  --chart-color-5: #228be6;
  --border-color: #cce0ff;
}
.darkBlue {
  --bg-login-form: #000;
  --bg-color: #0d1117;
  --card-bg: #1c2331;
  --text-color: #dce4ef;
  --accent-color: #1f6feb;
  --muted-text: #7a8699;
  --chart-color-1: #3b82f6;
  --chart-color-2: #60a5fa;
  --chart-color-3: #93c5fd;
  --chart-color-4: #2563eb;
  --chart-color-5: #1e40af;
  --border-color: #2a3548;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-size: 0.85rem;
  line-height: 1.5;
}

.login-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.login-form-container {
  background: var(--bg-login-form);
  width: 45vw;
  height: 100vh;
  margin-left: 3vw;
  margin-top: 6.5vw;
  border-radius: 16px;
  padding-left: 5rem;
  padding-right: 5rem;
  padding-top: 2rem;
}

.login-form-container h2 {
  margin-top: 1rem;
}

.google-login {
  margin-top: 10px;
  cursor: pointer;
}

.divider {
  display: flex;
  align-items: center;
  color: #444;
  font-family: Arial, sans-serif;
  letter-spacing: 2px;
  margin-top: 1rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #444;
  margin: 0 10px;
}

.input-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.input-container label {
  font-weight: 600;
  color: var(--text-color);
}

.input-container input {
  height: 3rem;
  accent-color: var(--accent-color);
  background: var(--card-bg);
  border-radius: 8px;
  color: var(--text-color);
  padding: 0.5rem 1rem;
}

.login-button {
  height: 3rem;
  margin-top: 1rem;
  width: 100%;
  border-radius: 8px;
  background: var(--accent-color);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.login-button:hover {
  background: #333333;
}

.login-footer {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 600;
}

.reset-password {
  cursor: pointer;
  color: #30b9ff;
}

.create-account {
  cursor: pointer;
  color: #30b9ff;
}

.login-logo {
  height: 8vh;
}

.login-image-container {
  position: relative;
}

.login-image {
  height: 70vh;
  position: absolute;
  top: -12rem;
  left: 7rem;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 80px;
  height: 100vh;
  background: var(--wlt-sidebar-bg, #000000);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 0 1rem 0;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2;
  transition: width 0.3s ease;
  overflow: hidden;
  border-right: 1px solid var(--border-color);
}

.sidebar.expanded {
  width: 220px;
}

.sidebar-top,
.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
}

.sidebar-top {
  padding-top: 1rem;
}

/* Sidebar Logo */
.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0;
  width: 80px;
  cursor: pointer;
}

.sidebar.expanded .sidebar-logo {
  width: 100%;
  padding: 0.75rem 1rem;
}

.sidebar-logo-full {
  display: none;
  max-width: 170px;
  max-height: 50px;
  object-fit: contain;
}

.sidebar-logo-icon {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.sidebar.expanded .sidebar-logo-full {
  display: block;
}

.sidebar.expanded .sidebar-logo-icon {
  display: none;
}

.sidebar-bottom {
  padding-bottom: 1rem;
}

.sidebar-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0;
}

.sidebar-item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  width: 100%;
  text-decoration: none;
  color: var(--wlt-sidebar-text, #ffffff);
  transition: all 0.2s ease;
}

.sidebar-item a:hover {
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-item i {
  font-size: 1.1rem;
  color: var(--wlt-sidebar-text, #ffffff);
  width: 20px;
  min-width: 20px;
  text-align: center;
  transition: color 0.3s ease;
  line-height: 1;
}

.sidebar-item .label {
  color: var(--wlt-sidebar-text, #ffffff);
  font-size: 0.85rem;
  white-space: nowrap;
  display: none;
  transition: opacity 0.3s ease;
  line-height: 1;
  padding: 0;
  margin: 0;
}

.sidebar.expanded .sidebar-item .label {
  display: inline;
}

.sidebar-item:hover i,
.sidebar-item:hover .label {
  color: var(--accent-color);
}

/* Center align icons when sidebar is collapsed - MUST be after .sidebar-item a */
.sidebar:not(.expanded) .sidebar-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0 !important;
  gap: 0 !important;
  width: 80px;
}

.sidebar:not(.expanded) .sidebar-item i {
  width: auto;
  min-width: auto;
  font-size: 1.15rem;
  text-align: center;
}

/* ===== HEADER ===== */
.header {
  width: calc(100vw - 80px);
  margin-left: 80px;
  background-color: var(--bg-color);
  display: flex;
  align-items: center;
  height: 4rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  z-index: 1;
  padding: 0 1.5rem;
}

.header-logo {
  width: 8rem;
}

/* Header right section */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.header-icon {
  font-size: 1.1rem;
  color: var(--muted-text);
  cursor: pointer;
  transition: color 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
}

.header-icon:hover {
  color: var(--accent-color);
}

.profile-pic {
  height: 2.2rem;
  width: 2.2rem;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-text);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.profile-pic:hover {
  background: var(--accent-color);
  color: #000;
}

.profile-dropdown {
  display: none;
  position: fixed;
  top: 3.5rem;
  right: 1.5rem;
  background: var(--card-bg);
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
  width: 10rem;
  z-index: 10;
}

.profile-dropdown p,
.profile-dropdown a {
  margin: 0;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-color);
  display: block;
  text-decoration: none;
}

.profile-dropdown p:hover,
.profile-dropdown a:hover {
  background: rgba(255, 255, 255, 0.05);
}

.user-name-header {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-color);
  white-space: nowrap;
}

/* Hide old header elements if they still exist in HTML */
.search,
.notification-bell,
.info,
.user-name-obj {
  display: none !important;
}

.main-content {
  position: absolute;
  top: 4rem;
  left: 5rem;
  padding: 1rem 2rem;
  background-color: var(--bg-color);
  width: calc(100% - 5rem);
}

.main-content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0 1.2rem;
  font-size: 0.8rem;
}

.reporting-period {
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  appearance: none;
  width: fit-content;
}

.reporting-period:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(0, 230, 160, 0.3);
}

.reporting-period::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

.reporting-period:invalid {
  color: var(--muted-text);
}

.widget-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.widget {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 16px;
  width: 360px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  height: fit-content;
}

.section {
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 0.9rem;
  color: var(--muted-text);
  margin-bottom: 0.7rem;
  letter-spacing: 1px;
}

.status-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.status-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-color);
}

.pill {
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  background-color: var(--border-color);
  color: var(--text-color);
}

.pill.green {
  background-color: var(--accent-color);
  color: #000;
}

.pill.grey {
  background-color: #777;
  color: #fff;
}

.task-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.task-card.disabled {
  opacity: 0.4;
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.task-title {
  font-weight: bold;
  font-size: 0.95rem;
}

.green-text {
  color: var(--accent-color);
}

.task-meta {
  font-size: 0.75rem;
  color: var(--muted-text);
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.task-dates {
  margin-top: 0.4rem;
  color: var(--muted-text);
  font-size: 0.75rem;
}

.task-desc {
  color: var(--muted-text);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.badge {
  background-color: var(--accent-color);
  color: black;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: bold;
}

.avatar {
  background-color: var(--border-color);
  color: var(--text-color);
  border-radius: 50%;
  padding: 0.3rem 0.5rem;
  font-size: 0.7rem;
  margin-left: 0.5rem;
}

.title {
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: var(--muted-text);
}

.legend {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted-text);
  margin-bottom: 0.5rem;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
  box-shadow: 0 0 1px currentColor, 0 0 4px currentColor;
}

.incoming {
  background-color: var(--chart-color-1);
}
.outgoing {
  background-color: var(--chart-color-4);
}
.balance {
  background-color: var(--chart-color-3);
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat .label {
  font-size: 0.75rem;
  color: var(--muted-text);
}

.stat .value {
  font-size: 1rem;
  font-weight: bold;
}

.stat .change {
  font-size: 0.75rem;
  margin-top: 2px;
}

.up {
  color: var(--chart-color-1);
}
.down {
  color: var(--chart-color-2);
}

.widget h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.chart-container {
  position: relative;
  width: 220px;
  height: 220px;
  margin: auto;
}

.chart-info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.chart-info .total {
  font-size: 1.2rem;
  font-weight: bold;
}

.chart-info .change {
  font-size: 0.9rem;
  color: var(--chart-color-1);
}

.expense-list {
  margin-top: 1.5rem;
}

.expense-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  margin: 0.4rem 0;
}

.expense-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 22px;
  border-radius: 5px;
  display: inline-block;
}

.expense-value {
  text-align: right;
}

.percentage {
  font-size: 0.8rem;
  color: var(--muted-text);
}

.form-container {
  position: absolute;
  top: 4rem;
  left: 5rem;
  padding: 1rem 2rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  background-color: var(--bg-color);
  width: calc(100% - 5rem);
  border: 2px solid var(--accent-color);
  border-radius: 16px;
}

.form-container h2 {
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.uploader {
  border: 2px dashed #00ffaa;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  width: 400px;
  transition: 0.3s ease;
  margin-top: 20px;
}

.uploader.dragover {
  background: #1a1a1a;
  border-color: #00f0ff;
}

.preview {
  margin-top: 20px;
  text-align: left;
}

.preview img {
  max-width: 100px;
  margin: 5px;
  border-radius: 5px;
  display: block;
}

.file-name {
  margin: 5px 0;
  font-size: 14px;
  color: #ccc;
}

input[type="file"] {
  display: none;
}

label {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 8px;
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.82rem;
  border-radius: 5px;
  cursor: pointer;
}

.form-footer {
  width: 100%;
  display: flex;
  justify-content: end;
  align-items: center;
  margin-top: 1.5rem;
}

.form-button {
  background: var(--accent-color);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.3s ease;
  margin-top: 1.5rem;
}

.form-button:hover {
  background: #333333;
}

.table-container {
  position: absolute;
  top: 4rem;
  left: 5rem;
  padding: 1rem 2rem;
  margin-top: 1rem;
  margin-left:5px!important;
  margin-bottom: 1rem;
  background-color: var(--bg-color);
  width: calc(100% - 5rem);
  border: 2px solid var(--accent-color);
  border-radius: 16px;
}

.table-container h2 {
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

th,
td {
  padding: 8px 14px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.82rem;
}

th {
  background-color: var(--accent-color);
  color: var(--text-color);
  font-weight: bold;
  font-size: 0.82rem;
  letter-spacing: 0.05rem;
}

tr:hover {
  background-color: #333;
  cursor: pointer;
  color: var(--text-color);
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.pagination a {
  color: var(--accent-color);
  float: left;
  padding: 6px 12px;
  text-decoration: none;
  transition: background-color 0.3s;
  margin: 0 4px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.pagination a.active {
  background-color: var(--accent-color);
  color: white;
  border: 1px solid var(--accent-color);
}

.pagination a:hover:not(.active) {
  background-color: var(--accent-color);
  color: var(--text-color);
}


.error-message{

  color:red;
}