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

body {
  font-family: Arial, sans-serif;
  background: #111;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 12px;
  position: relative;
}

#particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.admin-container {
  width: 100%;
  max-width: 580px;
  position: relative;
  z-index: 1;
}

.login-card,
.editor-card {
  background: #1c1c1c;
  border: 1px solid #2e2e2e;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  padding: 36px 32px;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.admin-logo h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.error-msg {
  background: #2a1a1a;
  color: #f87171;
  border: 1px solid #4a2a2a;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

.hidden {
  display: none !important;
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

label {
  font-size: 11px;
  font-weight: 700;
  color: #888;
  display: block;
  margin-bottom: 5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 11px 14px;
  background: #242424;
  border: 1.5px solid #333;
  border-radius: 7px;
  font-size: 14px;
  color: #f0f0f0;
  outline: none;
  transition: border-color 0.2s;
  font-family: Arial, sans-serif;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
  color: #555;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #fff;
}

.btn-primary {
  padding: 13px 24px;
  background: #fff;
  color: #111;
  border: none;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.btn-primary:hover {
  background: #ddd;
}

.btn-danger {
  padding: 9px 18px;
  background: #2e2e2e;
  color: #f87171;
  border: 1px solid #4a2a2a;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-danger:hover {
  background: #3a2020;
}

.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
}

.editor-header .admin-logo {
  margin-bottom: 0;
}

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.tab {
  flex: 1;
  padding: 10px;
  background: #242424;
  border: 1.5px solid #333;
  border-radius: 7px;
  color: #888;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.tab:hover {
  border-color: #555;
  color: #ccc;
}

.tab.active {
  background: #fff;
  border-color: #fff;
  color: #111;
}

.tab-links {
  margin-bottom: 20px;
  text-align: right;
}

.site-link {
  font-size: 12px;
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}

.site-link:hover {
  color: #fff;
}

.form-section {
  margin-bottom: 24px;
}

.form-section h3 {
  font-size: 11px;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2a2a2a;
}

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

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
  padding-top: 8px;
}

.form-actions .btn-primary {
  width: auto;
}

.save-status {
  font-size: 13px;
  color: #86efac;
  font-weight: 700;
}
