/* Custom styles for Cashflow Tracker */

/* Mobile-first responsive design */
@media (max-width: 768px) {
  .mobile-grid {
    grid-template-columns: 1fr;
  }
  
  .mobile-full {
    width: 100%;
  }
  
  .mobile-text-sm {
    font-size: 0.875rem;
  }
}

/* Modal backdrop */
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

/* Transaction type styling */
.cash-in {
  background-color: #10b981;
  color: white;
}

.cash-out {
  background-color: #ef4444;
  color: white;
}

/* Button animations */
.btn-animate {
  transition: all 0.2s ease-in-out;
}

.btn-animate:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-animate:active {
  transform: translateY(0);
}

/* Loading spinner */
.spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Custom scrollbar for mobile */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 #f7fafc;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f7fafc;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

/* Form input focus styling */
.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
}

/* Success/Error message styling */
.alert-success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Business view toggle buttons */
.business-tab {
  transition: all 0.2s ease-in-out;
  border: 2px solid transparent;
}

.business-tab.active {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
}

.business-tab:hover:not(.active) {
  border-color: #d1d5db;
  transform: translateY(-1px);
}

/* Philippine Peso currency styling */
.peso-amount {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.025em;
}

/* Enhanced mobile responsiveness */
@media (max-width: 640px) {
  .business-tab {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
  
  .mobile-stack {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .mobile-wide {
    width: 100%;
  }
}

/* Transaction status indicators */
.transaction-indicator {
  position: relative;
  overflow: hidden;
}

.transaction-indicator::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: currentColor;
}

.cash-in-indicator::before {
  background-color: #10b981;
}

.cash-out-indicator::before {
  background-color: #ef4444;
}

/* Subtle animations */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

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