/* HamyonimAI Styles - Theo AI Minimalist Apple/Linear Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --bg-deep: #09090b;
  --bg-card: #121216;
  --bg-card-subtle: #18181b;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --accent-emerald: #10b981;
  --accent-neon: #34d399;
}

body, button, input, select, textarea {
  font-family: var(--font-sans) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.015em;
}

/* Crisp Clean Headings and Numeric Typography */
h1, h2, h3, h4, h5, h6,
.font-bold,
.font-extrabold,
.font-black,
strong,
b {
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em;
}

.font-semibold {
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
}

.font-medium {
  font-family: var(--font-sans) !important;
  font-weight: 500 !important;
}

/* Theo AI Sleek Dark Backgrounds and Surfaces */
body.bg-slate-950,
body.bg-zinc-950 {
  background-color: var(--bg-deep) !important;
}

/* Glassmorphic card styling */
.glass-card {
  background: rgba(18, 18, 26, 0.68) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 10px 32px 0 rgba(0, 0, 0, 0.45), inset 0 1px 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.glass-card-hover {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-hover:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6), inset 0 1px 1px 0 rgba(255, 255, 255, 0.14) !important;
}

/* Theo AI Date Group Header */
.theo-date-header {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #a1a1aa;
  padding: 14px 4px 6px 4px;
}

/* Theo AI Glass Transaction Row */
.theo-tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(20, 20, 30, 0.58) !important;
  backdrop-filter: blur(18px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.35), inset 0 1px 0 0 rgba(255, 255, 255, 0.08) !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.theo-tx-row:hover {
  background: rgba(30, 30, 44, 0.72) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-1px);
}

.theo-tx-row:active {
  transform: scale(0.985);
  background: rgba(38, 38, 54, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

/* Theo AI Glass Avatar Bubble */
.theo-avatar-bubble {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.16) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* Audio wave pulse */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.3;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

.recording-pulse {
  animation: pulse-ring 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

/* Subtle scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(71, 85, 105, 0.6);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.8);
}

/* AI Glow effect */
.ai-glow {
  position: relative;
}
.ai-glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, #10b981 0%, #6366f1 50%, #ec4899 100%);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.4;
  filter: blur(8px);
  transition: opacity 0.3s ease;
}
.ai-glow:hover::after {
  opacity: 0.7;
}

/* Tab active indicator */
.tab-active {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: #10b981;
}

/* Audio Canvas visualizer */
#audioVisualizer {
  width: 100%;
  height: 64px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
}

/* Toast container */
#toastContainer {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  animation: slide-up 0.3s ease-out;
}
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================================= */
/*   LIGHT MODE (KUNDUZGI REJIM) THEME STYLES                */
/* ========================================================= */
html:not(.dark) {
  color-scheme: light;
}

