/* Toggle Switch Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #eaf0ff;
  transition: .4s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #4f6df5;
  transition: .4s;
  border-radius: 50%;
}
.switch input:checked + .slider {
  background-color: #4f6df5;
}
.switch input:checked + .slider:before {
  transform: translateX(20px);
  background-color: #fff;
}

.transaction-row {
  cursor: pointer;
}

/* ...existing dashboard styles... */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}
body {
  background: linear-gradient(135deg, #eef3ff, #f7f9ff);
  padding: 40px;
  color: #2c3e50;
}
.dashboard {
  max-width: 1200px;
  margin: auto;
}
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.top-header h1 {
  font-size: 28px;
  margin-bottom: 5px;
}
.top-header p {
  color: #7f8c8d;
}
.user-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #dfe6ff;
}
.icon {
  background: white;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.card h4 {
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 10px;
}
.card h2 {
  font-size: 24px;
  margin-bottom: 8px;
}
.positive {
  color: #2ecc71;
  font-size: 14px;
}
.neutral {
  color: #3498db;
  font-size: 14px;
}
.section {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.chart-container {
  position: relative;
  height: 300px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
thead {
  text-align: left;
  color: #7f8c8d;
  font-size: 14px;
}
th, td {
  padding: 15px 10px;
  border-bottom: 1px solid #f1f1f1;
}
.amount {
  font-weight: bold;
  color: #27ae60;
}
.btn {
  background: #4f6df5;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: 0.2s ease;
}
.btn:hover {
  opacity: 0.9;
}
.btn.small {
  padding: 6px 12px;
  font-size: 13px;
}
.badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  margin-right: 8px;
}
.badge.blue {
  background: #eaf0ff;
  color: #4f6df5;
}
.badge.red {
  background: #ffeaea;
  color: #e74c3c;
}

#notificationSidebar {
  position: fixed;
  top: 0;
  right: -340px;
  width: 340px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 16px rgba(44,62,80,0.10);
  z-index: 200;
  padding: 32px 24px;
  transition: right 0.3s ease-in-out;
}
#notificationSidebar.open {
  right: 0;
}
#notificationSidebar.closed {
  right: -340px;
}

/* Hide scrollbar for notification sidebar content */
#notificationSidebar div[style*="overflow-y:auto"]::-webkit-scrollbar {
  display: none;
}
#notificationSidebar div[style*="overflow-y:auto"] {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
