* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "Ibm San Plex arabic";
  src: url("../IBM_Plex_Sans_Arabic/IBMPlexSansArabic-Regular.ttf");
}
:root {
  --main-color: #1e293b;
}
html,
body {
  font-family: "Ibm San Plex arabic";
  direction: rtl;
}
ul,
a {
  list-style: none;
  margin: 0;
  padding: 0;
}
[dir="rtl"] * {
  letter-spacing: 0;
}
.mb {
  margin-bottom: 20px;
}
/* /////////////////// */
.container {
  display: grid;
  /* grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr; */
  grid-template-columns: repeat(7, 1fr);
  /* grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr; */
  grid-auto-rows: auto;
  gap: 16px 16px;
  padding-left: 20px;
  /* background-color: #00a63e; */
  align-items: start;
  grid-auto-flow: row;
  grid-template-areas:
    "header header header header header header sidebar"
    "expenses-card expenses-card income-card income-card current-balance-card current-balance-card sidebar"
    "transactions-card transactions-card transactions-card transactions-card dashboard-widgets dashboard-widgets sidebar"
    "transactions-card transactions-card transactions-card transactions-card dashboard-widgets dashboard-widgets sidebar"
    "transactions-card transactions-card transactions-card transactions-card bills-card bills-card sidebar"
    "transactions-card transactions-card transactions-card transactions-card bills-card bills-card sidebar"
    "payment-methods-card payment-methods-card income-vs-expenses-card income-vs-expenses-card budget-overview-card budget-overview-card sidebar"
    "payment-methods-card payment-methods-card income-vs-expenses-card income-vs-expenses-card budget-overview-card budget-overview-card sidebar"
    "payment-methods-card payment-methods-card account-summary-card account-summary-card budget-overview-card budget-overview-card sidebar"
    "payment-methods-card payment-methods-card account-summary-card account-summary-card budget-overview-card budget-overview-card sidebar";
}
.sidebar {
  grid-area: sidebar;
  grid-column-start: 1;
  grid-column-end: 2;
  grid-row-start: 1;
  grid-row-end: 11;
  /* position: fixed;
  right: 0; */
  position: sticky;
  top: 0;
  height: 100vh;
  width: calc(4px * 64);
  background: rgba(255, 255, 255, 0.95);
  border-left: 1px solid rgba(200, 200, 200, 0.4);
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px);

  transition: all 0.3s ease;
  z-index: 10;
}

.sidebar-inner {
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 15px;
}

/* Logo Section */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.logo-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.2);
}

.logo-icon img {
  width: 30px;
  filter: brightness(0) invert(1);
}

.logo-text h1 {
  margin: 0;
  font-size: 36px;
  color: #111827;
}

.logo-text p {
  margin-top: 2px;
  font-size: 14px;
  color: #4a5565;
}

/* Navigation */

.nav li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: #555;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
}
/* 
.nav li img {
  width: 20px;
  filter: brightness(0.4);
} */

.nav li:hover {
  background: #f0f4ff;
  color: #2563eb;
}

.nav li.active {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
}

/* Quick Actions */
.quick-actions {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 15px;
}
.quick-actions h3 {
  padding-right: 10px;
  font-size: 13px;
  color: #374151;
}

.sidebar-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 12px 16px;
  color: #2563eb;
  font-family: inherit;
  font-size: 15px;
  transition: all 0.3s ease;
}

.sidebar-action-icon {
  padding: 10px;
  border-radius: 10px;
  transition: 0.3s ease;
}
.sidebar-action-btn .sidebar-action-icon.bg-blue {
  background-color: rgba(37, 99, 235, 0.1);
}
.sidebar-action-btn:hover .sidebar-action-icon.bg-blue {
  background-color: rgba(37, 99, 235, 0.2);
}
.sidebar-action-btn .sidebar-action-icon.bg-green {
  background-color: rgba(0, 201, 81, 0.102);
}
.sidebar-action-btn:hover .sidebar-action-icon.bg-green {
  background-color: rgba(0, 201, 81, 0.2);
}
.sidebar-action-btn .sidebar-action-icon.bg-purple {
  background-color: rgba(173, 70, 255, 0.102);
}
.sidebar-action-btn:hover .sidebar-action-icon.bg-purple {
  background-color: rgba(173, 70, 255, 0.2);
}
.sidebar-action-btn .sidebar-action-icon.bg-orange {
  background-color: rgba(255, 105, 0, 0.102);
}
.sidebar-action-btn:hover .sidebar-action-icon.bg-orange {
  background-color: rgba(255, 105, 0, 0.2);
}

