/* Modern Dashboard CSS Skeleton */
body {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  background: #f8f9fb;
  color: #222;
}

.dashboard {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 300px;
  background: #fffbe6;
  padding: 2rem 1.5rem;
  box-shadow: 2px 0 16px rgba(255, 211, 108, 0.10);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-radius: 2.5rem;
  margin: 1.5rem 0 1.5rem 1.5rem;
}

.sidebar .logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar .logo img {
  height: 52px;
  border-radius: 50%;
  background: #ffd36c;
  padding: 0.5rem;
}

.sidebar .balance-card {
  background: linear-gradient(120deg, #ffd36c 70%, #fffbe6 100%);
  border-radius: 2rem;
  padding: 1.5rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 24px rgba(255, 211, 108, 0.17);
  position: relative;
  overflow: hidden;
}

.sidebar .balance-card::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.sidebar .atm-card {
  background: linear-gradient(120deg, #e66465, #9198e5 90%);
  border-radius: 2rem;
  color: #fff;
  padding: 1.5rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 32px rgba(145, 152, 229, 0.18);
  position: relative;
  overflow: hidden;
}

.sidebar .atm-card::after {
  content: '';
  position: absolute;
  bottom: 10px;
  right: 20px;
  width: 60px;
  height: 30px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 1.5rem;
}

.sidebar .latest-activity {
  background: transparent;
  border-radius: 1.5rem;
  padding: 1.2rem 1rem;
  box-shadow: 0 2px 12px rgba(255, 211, 108, 0.08);
}

.main-content {
  flex: 1;
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.charts-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.card,
.quick-actions,
.transactions-table {
  background: transparent;
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(145, 152, 229, 0.14);
  padding: 2rem 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover,
.quick-actions:hover,
.transactions-table:hover {
  box-shadow: 0 12px 40px rgba(255, 211, 108, 0.18);
  transform: translateY(-4px) scale(1.01);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  background: transparent;
  border-radius: 2rem;
  box-shadow: 0 6px 24px rgba(255, 211, 108, 0.10);
  padding: 1.2rem 0.5rem 1.2rem 0.5rem;
}

.quick-actions .action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1.1rem 0.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #fffbe6 60%, #ffd36c 100%);
  box-shadow: 0 2px 8px rgba(255, 211, 108, 0.13);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  width: 70px;
  height: 70px;
  justify-content: center;
}

.quick-actions .action:hover {
  background: linear-gradient(135deg, #ffd36c 60%, #fffbe6 100%);
  transform: scale(1.07);
}

.quick-actions .action i {
  font-size: 1.7rem;
  margin-bottom: 0.2rem;
}

.transactions-table {
  margin-top: 2rem;
}

.transactions-table table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 1.5rem;
  overflow: hidden;
}

.transactions-table th,
.transactions-table td {
  padding: 0.95rem 1.1rem;
  text-align: left;
  border-radius: 1rem;
}

.transactions-table th {
  background: #fffbe6;
  color: #d8a700;
  font-weight: 600;
}

.transactions-table tr {
  border-radius: 1rem;
}

.transactions-table tr:nth-child(even) {
  background: #f8f9fb;
}

.transactions-table tr:hover {
  background: #ffe9b3;
  transition: background 0.2s;
}

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

  .sidebar {
    width: 100%;
    padding: 1rem;
    margin: 0;
    border-radius: 0 0 1rem 1rem;
  }

  .main-content {
    padding: 1rem;
  }

  .card,
  .quick-actions,
  .transactions-table {
    border-radius: 1rem;
    padding: 0.75rem;
  }

  .quick-actions .action {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
  /* Always fix FAB bottom-right */
  .fab-mobile-corner {
    position: fixed !important;
    bottom: 1.5rem !important;
    right: 1.25rem !important;
    left: auto !important;
    z-index: 50;
  }
  /* FAB drop-up menu */
  #fabDropdownMenu {
    position: absolute;
    bottom: 4.5rem;
    right: 0;
    left: auto;
    flex-direction: column-reverse !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    border-radius: 1rem;
  }
  #fabDropdownMenu button {
    margin-bottom: 0.5rem;
  }
  #fabDropdownMenu {
    animation: dropUpMenu 0.2s cubic-bezier(.4,0,.2,1);
  }
  @keyframes dropUpMenu {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
  }
}

  /* FAB reposition for mobile */
  .fab-mobile-fix {
    bottom: 1.75rem !important;
    right: 1.25rem !important;
  }

  /* Mobile income dropdown menu */
  #incomeDropdownMenuMobile {
    min-width: 8rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.14);
    border: 1px solid #e5e7eb;
    background: #fff;
    z-index: 99;
  }
  #incomeDropdownMenuMobile button {
    padding: 0.5rem 1rem;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.95rem;
    cursor: pointer;
  }
  #incomeDropdownMenuMobile button:hover {
    background: #f0fdf4;
  }
}

  .sidebar {
    padding: 0.75rem;
  }

  .main-content {
    padding: 0.75rem;
  }

  /* Improve chart responsiveness on mobile */
  canvas {
    max-height: 200px !important;
  }

  /* Better spacing for mobile cards */
  .grid {
    gap: 0.75rem !important;
  }

  /* Improve button sizing on mobile */
  button {
    font-size: 0.875rem;
  }

  /* Better text sizing for mobile */
  h1 {
    font-size: 1.25rem !important;
  }

  h3 {
    font-size: 1rem !important;
  }

  .text-4xl {
    font-size: 1.5rem !important;
  }

  .text-2xl {
    font-size: 1.25rem !important;
  }
}