:root {
  /* Colors mapping from RN app */
  --primary: #4CAF50;
  --primary-dark: #388E3C;
  --background: #F8F9FA;
  --surface: #FFFFFF;
  --surface-container: #F0F3F1;
  --on-background: #1C1D1C;
  --on-surface: #1C1D1C;
  --text-secondary: #5C605D;
  --text-tertiary: #8E928F;
  --outline-variant: #DDE2DF;
  --error: #BA1A1A;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

body {
  background-color: var(--background);
  color: var(--on-background);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background Blobs for premium aesthetic */
.background-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.5;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background-color: rgba(76, 175, 80, 0.2);
  top: -100px;
  right: -100px;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background-color: rgba(200, 230, 201, 0.4);
  bottom: 10%;
  left: -50px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.header {
  text-align: center;
  margin-bottom: 40px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.logo-icon {
  color: var(--primary);
  width: 32px;
  height: 32px;
}

.header h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--on-background);
}

.subtitle {
  color: var(--text-secondary);
  font-size: 16px;
}

/* Glassmorphism Card */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.form-section {
  margin-bottom: 32px;
}

.form-section h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--on-surface);
  border-bottom: 1px solid var(--outline-variant);
  padding-bottom: 8px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--outline-variant);
  padding-bottom: 8px;
}

.section-header h2 {
  border: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.full-width {
  grid-column: 1 / -1;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flex-row-center {
  flex-direction: row;
  align-items: center;
}

label {
  font-size: 14px;
  font-weight: 600;
  color: var(--on-surface);
}

input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--outline-variant);
  background-color: var(--surface);
  font-size: 15px;
  color: var(--on-surface);
  transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

textarea {
  resize: vertical;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
}

input[type="checkbox"] {
  width: auto;
  accent-color: var(--primary);
}

/* Dynamic List Items */
.dynamic-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background-color: var(--surface-container);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--outline-variant);
  animation: slideIn 0.3s ease;
}

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

.list-item .inputs {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-icon {
  background: none;
  border: none;
  color: var(--error);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background-color: rgba(186, 26, 26, 0.1);
}

/* Buttons */
button {
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: var(--radius-xl);
  font-size: 16px;
  font-weight: 600;
  width: 100%;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.btn-secondary {
  background-color: var(--surface-container);
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
}

.btn-secondary:hover {
  background-color: rgba(76, 175, 80, 0.1);
}

.form-actions {
  margin-top: 40px;
}

/* Overlays & Toasts */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.overlay.hidden {
  display: none;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--outline-variant);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: white;
  padding: 16px 24px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.hidden {
  opacity: 0;
  transform: translate(-50%, 100px);
  pointer-events: none;
}

/* Responsive */
@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .glass-card {
    padding: 20px;
  }
}
