:root {
  /* Colors */
  --color-primary: #FF7B54;      /* Bright Orange */
  --color-primary-dark: #E0603A;
  --color-primary-light: #FF9E80;
  
  --color-secondary: #9B72AA;    /* Elegant Lilac */
  --color-secondary-light: #C6A9D9;
  --color-secondary-dark: #6C4A7A;
  
  --color-bg: #FDF9FA;           /* Very light pink/gray background */
  --color-surface: #FFFFFF;
  --color-surface-hover: #F8F4F9;
  
  --color-text-main: #2C2A31;    /* Dark gray/purple for text */
  --color-text-muted: #7E7A8A;
  --color-error: #FF4D4D;
  --color-success: #4CAF50;
  
  /* Shadows */
  --shadow-sm: 0 4px 6px rgba(155, 114, 170, 0.08); /* slight lilac shadow */
  --shadow-md: 0 10px 15px rgba(155, 114, 170, 0.12);
  --shadow-lg: 0 20px 25px rgba(155, 114, 170, 0.15);
  
  /* Radius & Spacing */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--color-text-muted);
}

/* Glassmorphism Classes */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-md);
}

/* Layout */
#app {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: white;
  border-bottom: 2px solid var(--color-secondary-light);
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-main);
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-btn:hover {
  background: var(--color-surface-hover);
  color: var(--color-secondary);
}

.nav-btn.text-error {
  color: var(--color-error);
}

.nav-btn.text-error:hover {
  background: #FFF0F0;
}

/* Component: Cards */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(155, 114, 170, 0.05);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

/* Component: Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  gap: 0.5rem;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  box-shadow: 0 4px 12px rgba(255, 123, 84, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 16px rgba(255, 123, 84, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--color-secondary-light), var(--color-secondary));
  color: white;
  box-shadow: 0 4px 12px rgba(155, 114, 170, 0.3);
}

.btn-secondary:hover {
  box-shadow: 0 6px 16px rgba(155, 114, 170, 0.4);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: rgba(255, 123, 84, 0.1);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text-main);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid #EBEBEE;
  border-radius: var(--radius-sm);
  background: #FDFDFE;
  transition: var(--transition);
  color: var(--color-text-main);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-secondary-light);
  background: white;
  box-shadow: 0 0 0 3px rgba(198, 169, 217, 0.2);
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-2 { gap: 1rem; }
.gap-4 { gap: 2rem; }
.flex-column { flex-direction: column; }
.w-100 { width: 100%; }

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

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