:root {
  --bg: #f5f7fb;
  --sidebar: #152238;
  --sidebar-soft: #1c2d4a;
  --panel: #ffffff;
  --panel-2: #eef4ff;
  --text: #18212f;
  --muted: #6c7891;
  --blue: #3b82f6;
  --orange: #f59e0b;
  --border: #dbe4f0;
  --success: #15803d;
  --error: #b91c1c;
  --shadow: 0 14px 40px rgba(21, 34, 56, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-soft) 100%);
  color: white;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.sublogo {
  color: rgba(255,255,255,0.75);
  margin-top: -18px;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu a {
  padding: 14px 16px;
  border-radius: 14px;
  color: rgba(255,255,255,0.92);
  font-weight: 600;
}

.menu a:hover {
  background: rgba(255,255,255,0.08);
}

.side-card {
  margin-top: auto;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}

.side-chip {
  display: inline-block;
  background: rgba(245, 158, 11, 0.18);
  color: #ffd48a;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.content {
  flex: 1;
  padding: 32px;
}

.auth-layout {
  display: grid;
  place-items: center;
  padding: 32px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.auth-header h1 {
  margin: 0 0 8px;
  font-size: 34px;
}

.auth-header p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

label {
  display: block;
  margin: 14px 0 8px;
  font-size: 14px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  font-size: 15px;
  outline: none;
}

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

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
}

.btn-primary {
  margin-top: 20px;
  width: 100%;
  border: none;
  background: linear-gradient(135deg, var(--blue) 0%, #5ea1ff 100%);
  color: white;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
}

.auth-link {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
}

.auth-link a {
  color: var(--blue);
  font-weight: 700;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.topbar h1 {
  margin: 0 0 8px;
  font-size: 34px;
}

.topbar p {
  margin: 0;
  color: var(--muted);
}

.status-pill {
  background: #dcfce7;
  color: #166534;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}

.status-pill.soft {
  background: #e0ecff;
  color: #1d4ed8;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-box {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.stat-box span {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
}

.stat-box strong {
  font-size: 30px;
}

.panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feed-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.feed-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.feed-head h3 {
  margin: 8px 0 0;
  font-size: 22px;
}

.tag {
  display: inline-block;
  background: #fff3db;
  color: #b45309;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.time,
.author {
  color: var(--muted);
  font-size: 14px;
}

.feed-body {
  margin-top: 14px;
  line-height: 1.8;
  color: var(--text);
}

.flash {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 16px;
  font-weight: 700;
}

.flash.success {
  background: #ecfdf5;
  color: var(--success);
  border: 1px solid #bbf7d0;
}

.flash.error {
  background: #fef2f2;
  color: var(--error);
  border: 1px solid #fecaca;
}

@media (max-width: 900px) {
  .app-shell {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 20px;
  }

  .feed-head,
  .topbar {
    flex-direction: column;
  }
}
