/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
:root {
  --color-primary: #0b1329;
  --color-primary-light: #152243;
  --color-accent: #3b82f6;
  --color-accent-hover: #2563eb;
  --color-background: #090d16;
  --color-surface: rgba(21, 34, 67, 0.7);
  --color-surface-border: #233560;
  --color-text-main: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-success: #10b981;
  --color-warning: #ef4444;
  --color-warning-light: rgba(239, 68, 68, 0.15);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--color-background);
  color: var(--color-text-main);
  line-height: 1.5;
  min-height: 100vh;
}

/* --- App Header --- */
.app-header {
  background: linear-gradient(90deg, #0b1329 0%, #152243 100%);
  border-bottom: 1px solid var(--color-surface-border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.app-header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-header__title {
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, #60a5fa, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-header__badge {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.app-header__actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn--primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-1px);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-main);
  border: 1px solid var(--color-surface-border);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn--success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
}

.btn--success:hover {
  background: linear-gradient(135deg, #059669, #047857);
}

/* --- 2-Pane Editor Layout --- */
.editor-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  grid-gap: 1.5rem;
  gap: 1.5rem;
  max-width: 1440px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
  min-height: calc(100vh - 120px);
}

@media (max-width: 1024px) {
  .editor-layout {
    grid-template-columns: 1fr;
  }
}

.editor-pane {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: 1rem;
  padding: 1.5rem;
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  display: flex;
  flex-direction: column;
}

.editor-pane__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-surface-border);
}

.editor-pane__title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --- Form Controls --- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1rem;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group--full {
  grid-column: span 2;
}

.form-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.form-input,
.form-textarea {
  background: rgba(11, 19, 41, 0.8);
  border: 1px solid var(--color-surface-border);
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
  color: var(--color-text-main);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* --- Placeholder Highlight Warnings --- */
.placeholder-warning {
  background: var(--color-warning-light);
  border: 1px solid var(--color-warning);
  color: #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: pulse 2s infinite;
}

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

.highlight-unfilled {
  color: var(--color-warning);
  font-weight: 800;
  background: rgba(239, 68, 68, 0.2);
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
}

/* --- Suggest Cards (Right Pane) --- */
.suggest-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow-y: auto;
  max-height: 580px;
  padding-right: 0.25rem;
}

.suggest-card {
  background: var(--color-primary-light);
  border: 1px solid var(--color-surface-border);
  border-radius: 0.75rem;
  padding: 1rem;
  transition: all 0.2s ease;
}

.suggest-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.suggest-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.suggest-card__score {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-success);
  background: rgba(16, 185, 129, 0.15);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
}

.suggest-card__content {
  font-size: 0.85rem;
  color: var(--color-text-main);
  line-height: 1.45;
  margin-bottom: 0.75rem;
  white-space: pre-wrap;
}

/* --- File Upload Area --- */
.file-upload-box {
  border: 2px dashed var(--color-surface-border);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  background: rgba(11, 19, 41, 0.5);
  transition: all 0.2s ease;
  margin-bottom: 1.25rem;
}

.file-upload-box:hover {
  border-color: var(--color-accent);
  background: rgba(37, 99, 235, 0.05);
}

