/* Shared CSS Style for Prompt Generators */
/* Based on the website generator's design system */

:root {
  /* Color system gebaseerd op groen-natuur thema */
  --background: #f8fdf4;
  --foreground: #1c4532;
  --card: #ffffff;
  --card-foreground: #1c4532;
  --popover: #ffffff;
  --popover-foreground: #1c4532;
  --primary: #34a853;
  --primary-foreground: #ffffff;
  --secondary: #e8f5e8;
  --secondary-foreground: #1c4532;
  --muted: #f0f9f0;
  --muted-foreground: #64748b;
  --accent: #d4edda;
  --accent-foreground: #1c4532;
  --destructive: #dc2626;
  --destructive-foreground: #ffffff;
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #34a853;
  --radius: 8px;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #34a853 0%, #28a745 100%);
  --gradient-primary-hover: linear-gradient(135deg, #2d8f47 0%, #228a3a 100%);
  --gradient-secondary: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
  --gradient-background: linear-gradient(135deg, #f8fdf4 0%, #e8f5e8 100%);
  --gradient-wizard: linear-gradient(135deg, #d9ed92 0%, #b5e48c 100%);
  --gradient-success: linear-gradient(135deg, #40c057 0%, #37b24d 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Reset en basis styling */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  background: var(--gradient-background);
  color: var(--foreground);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  min-height: 100vh;
}

/* Layout container */
.container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Card styling */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

/* Navigation styling (now used as footer) */
.nav-header {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  padding: 1rem 0;
  margin-top: 2rem;
  box-shadow: var(--shadow-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-title {
  text-align: center;
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-foreground);
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  max-width: 900px;
  margin: 0 auto;
}

.nav-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--primary-foreground);
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.nav-item.current {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.nav-emoji {
  font-size: 1.2rem;
  margin-right: 0.25rem;
}

/* Header styling */
.header {
  text-align: center;
  margin-bottom: 2rem;
}

.header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 0.5rem 0;
}

.header p {
  color: var(--muted-foreground);
  font-size: 1.1rem;
  margin: 0;
}

/* Step styling */
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.2s ease-in-out;
}

.step:hover {
  box-shadow: var(--shadow-md);
}

.step.hidden {
  display: none;
}

.step.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(52, 168, 83, 0.1);
}

.step h2 {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step h3 {
  color: var(--foreground);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 1.5rem 0 0.75rem 0;
}

/* Form elements */
label,
.form-label {
  display: block;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-label {
  font-weight: 600;
  color: #2d5016;
  margin-bottom: 8px;
  font-size: 16px;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select,
.form-input,
.form-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--background);
  color: var(--foreground);
  transition: all 0.2s ease-in-out;
  margin-bottom: 1rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
  padding: 0.75rem;
  font-size: 0.9rem;
}

.form-input,
.form-textarea {
  padding: 15px;
  font-size: 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(52, 168, 83, 0.1);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #d9ed92;
  box-shadow: 0 0 0 3px rgba(217, 237, 146, 0.2);
  background: rgba(255, 255, 255, 1);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Checkbox styling */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--primary);
}

.checkbox-item label {
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

/* Base Button Styling */
button,
.nav-button {
  border: none;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: var(--shadow-sm);
}

button {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

button:hover {
  background: var(--gradient-primary-hover);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

button.secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

button.secondary:hover {
  background: var(--accent);
}

/* Option buttons (voor keuze opties) */
.options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.option {
  background: var(--secondary);
  color: var(--secondary-foreground);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: none;
}

.option:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.option.selected {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

/* Output/result styling */
.output {
  background: var(--gradient-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  max-height: 400px;
  overflow-y: auto;
}

.output h2 {
  color: var(--primary);
  margin: 0 0 1rem 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

/* Navigation buttons */
.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

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

/* Progress indicator */
.progress {
  background: var(--muted);
  border-radius: calc(var(--radius) * 2);
  height: 8px;
  margin: 1rem 0;
  overflow: hidden;
}

.progress-bar {
  background: var(--gradient-primary);
  height: 100%;
  border-radius: calc(var(--radius) * 2);
  transition: width 0.3s ease-in-out;
}

/* Utility classes */
.text-center {
  text-align: center;
}

.text-small {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.hidden {
  display: none;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.gap-2 {
  gap: 1rem;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    margin: 1rem auto;
    padding: 0 0.5rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .header h1 {
    font-size: 2rem;
  }
  
  .options {
    gap: 0.25rem;
  }
  
  .option {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .navigation {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-buttons {
    width: 100%;
    justify-content: space-between;
  }
  
  /* Navigation footer responsive */
  .nav-header {
    padding: 0.75rem 0;
    margin-top: 1.5rem;
  }
  
  .nav-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }
  
  .nav-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
  }
  
  .nav-item {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .nav-emoji {
    font-size: 1rem;
  }
}

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

.step.active {
  animation: slideIn 0.3s ease-out;
}

/* Success states */
.success {
  background: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.error {
  background: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* Loading state */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* === WIZARD SPECIFIC STYLES === */
/* Consolidated from all HTML files */

.wizard-container {
    max-width: 800px;
    margin: 50px auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.wizard-header {
    background: var(--gradient-wizard);
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.wizard-title {
    color: #2d5016;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wizard-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0;
}

/* Step Progress Indicator */
.step-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    padding: 0 30px;
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #6c757d;
    position: relative;
    transition: all 0.3s ease;
}

.step-indicator.active {
    background: var(--gradient-wizard);
    color: #2d5016;
    box-shadow: 0 4px 15px rgba(217, 237, 146, 0.4);
}

.step-indicator.completed {
    background: var(--gradient-success);
    color: white;
}

.step-indicator::after {
    content: '';
    position: absolute;
    right: -27px;
    width: 20px;
    height: 2px;
    background: #e9ecef;
    top: 50%;
    transform: translateY(-50%);
}

.step-indicator:last-child::after {
    display: none;
}

.step-indicator.completed::after {
    background: var(--gradient-success);
}

/* Step Connectors */
.step-connector {
    width: 40px;
    height: 2px;
    background: #d1d5db;
    position: relative;
    transition: all 0.3s ease;
}

.step-connector.completed {
    background: #52b69a;
}

/* Enhanced Step Indicator States */
.step-indicator.upcoming:not([style*="opacity: 0.6"]):hover {
    background: #99d98c;
    color: #184e77;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(153, 217, 140, 0.3);
}

.step-indicator:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(217, 237, 146, 0.3);
}

.step-indicator:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 237, 146, 0.3);
}

/* Wizard Content */
.wizard-step {
    display: none;
    padding: 40px;
    animation: fadeIn 0.5s ease-in-out;
}

.wizard-step.active {
    display: block;
}

.wizard-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.step-content {
    padding: 5px;
}

.step-title {
    font-size: 2rem;
    font-weight: 600;
    color: #184e77;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step-description {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0 0 2rem 0;
}

.step-label {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

/* Option Cards */
.option-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-card:hover {
    border-color: #b5e48c;
    box-shadow: 0 8px 25px rgba(181, 228, 140, 0.3);
    transform: translateY(-2px);
}

.option-card.selected {
    border-color: #d9ed92;
    background: linear-gradient(135deg, rgba(217, 237, 146, 0.1) 0%, rgba(181, 228, 140, 0.1) 100%);
    box-shadow: 0 10px 30px rgba(217, 237, 146, 0.4);
}

.option-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #d9ed92;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.option-card.selected .option-checkbox {
    background: var(--gradient-wizard);
    border-color: #b5e48c;
}

.option-card.selected .option-checkbox::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #2d5016;
    font-size: 12px;
    font-weight: bold;
}

.option-text {
    flex: 1;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
}

/* Option card header (emoji + title) */
.option-card > div:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
}

.option-emoji {
    font-size: 24px;
    flex-shrink: 0;
}

.option-title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    flex: 1;
}

.option-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

/* Form Elements - Enhanced */
.form-group {
    margin-bottom: 25px;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

/* Navigation Buttons */
.wizard-navigation,
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(249, 249, 249, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.wizard-navigation {
    padding: 30px 40px;
}

.step-navigation {
    padding: 1.5rem;
}

.nav-button {
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.nav-button.primary {
    background: var(--primary, var(--gradient-wizard));
    color: var(--primary-foreground, #2d5016);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.nav-button.primary:hover {
    background: var(--primary-hover, #1a759f);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.nav-button.secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.nav-button.secondary:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #d9ed92;
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    padding: 25px;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    background: var(--gradient-wizard);
    padding: 25px;
    border-radius: 20px 20px 0 0;
}

.modal-title {
    color: #2d5016;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}


.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #2d5016;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-button:hover {
    background: rgba(45, 80, 22, 0.1);
}


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

@keyframes slideInX {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Error States */
.error-message {
    background: linear-gradient(135deg, #ffe6e6 0%, #ffcccc 100%);
    border: 2px solid #ff9999;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    color: #d32f2f;
    font-weight: 500;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
    display: none; /* Hidden by default */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.show {
    display: flex;
    opacity: 1;
}

.error-message::before {
    content: '⚠️';
    font-size: 18px;
}

/* Success States */
.success-message {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    border: 2px solid #b5e48c;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    color: #2d5016;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

.success-message::before {
    content: '✅';
    font-size: 18px;
}

/* Responsive Design for Wizard */
@media (max-width: 768px) {
    .wizard-container {
        margin: 20px;
        border-radius: 15px;
    }
    
    .wizard-header, .step-content {
        padding: 5px;
    }
    
    .wizard-navigation {
        padding: 20px 15px;
    }
    
    .wizard-title {
        font-size: 24px;
    }
    
    .step-progress {
        gap: 10px;
        margin: 20px 0;
        padding: 0 20px;
    }
    
    .step-indicator {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .step-indicator::after {
        right: -22px;
        width: 15px;
    }
    
    .option-card {
        padding: 15px;
        margin: 8px 0;
    }
    
    .option-text {
        font-size: 14px;
    }
    
    .wizard-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-button {
        width: 100%;
        padding: 15px;
    }
    
    .modal {
        width: 95%;
        margin: 10px;
    }
    
    .modal-header, .modal-content {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 20px;
    }
}