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

:root {
  /* Colors - Trust, Safety, Friendly */
  --primary-color: #0ea5e9; /* Sky Blue - Trust */
  --primary-dark: #0284c7;
  --secondary-color: #10b981; /* Emerald Green - Growth/Safety */
  --accent-color: #f59e0b;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Prompt', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* App Container for Mobile-first feel */
.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-color);
  position: relative;
  box-shadow: var(--shadow-lg);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Header & Top Shapes (Similar to the mockups but with our colors) */
.header-curved {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 40px 20px 60px;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 10;
}

.header-curved h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.header-curved p {
  font-size: 14px;
  opacity: 0.9;
  font-weight: 300;
}

/* Logo */
.logo-container {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  background: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  padding: 10px;
}

.logo-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Search Bar */
.search-container {
  margin: -30px 20px 20px;
  position: relative;
  z-index: 20;
}

.search-input-wrapper {
  background: var(--card-bg);
  border-radius: var(--radius-full);
  padding: 5px 20px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input-wrapper:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--primary-color);
}

.search-input-wrapper input {
  flex: 1;
  border: none;
  padding: 12px 10px;
  outline: none;
  font-size: 15px;
  background: transparent;
  color: var(--text-main);
}

.search-input-wrapper i {
  color: var(--text-muted);
  font-size: 20px;
}

/* Main Content Area */
.main-content {
  padding: 20px;
  padding-bottom: 90px; /* Space for fixed bottom navbar */
  flex: 1;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Cards (Campaigns) */
.campaign-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid transparent;
}

.campaign-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.campaign-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.campaign-school {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}

.status-badge {
  background: #dcfce7;
  color: #166534;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
}

.amount-container {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.amount-label {
  font-size: 14px;
  color: var(--text-muted);
}

.amount-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  outline: none;
  gap: 8px;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.39);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--secondary-color);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
}

.btn-block {
  width: 100%;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

/* Inputs & Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 15px;
  background: var(--bg-color);
  transition: all var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-color);
  background: var(--card-bg);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Bottom Navigation (like an app) */
.bottom-nav {
  position: fixed;
  bottom: 16px; /* Float above the bottom of the screen */
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px); /* Leaves a margin on left and right */
  max-width: 448px; /* Fit inside the 480px parent container */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 999;
  border-radius: 24px; /* Fully rounded floating dock */
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  transition: color var(--transition-fast);
}

.nav-item i {
  font-size: 24px;
}

.nav-item.active {
  color: var(--primary-color);
}

.nav-fab {
  background: var(--primary-color);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.39);
  transform: translateY(-20px);
  transition: transform var(--transition-fast);
}

.nav-fab:hover {
  transform: translateY(-23px) scale(1.05);
}

/* Animations */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-slide-up {
  animation: slideUp 0.4s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.text-primary { color: var(--primary-color); }
