/* ===== HEADER ===== */

.dash-header {
  background: linear-gradient(135deg, #4b38f5, #6a5cff);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Layout */

.header-flex {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 12px 0;
}

.header-left,
.header-right {
  display: flex;

  align-items: center;

  gap: 15px;
}

/* Menu */

.menu-btn {
  background: none;

  border: none;

  font-size: 1.6rem;

  color: white;

  cursor: pointer;
}

/* Logo */

.site-logo {
  height: 40px;

  object-fit: contain;
}

/* Notification */

.notify-btn {
  background: none;

  border: none;

  font-size: 1.4rem;

  color: white;

  cursor: pointer;
}

/* Profile */

.profile-pic {
  width: 36px;

  height: 36px;

  border-radius: 50%;

  object-fit: cover;

  cursor: pointer;
}

/* ===== NOTIFICATION BAR ===== */

#notifyBar {
  position: fixed;

  top: 0;
  left: 50%;

  transform: translateX(-50%);

  background: #1e1e2f;

  color: white;

  padding: 12px 25px;

  border-radius: 0 0 15px 15px;

  display: none;

  z-index: 2000;
}

/* ===== MENU PANEL ===== */

.menu-panel {
  background: white;
  width: 300px;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
  border-radius: 0 0 18px 0;
  padding: 20px;
  overflow-y: auto;
  max-height: 80vh;
}

.menu-panel.open {
  transform: translateX(0);
}

/* Panel Top */

.panel-top {
  border-bottom: 1px solid #eee;

  padding-bottom: 15px;
}

.balance {
  font-size: 1.5rem;

  font-weight: 700;

  margin: 8px 0;
}

.panel-links a {
  display: block;

  margin: 6px 0;

  color: #4b38f5;

  text-decoration: none;
}

/* Toggles */

.panel-toggles {
  padding: 15px 0;

  border-bottom: 1px solid #eee;
}

.toggle-row {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin: 12px 0;
}

/* Switch */

.switch {
  position: relative;

  width: 45px;
  height: 24px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;

  background: #ccc;

  width: 100%;
  height: 100%;

  border-radius: 20px;

  cursor: pointer;
}

.slider::before {
  content: "";

  position: absolute;

  width: 18px;
  height: 18px;

  background: white;

  top: 3px;
  left: 3px;

  border-radius: 50%;

  transition: 0.3s;
}

input:checked + .slider {
  background: #4b38f5;
}

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

/* Actions */

.panel-actions {
  display: flex;

  flex-direction: column;

  gap: 10px;

  margin-top: 15px;
}

.panel-actions a {
  text-decoration: none;

  color: #333;

  padding: 8px;

  border-radius: 8px;

  transition: 0.3s;
}

.panel-actions a:hover {
  background: #f2f3ff;
}

.logout-btn {
  color: crimson;
}

/* ===== LIGHT MODE TEXT FIX ===== */

body:not(.dark-mode) {
  color: #0a2342;
}

/* Menu Panel */

body:not(.dark-mode) .menu-panel {
  background: white;
  color: #0a2342;
}

/* Menu Links */

body:not(.dark-mode) .menu-panel a {
  color: #4b38f5;
}

/* Panel Text */

body:not(.dark-mode) .panel-top h3,
body:not(.dark-mode) .panel-top p,
body:not(.dark-mode) .toggle-row span,
body:not(.dark-mode) .panel-actions a {
  color: #0a2342;
}

/* Logout */

body:not(.dark-mode) .logout-btn {
  color: crimson;
}

/* ===== DARK MODE MENU ===== */

.dark-mode .menu-panel {
  background: #1c1f35;
  color: #eee;
}

.dark-mode .menu-panel a {
  color: #9aa7ff;
}

.dark-mode .panel-actions a:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* DARK MODE */

.dark-mode {
  background: #121212;

  color: #eee;
}

.dark-mode .account-box,
.dark-mode .account-cards,
.dark-mode .menu-panel {
  background: #1f1f2f;

  color: white;
}

.menu-panel {
  z-index: 3000;
}

.menu-btn {
  z-index: 4000;
  position: relative;
}

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

.dashboard {
  padding: 40px 0 100px;
}

/* ===== BALANCE ===== */

.balance-card {
  background: linear-gradient(135deg, #1e1e2f, #2d2d44);
  color: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.balance-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 100%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(75, 56, 245, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.balance-info h4 {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: 5px;
}

.balance-info h1 {
  margin-top: 5px;
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(to right, #fff, #b0b8ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.quick-actions {
  display: flex;
  gap: 15px;
}

.quick-actions a {
  text-decoration: none;

  padding: 10px 22px;

  border-radius: 20px;

  background: #eef1ff;
  color: #4b38f5;

  font-weight: 600;

  transition: 0.3s;
}

.quick-actions a:hover {
  background: #4b38f5;
  color: white;
}

/* ===== ACCOUNTS ===== */

.account-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  gap: 20px;

  margin-bottom: 35px;
}

.account-box {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
}

.account-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(75, 56, 245, 0.1);
}

.box-icon {
  width: 42px;
  height: 42px;
  background: #f0f2ff;
  color: #4b38f5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.account-box h5 {
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.account-box p {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0a2342;
}

/* ===== TRANSACTIONS ===== */

.transactions {
  background: white;

  border-radius: 15px;

  padding: 25px;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);

  margin-bottom: 30px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-header a {
  text-decoration: none;
  color: #4b38f5;
  font-weight: 600;
}

.empty-box {
  text-align: center;
  padding: 35px;
  color: #888;
}

.empty-box span {
  font-size: 0.9rem;
}

/* ===== TRANSACTION LIST ===== */

.txn-list {
  display: flex;
  flex-direction: column;
}

.txn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f0f2f5;
}

.txn-row:last-child {
  border-bottom: none;
}

.txn-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.txn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.txn-icon .material-icons-outlined {
  font-size: 1.2rem;
}

.txn-icon-credit {
  background: #e8f5e9;
  color: #2e7d32;
}

.txn-icon-debit {
  background: #ffebee;
  color: #c62828;
}

.txn-info strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0a2342;
}

.txn-info span {
  display: block;
  font-size: 0.78rem;
  color: #888;
  margin-top: 2px;
}

.txn-amount {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.txn-credit {
  color: #2e7d32;
}

.txn-debit {
  color: #c62828;
}

/* ===== SERVICES ===== */

.service-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  gap: 18px;

  margin-bottom: 35px;
}

.service-btn {
  background: white;

  padding: 18px;

  text-align: center;

  text-decoration: none;

  border-radius: 12px;

  font-weight: 600;

  color: #0a2342;

  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);

  transition: 0.3s;
}

.service-btn:hover {
  background: #4b38f5;
  color: white;
}

/* ===== MAIN LAYOUT ===== */

.account-layout {
  display: flex;

  gap: 35px;

  align-items: stretch;
}

/* LEFT SIDE */

.account-left {
  flex: 1;

  display: flex;

  flex-direction: column;

  gap: 25px;
}

/* BOXES */

.account-box {
  background: #fff;

  padding: 28px;

  border-radius: 18px;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);

  position: relative;

  flex: 1;
}

