* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: radial-gradient(circle at top, #171a2b 0%, #0b0c14 70%);
  color: #e6e6f0;
  min-height: 100vh;
  direction: rtl;
}

.center-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}

h1 {
  background: linear-gradient(90deg, #7c5cff, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 28px;
  margin: 0;
}

input[type="password"], input[type="text"] {
  background: #1c2033;
  border: 1px solid #2c3050;
  color: #e6e6f0;
  padding: 12px 16px;
  border-radius: 10px;
  width: 280px;
  font-size: 14px;
}

button {
  background: linear-gradient(90deg, #7c5cff, #a78bfa);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
}

button:hover {
  opacity: 0.9;
}

button.danger {
  background: linear-gradient(90deg, #f04747, #ff6b6b);
}

.error-msg {
  color: #ff6b6b;
  font-size: 13px;
  min-height: 18px;
}

/* ---- dashboard layout ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #22263f;
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.card {
  background: #171a2b;
  border: 1px solid #22263f;
  border-radius: 14px;
  padding: 18px;
}

.card .label {
  color: #9a9dc0;
  font-size: 13px;
  margin-bottom: 6px;
}

.card .value {
  font-size: 22px;
  font-weight: bold;
}

.section {
  background: #171a2b;
  border: 1px solid #22263f;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 22px;
}

.section h2 {
  margin-top: 0;
  font-size: 18px;
  color: #cfd0ee;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  text-align: right;
  padding: 8px 10px;
  border-bottom: 1px solid #22263f;
}

th {
  color: #9a9dc0;
  font-weight: normal;
}

.badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.badge.open { background: #4d3b00; color: #ffd166; }
.badge.published { background: #0e3d1f; color: #57F287; }
.badge.rejected { background: #4a0e0e; color: #ff6b6b; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  background: #22263f;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tag button {
  background: none;
  border: none;
  color: #ff6b6b;
  padding: 0;
  font-size: 14px;
  cursor: pointer;
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

select {
  background: #1c2033;
  border: 1px solid #2c3050;
  color: #e6e6f0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}

textarea {
  background: #1c2033;
  border: 1px solid #2c3050;
  color: #e6e6f0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  width: 100%;
  min-height: 80px;
  font-family: inherit;
  resize: vertical;
}

.muted {
  color: #9a9dc0;
  font-size: 13px;
}
