/* DynCoin Custom Styles */

:root {
  --color-income: #10b981;
  --color-expense: #ef4444;
}

/* Navigation */
.nav-btn {
  color: rgba(255, 255, 255, 0.7);
}

.nav-btn:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-btn.active {
  color: white;
  background-color: rgba(255, 255, 255, 0.2);
}

/* Page transitions */
.page {
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Transaction type buttons */
#type-income.active,
#type-income.selected {
  background-color: #10b981;
  border-color: #10b981;
  color: white;
}

#type-expense.active,
#type-expense.selected {
  background-color: #ef4444;
  border-color: #ef4444;
  color: white;
}

#income-regular.active,
#income-regular.selected {
  background-color: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

#income-extra.active,
#income-extra.selected {
  background-color: #8b5cf6;
  border-color: #8b5cf6;
  color: white;
}

/* Transaction items */
.transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.transaction-income {
  border-left: 3px solid var(--color-income);
}

.transaction-expense {
  border-left: 3px solid var(--color-expense);
}

.transaction-transfer {
  border-left: 3px solid #3b82f6;
}

.amount-income {
  color: var(--color-income);
}

.amount-expense {
  color: var(--color-expense);
}

.system-badge {
  background-color: #fef3c7;
  color: #92400e;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Goal progress */
.goal-progress {
  height: 8px;
  background-color: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.goal-progress-bar {
  height: 100%;
  background-color: #10b981;
  transition: width 0.3s ease;
}

/* Modal animations */
.modal-open {
  overflow: hidden;
}

/* Swipe to delete hint */
.swipe-hint {
  font-size: 12px;
  color: #9ca3af;
}

/* Balance colors */
.positive-balance {
  color: #10b981;
}

.negative-balance {
  color: #ef4444;
}

/* Range slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: #10b981;
  border-radius: 50%;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #10b981;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* Loading state */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Pull to refresh indicator */
.pull-to-refresh {
  text-align: center;
  padding: 10px;
  color: #9ca3af;
  font-size: 12px;
}
