:root {
  --primary-color: #f5b82e; /* Gold for accent */
  --primary-hover: #e0a320; 
  --bg-color: #ffffff; /* White */
  --card-bg: rgba(255, 255, 255, 0.95); /* Light card */
  --card-border: rgba(0, 0, 0, 0.1);
  --text-primary: #111827; /* Dark Gray */
  --text-secondary: #4b5563; /* Medium Gray */
  --success: #22c55e;
  --danger: #ef4444;
  --glass-blur: 16px;
  
  font-family: 'Inter', system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light;
  color: var(--text-primary);
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(at 0% 0%, rgba(245, 184, 46, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(245, 184, 46, 0.05) 0px, transparent 50%);
  background-attachment: fixed;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#root {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.5rem; }

/* Layouts */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.mobile-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.responsive-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .responsive-container {
    max-width: 1000px;
    padding: 3rem 2rem;
  }
}

/* Cards (Glassmorphism) */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.5s ease-out forwards;
}

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

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1.5rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

@media (max-width: 767px) {
  .mobile-hidden {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .desktop-hidden {
    display: none !important;
  }
}

/* Sidebar Layout */
.vendor-layout-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vendor-sidebar {
  width: 100%;
  background: #f9fafb;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 1rem;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  overflow-x: auto;
}

.vendor-main-content {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

@media (min-width: 768px) {
  .vendor-layout-wrapper {
    flex-direction: row;
  }
  
  .vendor-sidebar {
    width: 260px;
    border-right: 1px solid rgba(0,0,0,0.1);
    border-bottom: none;
    padding: 2rem 1rem;
    flex-direction: column;
    overflow-x: hidden;
  }

  .vendor-main-content {
    padding: 2rem;
  }
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input, .form-select {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(245, 184, 46, 0.2);
}

.form-select option {
  background-color: #ffffff;
  color: #111827;
}

/* Nav Links Animated Underline */
.nav-link {
  position: relative;
  text-decoration: none;
  display: inline-block;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  width: 100%;
}

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

.btn-primary {
  background: var(--primary-color);
  color: #0A192F;
  box-shadow: 0 4px 14px 0 rgba(245, 184, 46, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(245, 184, 46, 0.4);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Badges / Tags */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tag {
  background: rgba(245, 184, 46, 0.15);
  color: #f5b82e;
  border: 1px solid rgba(245, 184, 46, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.tag-remove {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.tag-remove:hover {
  color: #111827;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Review Generator UI specific */
.review-box {
  background: #f9fafb;
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 1.5rem 0;
  color: var(--text-primary);
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.review-box::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-size: 4rem;
  line-height: 1;
  color: rgba(0,0,0,0.05);
  font-family: serif;
}

/* Option Buttons */
.option-btn {
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.02);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.option-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.option-btn.selected {
  border: 2px solid var(--primary-color);
  background: rgba(245, 184, 46, 0.15);
  color: var(--primary-color);
  font-weight: 500;
}

.questions-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .questions-container {
    flex-direction: row;
    gap: 2rem;
  }
  
  .question-column {
    flex: 1;
    min-width: 0;
  }
}

.rating-stars {
  color: #fbbf24; /* Amber 400 */
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--success);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 50;
  animation: slideUp 0.3s ease-out forwards;
}

.error-text {
  color: var(--danger);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}
