/* Cash In modal (loaded from modal/cash-in-modal.html) - scoped */
#cashInModal.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}
#cashInModal .modal-content {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: cashInModalSlideIn 0.3s ease;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}
@keyframes cashInModalSlideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
#cashInModal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding: 15px;
  border-bottom: 2px solid rgba(237, 32, 71, 0.1);
}
#cashInModal .modal-title {
  font-size: 24px;
  font-weight: 600;
  background: linear-gradient(135deg, #ed2047, #f26225);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
#cashInModal .modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
#cashInModal .modal-close:hover {
  background: rgba(237, 32, 71, 0.1);
  color: #ed2047;
  transform: rotate(90deg);
}
#cashInModal .modal-body {
  padding: 0 30px;
  overflow-y: auto;
  max-height: calc(80vh - 160px);
}
#cashInModal .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px;
  border-top: 1px solid rgba(237, 32, 71, 0.1);
}
#cashInModal .btn-cancel {
  padding: 10px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
#cashInModal .btn-cancel:hover { border-color: #ccc; background: #f8f9fa; }
#cashInModal .btn-save {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(to right, #ed2047, #f26225);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
#cashInModal .btn-save:hover {
  background: linear-gradient(to right, #d91a3d, #e55a1f);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(237, 32, 71, 0.3);
}
#cashInModal .btn-save:disabled { background: #d1d5db; cursor: not-allowed; transform: none; opacity: 0.6; }

/* Cash In balance item and toggle */
#cashInModal .cashin-balance-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
#cashInModal .cashin-balance-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
#cashInModal .cashin-toggle {
  position: relative;
  width: 60px;
  height: 30px;
  background: #ccc;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}
#cashInModal .cashin-toggle.active {
  background: #28a745;
}
#cashInModal .cashin-toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
#cashInModal .cashin-toggle.active .cashin-toggle-slider {
  transform: translateX(30px);
}
