/* ----------------------------------------------------
   CI Color Palette & Functional Minimalist Properties
   ---------------------------------------------------- */
:root {
  --color-text: #2c2c2c;        /* Dunkelgrau */
  --color-border: #cccccc;      /* Mittelgrau */
  --color-border-light: #e5e5e5;/* Sehr helles Grau */
  --color-bg-white: #ffffff;    /* Reines Weiß */
  --color-accent: #555555;      /* Neutrales Grau für sekundäre Akzente */
  --color-hover: #f8f9fa;       /* Sehr helles Grau */
  
  --font-base-size: 17px;
  --max-width-content: 800px;
}

/* ----------------------------------------------------
   Base Reset & Layout Setup
   ---------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--font-base-size);
  color: var(--color-text);
  background-color: var(--color-bg-white);
  line-height: 1.6;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Unifying single-column container */
.app-container {
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.content-minimal {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

/* Typography - Clean & Minimalist */
h1 {
  font-size: 32px;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 20px;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 32px;
  margin-bottom: 16px;
  border-bottom: none;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 24px;
  margin-bottom: 12px;
}

p {
  margin-bottom: 16px;
  color: var(--color-text);
}

.intro-text, .instructions-text, .section-intro {
  color: var(--color-text);
  font-size: var(--font-base-size);
  margin-bottom: 24px;
}

/* ----------------------------------------------------
   Wizard Steps Flow
   ---------------------------------------------------- */
.wizard-step {
  display: none;
  width: 100%;
}

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

/* ----------------------------------------------------
   Minimalist Forms & Inputs
   ---------------------------------------------------- */
.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  font-size: var(--font-base-size);
  color: var(--color-text);
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  outline: none;
}

.form-group input:focus {
  border-color: var(--color-text);
}

/* Autocomplete local dropdown */
.dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-top: none;
  max-height: 250px;
  overflow-y: auto;
  display: none;
}

.dropdown-item {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 15px;
  border-bottom: 1px solid var(--color-border-light);
}

.dropdown-item:hover, .dropdown-item.active {
  background-color: var(--color-hover);
}

/* Clean Minimal Buttons */
.btn {
  display: inline-block;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background-color: var(--color-bg-white);
  color: var(--color-text);
  outline: none;
  text-decoration: none;
  transition: background-color 0.1s, border-color 0.1s;
}

.btn-primary {
  background-color: var(--color-text);
  color: var(--color-bg-white);
  border-color: var(--color-text);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-primary:disabled {
  background-color: var(--color-bg-white);
  color: var(--color-border);
  border-color: var(--color-border-light);
  cursor: not-allowed;
}

.btn-secondary {
  background-color: var(--color-bg-white);
  color: var(--color-text);
  border-color: var(--color-border);
}

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

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 32px;
}

/* ----------------------------------------------------
   Step 2: Autocomplete Evaluation & Selection Table
   ---------------------------------------------------- */
.banner {
  display: flex;
  align-items: center;
  padding: 0;
  margin-top: 8px;
  margin-bottom: 24px;
  background-color: transparent !important;
  border: none !important;
}

.banner-emoji {
  font-size: var(--font-base-size);
  margin-right: 12px;
}

.banner-text {
  font-size: var(--font-base-size);
  font-weight: 600;
  color: var(--color-text);
}

/* Autocomplete suggestion table */
.suggestions-table-container {
  margin-top: 16px;
  margin-bottom: 24px;
  border: 1px solid var(--color-border-light);
  width: 100%;
}

.autocomplete-table {
  width: 100%;
  border-collapse: collapse;
}

.autocomplete-table th, .autocomplete-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 15px;
}

.autocomplete-table th {
  background-color: var(--color-hover);
  color: var(--color-text);
  font-weight: 600;
}

/* Non-interactive autocomplete rows */
.autocomplete-table tr.suggestion-row-flat {
  cursor: default;
}

/* Mini thumbnail image */
.mini-thumbnail {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

/* ----------------------------------------------------
   Step 3: Subtle CSS Loading Spinner
   ---------------------------------------------------- */
.text-center {
  text-align: center;
}

.spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
}

.minimal-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--color-border-light);
  border-top-color: var(--color-text);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loader-subtitle {
  font-size: 14px;
  color: var(--color-border);
  margin-top: 12px;
}

/* ----------------------------------------------------
   Step 4: Claude-Style Split-Pane Dashboard Layout
   ---------------------------------------------------- */
.dashboard-split {
  display: flex;
  gap: 40px;
  width: 100%;
  height: calc(100vh - 140px);
  overflow: hidden;
}