.sidebar-action-icon i.blue {
  color: #2563eb;
}

.sidebar-action-icon i.green {
  color: #00a63e;
}
.sidebar-action-icon i.purple {
  color: #9810fa;
}
.sidebar-action-icon i.orange {
  color: #f54a00;
}
.sidebar-action-btn:hover {
  transform: translateX(2px);
  background: #00000005;
  border-radius: 12px;
}

.sidebar-action-label {
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

/* ////////////////////////////////////////////////////////// */

.header {
  grid-area: header;
  /* background-color: blue; */
  grid-column-start: 2;
  grid-column-end: 8;
  /* height: fit-content; */
}
.header-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(240, 240, 240, 0.6);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  margin-top: 30px;
  padding: 24px;
}

/* Left Section */
.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Logo Icon */
.logo-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.logo-box i {
  color: #fff;
  font-size: 20px;
}

/* Logo Text */
.logo-text h1 {
  font-size: 36px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.logo-text p {
  color: #6b7280;
  font-size: 13px;
  margin-top: 2px;
}

/* Status Badge */
.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  border-radius: 8px;
  padding: 4px 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 1.2s infinite;
}

.status-badge span {
  color: #047857;
  font-size: 13px;
  font-weight: 500;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Right Section */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}

.icon-btn:hover {
  background: #f3f4f6;
}

.icon-btn i {
  color: #4b5563;
  font-size: 16px;
}

/* Notification Badge */
.notification-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Profile Section */
.profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 6px 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s;
}

.profile:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.profile-info p {
  margin: 0;
}

.profile-info .name {
  font-weight: 600;
  color: #111827;
  font-size: 13px;
}

.profile-info .type {
  color: #6b7280;
  font-size: 12px;
}

