/* Admin panel styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #111;
  color: #ddd;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

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

h1 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #00ff41;
}

h2 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #00ccff;
}

/* Login */
.login-box {
  max-width: 360px;
  margin: 100px auto;
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 30px;
  border-radius: 4px;
}

.login-box h1 {
  text-align: center;
}

/* Forms */
label {
  display: block;
  margin-bottom: 4px;
  color: #aaa;
  font-size: 13px;
}

input[type="text"],
input[type="password"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 8px 10px;
  background: #222;
  border: 1px solid #444;
  color: #eee;
  font-size: 14px;
  border-radius: 2px;
  margin-bottom: 12px;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #00ccff;
}

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

button, .btn {
  padding: 8px 18px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  border-radius: 2px;
}

.btn-primary {
  background: #00ccff;
  color: #000;
}

.btn-primary:hover {
  background: #00aadd;
}

.btn-danger {
  background: #cc2200;
  color: #fff;
}

.btn-danger:hover {
  background: #aa1100;
}

.btn-secondary {
  background: #333;
  color: #ddd;
}

.btn-secondary:hover {
  background: #444;
}

/* Sections */
.admin-section {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 4px;
}

/* Nav bar */
.admin-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #333;
}

.admin-nav a {
  color: #00ccff;
  text-decoration: none;
  margin-right: 16px;
}

/* Post list */
.post-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-bottom: 1px solid #222;
}

.post-item:last-child {
  border-bottom: none;
}

.post-item-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border: 1px solid #333;
  flex-shrink: 0;
}

.post-item-info {
  flex: 1;
  min-width: 0;
}

.post-item-title {
  font-weight: bold;
  color: #eee;
}

.post-item-meta {
  font-size: 12px;
  color: #777;
}

.post-item-actions {
  display: flex;
  gap: 6px;
}

.post-item-actions button {
  padding: 4px 10px;
  font-size: 12px;
}

/* Checkbox row */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.checkbox-row input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* Alert */
.alert {
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 2px;
  font-size: 13px;
}

.alert-error {
  background: #331111;
  border: 1px solid #cc2200;
  color: #ff6644;
}

.alert-success {
  background: #113311;
  border: 1px solid #00cc22;
  color: #44ff66;
}

.hidden {
  display: none;
}

/* File input */
input[type="file"] {
  margin-bottom: 12px;
  color: #aaa;
}

/* Inline form row */
.form-row {
  display: flex;
  gap: 12px;
}

.form-row > * {
  flex: 1;
}

/* Upload progress */
.upload-progress {
  margin-bottom: 12px;
}

.progress-bar {
  height: 6px;
  background: #333;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #00ccff;
  transition: width 0.2s;
}

.progress-text {
  font-size: 12px;
  color: #888;
}

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