/* ==========================================================================
   Editor Portal — Unit 209
   Modern, light, clean aesthetic
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. RESET / BASE
   -------------------------------------------------------------------------- */

:root {
  --u209-bg: #f7f8fa;
  --u209-panel-bg: #ffffff;
  --u209-border: #dcdfe4;
  --u209-text: #2a2f36;
  --u209-text-light: #6b7280;
  --u209-primary: #2d6cdf;
  --u209-primary-hover: #1f4fb0;
  --u209-success: #2e8b57;
  --u209-error: #c0392b;
  --u209-radius: 8px;
  --u209-shadow: 0 2px 6px rgba(0,0,0,0.06);
  --u209-transition: 0.18s ease;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--u209-bg);
  color: var(--u209-text);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   1. HEADER
   -------------------------------------------------------------------------- */

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: var(--u209-panel-bg);
  border-bottom: 1px solid var(--u209-border);
  box-shadow: var(--u209-shadow);
}

.editor-header-title {
  font-size: 1.6rem;
  font-weight: 600;
}

.editor-header-subtitle {
  font-size: 0.95rem;
  color: var(--u209-text-light);
  margin-top: 4px;
}

.editor-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #e8f0fe;
  color: var(--u209-primary);
  border-radius: 999px;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   2. MAIN LAYOUT
   -------------------------------------------------------------------------- */

.editor-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 32px;
}

.editor-panel {
  background: var(--u209-panel-bg);
  border: 1px solid var(--u209-border);
  border-radius: var(--u209-radius);
  padding: 24px;
  box-shadow: var(--u209-shadow);
}

.editor-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.editor-panel-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.editor-panel-meta {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--u209-text-light);
}

/* --------------------------------------------------------------------------
   3. FORM ELEMENTS
   -------------------------------------------------------------------------- */

.editor-field-group {
  margin-bottom: 20px;
}

.editor-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.editor-input,
.editor-select,
.editor-file-input,
.editor-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--u209-border);
  border-radius: var(--u209-radius);
  font-size: 1rem;
  background: #fff;
  transition: border var(--u209-transition);
}

.editor-input:focus,
.editor-select:focus,
.editor-file-input:focus,
.editor-textarea:focus {
  border-color: var(--u209-primary);
  outline: none;
}

.editor-textarea {
  min-height: 100px;
  resize: vertical;
}

.editor-help {
  font-size: 0.85rem;
  color: var(--u209-text-light);
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */

button,
.btn-primary,
.btn-ghost,
.btn-xs {
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  border-radius: var(--u209-radius);
  transition: background var(--u209-transition), color var(--u209-transition);
}

.btn-primary {
  background: var(--u209-primary);
  color: #fff;
  padding: 10px 18px;
}

.btn-primary:hover {
  background: var(--u209-primary-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--u209-text);
  padding: 8px 14px;
}

.btn-ghost:hover {
  background: #f0f2f5;
}

.btn-xs {
  padding: 4px 8px;
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   5. SUBMISSION LIST
   -------------------------------------------------------------------------- */

.editor-submission-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.editor-submission-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--u209-border);
  border-radius: var(--u209-radius);
  background: #fff;
  box-shadow: var(--u209-shadow);
}

.editor-submission-title {
  font-weight: 600;
}

.editor-submission-meta {
  font-size: 0.85rem;
  color: var(--u209-text-light);
  margin-top: 4px;
}

.editor-submission-status {
  font-weight: 600;
  text-transform: capitalize;
}

.approved-label {
  color: var(--u209-success);
}

.rejected-label {
  color: var(--u209-error);
}

.withdrawn-label {
  color: var(--u209-text-light);
}

/* --------------------------------------------------------------------------
   6. TOASTS
   -------------------------------------------------------------------------- */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.toast {
  padding: 12px 18px;
  border-radius: var(--u209-radius);
  color: #fff;
  font-size: 0.95rem;
  box-shadow: var(--u209-shadow);
  opacity: 1;
  transition: opacity 0.4s ease;
}

.toast-info {
  background: var(--u209-primary);
}

.toast-success {
  background: var(--u209-success);
}

.toast-error {
  background: var(--u209-error);
}

.toast.fade-out {
  opacity: 0;
}

/* --------------------------------------------------------------------------
   7. FOOTER
   -------------------------------------------------------------------------- */

.editor-footer {
  text-align: center;
  padding: 24px;
  font-size: 0.9rem;
  color: var(--u209-text-light);
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .editor-main {
    grid-template-columns: 1fr;
  }
}