.profile img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 2px solid #f3f4f6;
  object-fit: cover;
}
/* mobile menu hidden */
.header-left-sm,
.header-middle-sm,
.header-right-sm {
  display: none;
}
/* ////////////////////////////////////////////////////////// */
.current-balance-card {
  grid-area: current-balance-card;
  /* background-color: antiquewhite; */
  grid-column-start: 2;
  grid-column-end: 4;
}
.current-balance-card-inner {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.current-balance-card-inner:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Text styles */
.label {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 6px;
}

.amount {
  font-size: 38px;
  font-weight: 900;
  color: #111827;
  margin-bottom: 8px;
}

/* Growth indicator */
.change {
  display: flex;
  align-items: center;
  gap: 6px;
}

.change i {
  color: #16a34a; /* green-600 */
  font-size: 14px;
}

.change span {
  color: #16a34a;
  font-size: 14px;
  font-weight: 500;
}
/* ////////////////////////////////////////////////////////// */

.income-card {
  grid-area: income-card;
  /* background-color: green; */
  grid-column-start: 4;
  grid-column-end: 6;
}
/* ////////////////////////////////////////////////////////// */

.expenses-card {
  grid-area: expenses-card;
  align-self: start;
  /* background-color: rebeccapurple; */
  grid-column-start: 6;
  grid-column-end: 8;
}

.expenses-card-inner p {
  margin: 0;
}
.expense-change {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #dc2626; /* Red tone */
}

.expense-change i {
  color: #dc2626;
  font-size: 12px;
}
/* ////////////////////////////////////////////////////////// */

.dashboard-widgets {
  grid-area: dashboard-widgets;
  /* background-color: red; */
  grid-row-start: 3;
  grid-row-end: 5;
  grid-column-start: 2;
  grid-column-end: 4;
}

.current-balance-card-inner h3 {
  font-size: 18px;
  color: #111;
  margin-bottom: 20px;
}
.current-balance-card-inner.flex-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.activity {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-left: 4px solid transparent;
  border-radius: 12px;
}
.activity-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.activity-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.activity-header h4 {
  font-size: 14px;
  margin: 0;
  color: #222;
}
.activity-header span {
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  padding: 2px 6px;
}
.activity p {
  font-size: 13px;
  color: #555;
  margin: 4px 0;
}
.activity .time {
  font-size: 12px;
  color: #888;
} /* Colors */
.activity.blue {
  background: #f0f7ff;
  border-color: #3b82f6;
}
.activity.blue .activity-icon {
  background: #e0f0ff;
  color: #3b82f6;
}
.activity.blue .activity-header span {
  background: #e0f0ff;
  color: #3b82f6;
}
.activity.green {
  background: #f0fff4;
  border-color: #22c55e;
}
.activity.green .activity-icon {
  background: #e0ffe8;
  color: #22c55e;
}
.activity.green .activity-header span {
  background: #e0ffe8;
  color: #22c55e;
}
.view-all {
  text-align: center;
  border-top: 1px solid #eee;
  padding-top: 10px;
}
.view-all button {
  background: none;
  border: none;
  color: #3b82f6;
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
}
.view-all button:hover {
  color: #1d4ed8;
}

/* ////////////////////////////////////////////////////////// */

.bills-card {
  grid-area: bills-card;
  /* background-color: #00a63e; */
  grid-row-start: 5;
  grid-row-end: 7;
  grid-column-start: 2;
  grid-column-end: 4;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-container h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.header-container .view-all-bills {
  font-size: 14px;
  color: #4b5563;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.header-container .view-all-bills:hover {
  color: #111827;
}

.header-container .view-all-bills i {
  font-size: 10px;
  margin-right: 6px;
}

.bills-summary {
  text-align: center;
  margin-bottom: 16px;
}
.bills-summary p:first-child {
  font-size: 28px;
  font-weight: bold;
  color: #111;
  margin: 0;
}
.bills-summary p:last-child {
  font-size: 13px;
  color: #6b7280;
  margin: 4px 0 0;
}
.bills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.bill {
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  text-align: center;
  padding: 12px;
}
.bill .icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.bill p {
  margin: 2px 0;
}
.bill .label {
  font-size: 12px;
  color: #6b7280;
}
.bill .amount {
  font-weight: 600;
  color: #111;
  font-size: 14px;
}
.bill .due {
  font-size: 12px;
  color: #ef4444;
}
/* Color variations */
.bill.internet .icon {
  background: #dbeafe;
  color: #2563eb;
}
.bill.electric .icon {
  background: #fef3c7;
  color: #d97706;
}
.bill.phone .icon {
  background: #dcfce7;
  color: #16a34a;
}
.bill.tv .icon {
  background: #fee2e2;
  color: #dc2626;
} /* Due date colors */
.bill.internet .due {
  color: #ef4444;
}
.bill.electric .due {
  color: #fb923c;
}
.bill.phone .due {
  color: #22c55e;
}
.bill.tv .due {
  color: #6b7280;
}

/* ////////////////////////////////////////////////////////// */

.transactions-card {
  grid-area: transactions-card;
  /* background-color: gray; */
  grid-row-start: 3;
  grid-row-end: 7;
  grid-column-start: 4;
  grid-column-end: 8;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 25px;
  line-height: calc(1.25 / 0.875);
}
thead {
  /* background: #f0f3f8; */
  color: #555;
  border-bottom: 1px solid #eee;
}
tr {
  border-bottom: 1px solid #fbf9fa;
}
th,
td {
  padding: 17.5px 10px;
  text-align: right;
  font-size: 14px;
}
tr:last-child {
  border: none;
}

/* First column: avatar + name + subtitle */
.user-cell .user-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 22px;
  object-fit: cover;
  flex: 0 0 40px;
}

.user-name {
  margin: 0;
  font-weight: 500;
  color: #111827;
  line-height: 1;
}

.user-sub {
  margin: 2px 0 0 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1;
}

/* Badge (status/category) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 400;
  background: #dcfce7;
  color: #065f46;
  line-height: 1;
  white-space: nowrap;
}
.badge.orange {
  color: #9f2d00;
  background-color: #ffedd4;
}
.badge.blue {
  color: #193cb8;
  background-color: #dbeafe;
}
.badge.purple {
  color: #6e11b0;
  background-color: #f3e8ff;
}
.badge.red {
  color: #9f0712;
  background-color: #ffe2e2;
}
.badge.indigo {
  color: #372aac;
  background-color: #e0e7ff;
}
.badge.lightblue {
  color: #005f78;
  background-color: #cefafe;
}
.badge.green {
  color: #006045;
  background-color: #d0fae5;
}
/* Date cell */
.date-cell {
  color: #4a5565;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
}

/* State badge (same style as badge, kept separate class for semantics) */
.state-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  background: #dcfce7;
  color: #065f46;
  line-height: 1;
}
.state-badge.yellow {
  background: #fef9c2;
  color: #894b00;
}
/* Amount cell — right aligned and green */
.amount-cell {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}
.amount-cell.green {
  color: #16a34a;
}
.avatar-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 22px;
}
.avatar-icon.orange {
  background-color: #ffedd4;
  color: orange;
}
.avatar-icon.blue {
  background-color: #dbeafe;
  color: #155dfc;
}
.avatar-icon.red {
  color: #e7000b;
  background-color: #ffe2e2;
}
.avatar-icon.indigo {
  color: #4f39f6;
  background-color: #e0e7ff;
}
.avatar-icon.lightblue {
  color: #0092b8;
  background-color: #cefafe;
}
.avatar-icon.green {
  color: #009966;
  background-color: #d0fae5;
}
/* ////////////////////////////////////////////////////////// */
.budget-overview-card {
  grid-area: budget-overview-card;
  /* background-color: #00a63e; */
  grid-column-start: 2;
  grid-column-end: 4;
  grid-row-start: 7;
  grid-row-end: 11;
}
/* .details-link {
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}

.details-link:hover {
  color: #111827;
}

.details-link svg {
  width: 10px;
  height: 10px;
  margin-inline-start: 4px;
  fill: currentColor;
} */

