* {
  box-sizing: border-box;
}

:root {
  color-scheme: light dark;
  --bg: #faf9f6;
  --text: #2b2b2b;
  --muted: #8a8a8a;
  --accent: #c1a68d;
  --error: #e57373;
  --success: #81c784;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a1a;
    --text: #f0f0f0;
    --muted: #999;
  }
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

header {
  background: var(--bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.header-user {
  font-size: 13px;
  opacity: 0.8;
}

.btn {
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  transition: all 0.2s;
}

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

.login-screen {
  max-width: 400px;
  margin: 60px auto;
  padding: 24px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.login-screen h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.login-screen p {
  margin: 0 0 20px;
  font-size: 13px;
  opacity: 0.7;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-form input {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.02);
  color: inherit;
  font-size: 13px;
}

.login-form button {
  padding: 10px 12px;
  border-radius: 6px;
  border: none;
  background: var(--accent);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
}

.login-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.login-error {
  color: var(--error);
  font-size: 12px;
}

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  overflow-x: auto;
  padding: 0 24px;
}

.tab-btn {
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 24px 0 16px;
}

.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filters select,
.filters button {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.02);
  color: inherit;
  font-size: 12px;
  cursor: pointer;
}

.filters select {
  min-width: 120px;
}

.filters button {
  font-weight: 500;
}

.filters button.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.feedback-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-type {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text);
}

.badge-status {
  color: white;
}

.badge-status.nowe {
  background: #8a8a8a;
}

.badge-status.przyjete {
  background: #5b8def;
}

.badge-status.w_trakcie {
  background: #e6b455;
}

.badge-status.naprawione {
  background: #4caf82;
}

.badge-status.odrzucone {
  background: #e05d5d;
}

.feedback-message {
  margin-bottom: 12px;
  line-height: 1.6;
}

.feedback-screenshot {
  margin: 12px 0;
  cursor: pointer;
}

.feedback-screenshot img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.feedback-admin-response {
  margin-top: 12px;
  padding: 12px;
  background: rgba(129, 199, 132, 0.1);
  border-left: 3px solid #4caf82;
  border-radius: 6px;
  font-size: 13px;
}

.feedback-admin-response-label {
  font-weight: 600;
  color: var(--success);
  margin-bottom: 4px;
}

.empty-state {
  text-align: center;
  padding: 40px 24px;
  color: var(--muted);
  font-size: 13px;
}

.changelog-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.changelog-date {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.changelog-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.changelog-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.changelog-items li {
  font-size: 13px;
  padding: 4px 0 4px 20px;
  position: relative;
}

.changelog-items li:before {
  content: '·';
  position: absolute;
  left: 8px;
}

.known-issue-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.known-issue-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.known-issue-desc {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 8px;
}

.known-issue-status {
  font-size: 11px;
  color: var(--muted);
}

.mission-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s;
}

.mission-card.active {
  background: rgba(193, 166, 141, 0.1);
  border-color: var(--accent);
}

.mission-card.inactive {
  opacity: 0.6;
}

.mission-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.mission-desc {
  font-size: 13px;
  color: var(--text);
}

.guide-text {
  font-size: 13px;
  line-height: 1.8;
}

.guide-text strong {
  font-weight: 600;
  color: var(--accent);
}

.guide-text ol,
.guide-text ul {
  padding-left: 24px;
  margin: 12px 0;
}

.guide-text li {
  margin-bottom: 8px;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: pointer;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

@media (max-width: 640px) {
  .header {
    flex-direction: column;
    gap: 12px;
  }

  .header-title {
    font-size: 16px;
  }

  .tabs {
    padding: 0 12px;
  }

  .tab-btn {
    padding: 10px 12px;
    font-size: 12px;
  }

  .container {
    padding: 12px;
  }

  .filters {
    flex-direction: column;
  }

  .filters select,
  .filters button {
    width: 100%;
  }

  .feedback-header {
    flex-direction: column;
  }

  .feedback-meta {
    width: 100%;
  }
}
