@import "tailwindcss";

:root {
  --bg-primary: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border-color: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --accent-blue: #2563eb;
  --accent-purple: #7c3aed;
  --accent-green: #059669;
  --accent-yellow: #d97706;
  --accent-red: #dc2626;
  --wallet-bg: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
  --input-bg: #ffffff;
  --input-border: #cbd5e1;
}

.dark {
  --bg-primary: #0b0f19;
  --bg-card: #121826;
  --bg-card-hover: #1c2438;
  --border-color: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-yellow: #f59e0b;
  --accent-red: #ef4444;
  --wallet-bg: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #312e81 100%);
  --input-bg: rgba(11, 15, 25, 0.7);
  --input-border: rgba(255, 255, 255, 0.12);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  margin: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light mode mesh background */
body:not(.dark) {
  background-image: 
    radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(124, 58, 237, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Dark mode mesh background */
body.dark {
  background-image: 
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.12) 0px, transparent 50%);
  background-attachment: fixed;
}

.fintech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .fintech-card {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.fintech-card-hover:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -10px rgba(37, 99, 235, 0.15);
}

.gradient-wallet {
  background: var(--wallet-bg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.gradient-wallet::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  transform: rotate(30deg);
  pointer-events: none;
}

.fintech-input {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-main);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  width: 100%;
  transition: all 0.2s;
}

.fintech-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.fintech-btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.35);
}

.fintech-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.45);
}

.fintech-badge-success {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.dark .fintech-badge-success {
  color: #34d399;
}

.fintech-badge-pending {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.dark .fintech-badge-pending {
  color: #fbbf24;
}

.fintech-badge-failed {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.dark .fintech-badge-failed {
  color: #f87171;
}

/* Numeric PIN Pad Modal */
.pin-pad-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.pin-pad-btn:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: var(--accent-blue);
  transform: scale(1.05);
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  transition: all 0.2s;
}

.pin-dot.filled {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.6);
}

/* ===== SIDEBAR NAVIGATION ===== */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
}

.sidebar-link:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.sidebar-link-active {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-blue);
  font-weight: 600;
}

.dark .sidebar-link-active {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
}

.sidebar-link-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  border-radius: 0 4px 4px 0;
  background: var(--accent-blue);
}

.sidebar-icon {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  font-size: 0.875rem;
}

/* Gradient used on the logo icon */
.gradient-bg {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}