html:not(.dark) body {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

/* Headers and Navigation */
html:not(.dark) header {
  background-color: rgba(255, 255, 255, 0.92) !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

html:not(.dark) nav {
  background-color: rgba(255, 255, 255, 0.96) !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}

/* Cards and Surfaces */
html:not(.dark) .glass-card {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

html:not(.dark) .bg-slate-950 {
  background-color: #f8fafc !important;
}

html:not(.dark) .bg-slate-900,
html:not(.dark) .bg-slate-900\/80,
html:not(.dark) .bg-slate-900\/90,
html:not(.dark) .bg-slate-900\/60 {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.04);
}

html:not(.dark) .bg-slate-800,
html:not(.dark) .bg-slate-800\/60,
html:not(.dark) .bg-slate-800\/80 {
  background-color: #f1f5f9 !important;
}

/* Borders */
html:not(.dark) .border-slate-800,
html:not(.dark) .border-slate-800\/80,
html:not(.dark) .border-slate-800\/60,
html:not(.dark) .border-slate-700,
html:not(.dark) .border-slate-700\/80,
html:not(.dark) .border-slate-700\/60 {
  border-color: #e2e8f0 !important;
}

/* Typography in Light Mode */
html:not(.dark) .text-white {
  color: #0f172a !important;
}

html:not(.dark) .text-slate-100,
html:not(.dark) .text-slate-200,
html:not(.dark) .text-slate-300 {
  color: #1e293b !important;
}

html:not(.dark) .text-slate-400 {
  color: #64748b !important;
}

html:not(.dark) .text-slate-500 {
  color: #94a3b8 !important;
}

/* Form Controls in Light Mode */
html:not(.dark) input[type="text"],
html:not(.dark) input[type="number"],
html:not(.dark) input[type="date"],
html:not(.dark) input[type="password"],
html:not(.dark) select,
html:not(.dark) textarea {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

html:not(.dark) input::placeholder,
html:not(.dark) textarea::placeholder {
  color: #94a3b8 !important;
}

/* Quick Chips */
html:not(.dark) .mob-chip {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
  border-color: #e2e8f0 !important;
}

/* Modals */
html:not(.dark) .fixed.inset-0.bg-slate-950\/80 {
  background-color: rgba(15, 23, 42, 0.45) !important;
}

/* Canvas Visualizers */
html:not(.dark) #audioVisualizer,
html:not(.dark) #mobAudioVisualizer {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

/* Mobile Bottom Navigation */
.nav-tab-btn {
  -webkit-tap-highlight-color: transparent;
}
.nav-tab-btn:active {
  transform: scale(0.92);
}
.nav-icon-box {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
html:not(.dark) nav.safe-bottom-nav {
  background-color: rgba(255, 255, 255, 0.94) !important;
  border-top-color: #e2e8f0 !important;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.06) !important;
}
html:not(.dark) .nav-tab-btn.text-slate-400 {
  color: #64748b !important;
}
html:not(.dark) .nav-tab-btn.text-emerald-400 {
  color: #059669 !important;
}
html:not(.dark) .nav-dot {
  background-color: #059669 !important;
}

/* Bottom sheet modal slide up animation */
#mobModalQuickAdd:not(.hidden) > div,
#mobModalTxDetails:not(.hidden) > div,
#mobModalSubscription:not(.hidden) > div,
#mobModalDebt:not(.hidden) > div,
#mobModalDebtPayment:not(.hidden) > div,
#mobModalDebtReminder:not(.hidden) > div,
#mobModalGoal:not(.hidden) > div,
#mobModalAddGoalMoney:not(.hidden) > div,
#mobModalRecurring:not(.hidden) > div,
#mobModalCreateGap:not(.hidden) > div,
#mobModalGapDetail:not(.hidden) > div,
#modalMobAuth:not(.hidden) > div,
#mobModalBalance:not(.hidden) > div,
#mobModalCategoryDetails:not(.hidden) > div,
#mobModalClearHistory:not(.hidden) > div {
  animation: mob-sheet-slide-up 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mob-sheet-slide-up {
  from {
    transform: translateY(100%);
    opacity: 0.8;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ========================================================= */
/*   DARK GLASSMORPHISM SYSTEM (APPLE / VISIONOS STYLE)      */
/* ========================================================= */

/* Tactile micro-interaction bounce */
.tap-bounce {
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.tap-bounce:active {
  transform: scale(0.97);
}

/* Central FAB */
#mobFabAdd {
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}
#mobFabAdd:hover {
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.5);
}

/* FinTech Hero Glassmorphism Card */
.fintech-hero-card {
  position: relative;
  background: linear-gradient(135deg, rgba(28, 28, 40, 0.72) 0%, rgba(14, 14, 22, 0.88) 100%) !important;
  backdrop-filter: blur(28px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7), inset 0 1px 2px 0 rgba(255, 255, 255, 0.22) !important;
  overflow: hidden;
}

/* Shimmer overlay on Hero Card */
.fintech-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

/* Radial Emerald Glow inside Hero Card */
.fintech-hero-card::after {
  content: '';
  position: absolute;
  top: -45px;
  right: -45px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, rgba(16, 185, 129, 0) 70%);
  pointer-events: none;
}

/* Glass Panels & Surfaces */
.glass-panel,
.bg-zinc-900\/40,
.bg-zinc-900\/30,
.bg-slate-900\/40 {
  background: rgba(18, 18, 26, 0.65) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4), inset 0 1px 0 0 rgba(255, 255, 255, 0.09) !important;
}

/* Glass Interactive Buttons & Small Cards */
.glass-panel-interactive,
.bg-zinc-900\/90,
.bg-zinc-900\/80,
.bg-zinc-900\/70,
.bg-zinc-900\/60,
.bg-zinc-900\/50 {
  background: rgba(24, 24, 34, 0.6) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 0 rgba(255, 255, 255, 0.09) !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.glass-panel-interactive:hover,
.bg-zinc-900\/90:hover,
.bg-zinc-900\/80:hover {
  background: rgba(34, 34, 48, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

.glass-panel-interactive:active,
.bg-zinc-900\/90:active {
  transform: scale(0.975);
  background: rgba(42, 42, 58, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
}

/* Glass Inner Subtle Pill/Badge */
.bg-zinc-950\/60,
.bg-zinc-950\/50,
.bg-zinc-950\/40 {
  background: rgba(12, 12, 18, 0.55) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06) !important;
}

/* Glass Modal Bottom Sheets */
.fixed.inset-0.bg-black\/80 {
  background-color: rgba(6, 6, 10, 0.7) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

#mobModalQuickAdd > div,
#mobModalTxDetails > div,
#mobModalSubscription > div,
#mobModalDebt > div,
#mobModalDebtPayment > div,
#mobModalDebtReminder > div,
#mobModalGoal > div,
#mobModalAddGoalMoney > div,
#mobModalRecurring > div,
#mobModalCreateGap > div,
#mobModalGapDetail > div,
#modalMobAuth > div,
#mobModalBalance > div,
#mobModalCategoryDetails > div,
#mobModalClearHistory > div {
  background: rgba(14, 14, 22, 0.88) !important;
  backdrop-filter: blur(36px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(36px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.24) !important;
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.8), inset 0 1px 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* Glass Form Controls & Inputs */
input[type="text"],
input[type="number"],
input[type="password"],
input[type="date"],
select,
textarea {
  background: rgba(18, 18, 26, 0.6) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  transition: all 0.2s ease !important;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  background: rgba(26, 26, 38, 0.8) !important;
  border-color: rgba(16, 185, 129, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.35) !important;
}

/* Glass Segmented Control Bar */
.bg-zinc-900\/60,
.bg-zinc-900\/80 {
  background: rgba(18, 18, 26, 0.65) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Anime.js Hardware Acceleration & Micro-Motion */
.anime-stagger-item {
  will-change: transform, opacity;
  transform: translateZ(0);
}

.anime-pressable {
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}
.anime-pressable:active {
  transform: scale(0.94);
}

.voice-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 9999px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, rgba(16, 185, 129, 0) 70%);
}