/* Color bars */

.account-box::before {
  content: "";

  position: absolute;

  left: 0;
  top: 0;

  width: 6px;
  height: 100%;
}

.manage-box::before {
  background: #4b38f5;
}

.link-box::before {
  background: #00bfa6;
}

.switch-box::before {
  background: #6a5cff;
}

/* Text */

.account-box h3 {
  margin-bottom: 8px;
}

.account-box p {
  color: #666;

  margin-bottom: 15px;
}

/* Buttons */

.acc-btn {
  padding: 10px 24px;

  border-radius: 25px;

  font-size: 0.9rem;

  font-weight: 600;

  text-decoration: none;

  display: inline-block;
}

.blue-btn {
  background: #4b38f5;
  color: white;
}

.green-btn {
  background: #00bfa6;
  color: white;
}

.purple-btn {
  background: #6a5cff;
  color: white;
}

.business-switch {
  background: #4b38f5;
  color: #fff;

  border: none;
  padding: 6px 14px;

  border-radius: 20px;
  font-size: 0.85rem;

  cursor: pointer;
}

.business-switch:hover {
  background: #3726cc;
}

/* ===== RIGHT SIDE BIG PANEL ===== */

.account-cards {
  flex: 1.4;

  background: white;

  border-radius: 22px;

  padding: 30px;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

  display: flex;

  flex-direction: column;
}

.account-cards h2 {
  margin-bottom: 15px;

  text-align: center;
}

/* Cards fill height */

.cards-wrapper {
  flex: 1;

  display: flex;

  flex-direction: column;

  justify-content: center;

  gap: 30px;

  align-items: center;
}

/* BIG CARDS */

.cards-wrapper img {
  width: 100%;

  max-width: 450px;

  border-radius: 22px;

  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);

  transition: 0.4s;
}

.cards-wrapper img:hover {
  transform: scale(1.05) rotate(1deg);
}

/* MOBILE */

@media (max-width: 900px) {
  .account-layout {
    flex-direction: column;
  }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  .balance-card {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

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

  .service-panel {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .account-grid,
  .service-panel {
    grid-template-columns: 1fr;
  }
}

/* ===== BOTTOM NAV ===== */

.bottom-nav {
  position: fixed;

  bottom: 0;
  left: 0;

  width: 100%;

  background: white;

  border-top: 1px solid #ddd;

  display: flex;
  justify-content: space-around;
  align-items: center;

  height: 65px;

  z-index: 1000;

  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.nav-item {
  text-decoration: none;

  color: #777;

  font-size: 0.85rem;

  font-weight: 600;

  display: flex;
  flex-direction: column;
  align-items: center;

  transition: 0.3s;
}

.nav-item:hover {
  color: #4b38f5;
}

.nav-item.active {
  color: #4b38f5;
}

/* Home button special */

.nav-item.active span {
  background: #4b38f5;

  color: white;

  padding: 6px 14px;

  border-radius: 20px;
}

/* ===== AMOUNT FIELD ===== */

.amount-box {
  display: flex;

  align-items: center;

  border: 1px solid #ccc;

  border-radius: 10px;

  padding: 0 12px;

  transition: 0.3s;
}

.amount-box:focus-within {
  border-color: #4b38f5;

  box-shadow: 0 0 0 2px rgba(75, 56, 245, 0.15);
}

.dollar-sign {
  font-weight: 600;

  margin-right: 6px;

  color: #555;
}

.amount-box input {
  border: none;

  outline: none;

  padding: 11px 6px;

  width: 100%;

  font-size: 0.9rem;
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-box {
  background: white;
  padding: 30px;
  border-radius: 10px;
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hidden {
  display: none;
}