/* Budget summary */
.summary {
  background: linear-gradient(to right, #eff6ff, #eef2ff);
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 16px;
  margin-block: 24px;
}

.summary-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.summary p {
  margin: 3px 0;
}

.summary .label {
  font-size: 14px;
  color: #3b82f6;
  font-weight: 500;
}

.summary .total {
  font-size: 24px;
  font-weight: 700;
  color: #1e3a8a;
}

.summary .remaining {
  font-size: 18px;
  font-weight: 600;
  color: #16a34a;
  text-align: right;
}

.progress-wrapper {
  margin-top: 12px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #4b5563;
  margin-bottom: 4px;
}

.progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 8px;
  background: linear-gradient(to right, #3b82f6, #6366f1);
  width: 84%;
  border-radius: inherit;
}

/* Budget categories */
.budget-overview-card .categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.category {
  background: #f9fafb80;
  border: 1px solid #e5e7ebcc;
  border-radius: 0.75rem;
  padding: 1rem;
  transition: all 0.2s;
}
.category:hover {
  background: #f3f4f6cc;
  border-color: #d1d5dbe6;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px #0000001a, 0 2px 4px -1px #0000000f;
}
.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.category-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box i {
  width: 18px;
  height: 18px;
}

.category-info p {
  margin: 0;
  line-height: 1.2;
}

.category-info .title {
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.category-info .sub {
  font-size: 0.75rem;
  color: #6b7280;
}

.category-right {
  text-align: right;
}

.category-right p {
  margin: 0;
  font-weight: 600;
  color: #111827;
}
.badge.yellow {
  background: #fef9c3;
  color: #854d0e;
}
.progress-small {
  height: 8px;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}
.icon-box.orange {
  background-color: #ffedd5;
  color: #ea580c;
}
.icon-box.red {
  background-color: #fee2e2;
  color: #dc2626;
}
.icon-box.pink {
  background-color: #fce7f3;
  color: #db2777;
}
.icon-box.green {
  background-color: #dcfce7;
  color: #16a34a;
}
.fill-orange {
  background: #f97316;
  width: 50%;
  height: 8px;
  border-radius: 50px;
}
.fill-red {
  background: #ef4444;
  width: 100%;
  height: 8px;
}
.fill-pink {
  background: #ec4899;
  width: 80%;
  height: 8px;
  border-radius: 50px;
}
.fill-green {
  background: #22c55e;
  width: 86%;
  height: 8px;
  border-radius: 50px;
}

/* ////////////////////////////////////////////////////////// */

.income-vs-expenses-card {
  grid-area: income-vs-expenses-card;
  /* background-color: palevioletred; */
  grid-column-start: 4;
  grid-column-end: 6;
  grid-row-start: 7;
  grid-row-end: 9;
}
.income-expenses-chart {
  display: flex;
  flex-direction: column;
}
/* Legend */
.css-chart-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-block: 1rem;
  font-size: 0.875rem;
}

.css-chart-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4b5563;
}

.css-chart-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.legend-income {
  background: #22c55e;
}

.legend-expense {
  background: #ef4444;
}

/* Chart */
.css-chart-grouped {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 180px;
  padding-bottom: 16px;
}

.css-chart-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.css-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.css-chart-bar-income,
.css-chart-bar-expense {
  width: 15px;
  border-radius: 3px 3px 0 0;
}

.css-chart-bar-income {
  background: #40c79a;
}

