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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1 {
  font-size: 24px;
  margin-bottom: 20px;
}

nav {
  display: flex;
  gap: 10px;
}

.tab {
  padding: 10px 20px;
  border: none;
  background: #e0e0e0;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.2s;
}

.tab:hover {
  background: #d0d0d0;
}

.tab.active {
  background: #2563eb;
  color: white;
}

main {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

input[type="text"],
input[type="url"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn.primary {
  background: #2563eb;
  color: white;
}

.btn.primary:hover {
  background: #1e40af;
}

.btn.secondary {
  background: #6b7280;
  color: white;
}

.btn.secondary:hover {
  background: #4b5563;
}

.result {
  margin-top: 20px;
  padding: 15px;
  border-radius: 4px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}

.result.error {
  background: #fef2f2;
  border-color: #fecaca;
}

.hidden {
  display: none;
}

.articles-grid {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

.article-card {
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
}

.article-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.article-card .meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 15px;
}

.article-card .status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status.draft {
  background: #fef3c7;
  color: #92400e;
}

.status.qa_passed {
  background: #dbeafe;
  color: #1e40af;
}

.status.approved {
  background: #d1fae5;
  color: #065f46;
}

.status.published {
  background: #e0e7ff;
  color: #3730a3;
}

.article-card .actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}
