@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&display=swap');

:root {
  --bg: #f8f0e5;
  --text: #0f172a;
  --primary: #f0c330;
  --secondary: #ff8484;
  --tertiary: #9fe2bf;
  --white: #ffffff;
  
  --border: 3px solid #000000;
  --shadow: 4px 4px 0px 0px #000000;
  --shadow-hover: 2px 2px 0px 0px #000000;
  --radius: 0px; /* Neobrutalism usually has no radius, but we can do a slight one if preferred, using 0 for hard edges */
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* Base Neobrutalism Element */
.neo-box {
  background-color: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: all 0.2s ease-in-out;
}

/* Base Neobrutalism Button */
.neo-btn {
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  background-color: var(--primary);
  color: var(--text);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all 0.1s ease-in-out;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.neo-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-hover);
}

.neo-btn:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.neo-btn-secondary { background-color: var(--secondary); }
.neo-btn-tertiary { background-color: var(--tertiary); }
.neo-btn-white { background-color: var(--white); }

/* Input Fields */
.neo-input {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem;
  border: var(--border);
  background-color: var(--white);
  color: var(--text);
  width: 100%;
  outline: none;
  transition: all 0.2s;
}

.neo-input:focus {
  box-shadow: var(--shadow);
}

.neo-select {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem;
  border: var(--border);
  background-color: var(--white);
  width: 100%;
  outline: none;
  cursor: pointer;
}

.neo-select:focus {
  box-shadow: var(--shadow);
}

/* Modals & Overlays */
.neo-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.neo-modal {
  background-color: var(--white);
  border: var(--border);
  box-shadow: 8px 8px 0px 0px #000;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

/* Utilities */
.text-bold { font-weight: 800; }
.text-lg { font-size: 1.25rem; }
.text-xl { font-size: 1.5rem; }
.text-2xl { font-size: 2rem; }
.text-3xl { font-size: 2.5rem; }
.text-center { text-align: center; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Grid for wallets */
.wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

/* Typography styles for amounts */
.amount-income { color: #059669; font-weight: 800; }
.amount-expense { color: #dc2626; font-weight: 800; }

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 2px solid #000;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.badge-income { background-color: var(--tertiary); }
.badge-expense { background-color: var(--secondary); }
.badge-transfer { background-color: var(--primary); }

.logo-icon {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 2px solid #000;
  border-radius: 8px; /* Slight rounding for app icons */
}