.css-chart-bar-expense {
  background: #ef4444;
}
.css-chart-bar-income:hover,
.css-chart-bar-expense:hover {
  opacity: 0.8;
}
.css-chart-label {
  font-size: 12px;
  color: #4b5563;
}

/* ////////////////////////////////////////////////////////// */

.account-summary-card {
  grid-area: account-summary-card;
  /* background-color: violet; */
  grid-column-start: 4;
  grid-column-end: 6;
  grid-row-start: 9;
  grid-row-end: 11;
}
.account-parent {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 18px;
}
.account-box {
  background-color: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.account-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-blue {
  background-color: #dbeafe;
  color: #2563eb;
}

.icon-green {
  background-color: #dcfce7;
  color: #16a34a;
}

.icon-purple {
  background-color: #ede9fe;
  color: #7e22ce;
}

.account-text p {
  margin: 0;
  line-height: 1.4;
}

.account-name {
  font-weight: 600;
  color: #111827;
  font-size: 15px;
}

.account-desc {
  font-size: 12px;
  color: #6b7280;
}

.account-amount {
  font-weight: 600;
  font-size: 15px;
  color: #111827;
}

.account-amount.negative {
  color: #dc2626;
}
/* ////////////////////////////////////////////////////////// */

.payment-methods-card {
  grid-area: payment-methods-card;
  /* background-color: violet; */
  grid-column-start: 6;
  grid-column-end: 8;
  grid-row-start: 7;
  grid-row-end: 11;
}
.payment-parent {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}
.card-flip {
  perspective: 1200px;
}
.card-inner {
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1);
  position: relative;
}
.card-flip:hover .card-inner {
  transform: rotateY(180deg);
}
.card-front,
.card-back {
  backface-visibility: hidden;
  border-radius: 0.75rem;
  position: relative;
  overflow: hidden;
}
.card-front {
  transform: translateZ(0);
  padding: 30px;
  color: #fff;
  box-shadow: 0 0 #0000;
  position: relative;
}
.card-front .primary-badge {
  color: #fff;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: #ffffff24;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  position: absolute;
  top: 10px;
  left: 12px;
}
.card-front .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.chip {
  width: 48px;
  height: 32px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.inner-chip {
  width: 24px;
  height: 16px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
}
.card-number {
  font-family: monospace;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.4;
  /* letter-spacing: 2px; */
  margin-bottom: 8px;
}
.card-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 14px;
}
.card-info p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}
.card-info small {
  color: #dbeafe;
  text-transform: uppercase;
  font-size: 12px;
}

/* Card fronts */
.card-front.visa {
  background-color: #372aac;
}
.card-front.mastercard {
  background-color: #c70036;
}
.card-front.paypal {
  background-color: #193cb8;
}
/* Card back */
.card-back {
  color: #fff;
  background: linear-gradient(120deg, #051026, #0b1220 45%, #0f1724);
  flex-direction: column;
  justify-content: flex-start;
  padding: 1rem;
  display: flex;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: rotateY(180deg);
}
/* Stripe and signature */
.mag-stripe {
  background: linear-gradient(90deg, #000, #111 40%, #2b2b2b);
  border-radius: 3px;
  height: 52px;
  margin-top: 6px;
  box-shadow: inset 0 6px 14px #ffffff05;
}
.card-back .microprint {
  color: #ffffff7a;
  letter-spacing: 0.6px;
  margin-top: 8px;
  font-size: 10px;
}
.signature {
  color: #111827;
  background: linear-gradient(90deg, #f8fafc, #eef2f6);
  border-radius: 4px;
  align-items: center;
  height: 36px;
  margin-top: 10px;
  padding: 6px 8px;
  font-weight: 700;
  display: flex;
  position: relative;
  overflow: hidden;
}
.scribble {
  background-image: linear-gradient(90deg, #0000000f, #0000002e, #0000000f);
  border-radius: 2px;
  width: 86%;
  height: 12px;
  transform: skew(-10deg);
}
.last4 {
  color: #000000d9;
  margin-left: 8px;
  font-family: monospace;
  font-size: 0.9rem;
}
.cvv-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 5px;
}
.cvv-writing {
  font-size: 12px;
  line-height: 1.333;
  color: #d1d5dc;
}
.cvv-box {
  color: #111827;
  letter-spacing: 1px;
  text-align: center;
  background: #fff;
  border-radius: 6px;
  min-width: 48px;
  padding: 8px 12px;
  font-weight: 700;
}
.verified {
  font-weight: 500;
  color: #05df72;
  font-size: 14px;
}