.left-controls {
  flex: 1;
  min-width: 0;
  max-width: 600px;
  height: 100%;
  overflow-y: auto;
  padding-right: 15px;
}

.right-canvas {
  flex: 1.3;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--color-border-light);
  padding-left: 40px;
}

.canvas-paper {
  background-color: var(--color-bg-white);
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.canvas-header {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-light);
  background-color: var(--color-bg-white);
}

.canvas-icon {
  font-size: 20px;
  margin-right: 12px;
}

.canvas-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.canvas-actions {
  display: flex;
  gap: 8px;
}

.canvas-content {
  flex: 1;
  overflow-y: auto;
  padding: 30px 0;
}

.dashboard-section {
  margin-bottom: 40px;
}

/* Google screenshot style */
.screenshot-container {
  width: 100%;
  border: 1px solid var(--color-border-light);
  background-color: var(--color-hover);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.screenshot-img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-placeholder {
  font-size: 15px;
  color: var(--color-border);
}

/* Table-Based Social Media Selection Checklist */
.sm-checklist {
  margin-top: 12px;
  margin-bottom: 24px;
}

.sm-checklist-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--color-border-light);
}

.sm-checklist-table th, .sm-checklist-table td {
  padding: 12px 14px;
  border: 1px solid var(--color-border-light);
  font-size: 15px;
}

.sm-checklist-table th {
  background-color: var(--color-hover);
  color: var(--color-text);
  font-weight: 600;
  text-align: left;
}

.sm-checklist-table tr {
  background-color: var(--color-bg-white);
}

.sm-checklist-table td {
  vertical-align: top;
}

.sm-checklist-table .rank-num {
  font-size: 17px;
  font-weight: 600;
}

.sm-profile-item {
  line-height: 1.6;
}

.sm-profile-item strong {
  font-size: 17px;
}

.sm-profile-item .profile-link {
  color: var(--color-text);
  text-decoration: underline;
  word-break: break-all;
}

.sm-profile-item .profile-link strong {
  font-size: 15px;
  font-weight: 600;
}

.sm-profile-item .profile-snippet-text {
  display: block;
  margin-top: 6px;
  color: var(--color-text);
  font-size: 15px;
}

.no-profiles-text {
  font-style: italic;
  color: var(--color-border);
}

/* Responsiveness Media Query */
@media (max-width: 1024px) {
  .dashboard-split {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }
  
  .left-controls {
    max-width: 100%;
    width: 100%;
    height: auto;
    overflow: visible;
    padding-right: 0;
  }
  
  .right-canvas {
    width: 100%;
    height: auto;
    overflow: visible;
    border-left: none;
    padding-left: 0;
    margin-top: 40px;
    border-top: 1px solid var(--color-border-light);
    padding-top: 40px;
  }
  
  .canvas-paper {
    height: auto;
    overflow: visible;
  }
  
  .canvas-content {
    padding: 24px 0;
    overflow: visible;
  }
}

/* ----------------------------------------------------
   Markdown Rendering Styles (Clean Minimalist Theme)
   ---------------------------------------------------- */
.markdown-body {
  font-size: var(--font-base-size);
  color: var(--color-text);
  line-height: 1.6;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3 {
  color: var(--color-text);
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 16px;
}

.markdown-body h1 {
  font-size: 28px;
}

.markdown-body h2 {
  font-size: 22px;
}

.markdown-body h3 {
  font-size: 18px;
}

.markdown-body p {
  margin-bottom: 16px;
}

.markdown-body ul, .markdown-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.markdown-body li {
  margin-bottom: 6px;
}

.markdown-body code {
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 14px;
  background-color: var(--color-hover);
  padding: 2px 6px;
  border-radius: 2px;
}

/* Elegant Table formatting in report */
.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  margin-bottom: 24px;
  font-size: 15px;
}

.markdown-body table th, .markdown-body table td {
  border: 1px solid var(--color-border-light);
  padding: 10px 14px;
  text-align: left;
}

.markdown-body table th {
  background-color: var(--color-hover);
  color: var(--color-text);
  font-weight: 600;
}

/* Blockquotes / Simple native Markdown quotes */
.markdown-body blockquote {
  border-left: 4px solid var(--color-border);
  background-color: transparent;
  padding: 0 0 0 16px;
  margin: 16px 0;
  color: #555555;
}

.markdown-body blockquote p {
  margin-bottom: 0;
  font-size: 15px;
}

/* ----------------------------------------------------
   Footer Styles
   ---------------------------------------------------- */
.app-footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--color-border-light);
  font-size: 13px;
  color: var(--color-border);
  margin-top: 60px;
}
