:root {
  --ion-color-primary: #1e62ff; /* Blue color from design */
  --ion-color-primary-rgb: 30,98,255;
  --ion-color-primary-contrast: #ffffff;
  --ion-color-primary-contrast-rgb: 255,255,255;
  --ion-color-primary-shade: #1a56e0;
  --ion-color-primary-tint: #3572ff;
  
  --bg-color: #f5f6f9; /* Light gray background */
  --surface-color: #fff;
  --text-main: #3C3C3C;
  --text-secondary: #6C6C6C;
  --text-muted: #959595;
  --danger-color: #f44336;
  --warning-color: #FF7D00;
  --soft-bg-color: #f5f5f5;
  --primary-soft-bg: #f0f4ff;
}

body {
  background-color: var(--bg-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Custom Bottom Tab Bar using Ionic */
ion-tab-bar {
  --background: #fff;
  --border: 0;
  box-shadow: 0 -1px 5px rgba(0,0,0,0.05);
  height: 60px;
}

ion-tab-button {
  --color: #959595;
  --color-selected: var(--ion-color-primary);
  font-size: 10px;
}

ion-tab-button.center-tab-button {
  --ripple-color: transparent;
}

.center-btn-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.center-btn {
  background: #fff;
  border: 2px solid var(--ion-color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ion-color-primary);
  font-size: 28px;
}

/* Plus Popup */
.plus-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
  display: none;
  backdrop-filter: blur(2px);
}

.plus-popup-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 30px 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  padding-bottom: calc(30px + env(safe-area-inset-bottom));
}

.plus-popup-overlay.show {
  display: block;
}

.plus-popup-overlay.show .plus-popup-content {
  transform: translateY(0);
}

.popup-menu-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  margin-bottom: 15px;
  background: #fff;
  border-radius: 10px;
}

.popup-menu-item .icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f0f4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: var(--ion-color-primary);
  font-size: 24px;
}

.popup-menu-item .text-wrapper h3 {
  margin: 0 0 5px 0;
  font-size: 16px;
  color: #3C3C3C;
}

.popup-menu-item .text-wrapper p {
  margin: 0;
  font-size: 12px;
  color: #959595;
}

.popup-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 0;
  color: #959595;
  font-size: 20px;
  cursor: pointer;
}

ion-content {
  --background: var(--bg-color);
}

ion-toolbar {
  --background: var(--surface-color);
}

.text-blue {
  color: var(--ion-color-primary);
  font-weight: bold;
}

.text-gray {
  color: var(--text-muted);
}

.text-dark {
  color: var(--text-main);
}

.text-danger {
  color: var(--danger-color);
}

.text-red {
  color: var(--danger-color);
  background: #fff0f0;
}

.bg-gray {
  background: var(--soft-bg-color);
}

/* Bottom Action Bar (Shared for both pages footer) */
.bottom-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #fff;
  width: 100%;
}

.bottom-action-bar .total-info {
  display: flex;
  flex-direction: column;
}

.bottom-action-bar .total-amount {
  font-size: 14px;
  color: #3C3C3C;
  margin-bottom: 4px;
}

.bottom-action-bar .total-amount strong {
  font-size: 18px;
}

.bottom-action-bar .fee-detail-btn {
  font-size: 12px;
  color: #6C6C6C;
  display: flex;
  align-items: center;
}

.bottom-action-bar .fee-detail-btn ion-icon {
  margin-left: 2px;
  font-size: 10px;
}

.bottom-action-bar .action-buttons {
  display: flex;
  gap: 10px;
}

.bottom-action-bar .btn-outline {
  background: transparent;
  border: 1px solid #E5E5E5;
  color: #6C6C6C;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
}

.bottom-action-bar .btn-primary {
  background: #fff;
  border: 1px solid #FF7D00;
  color: #FF7D00;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
}
