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

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
  color: #e8e8e8;
}

.admin-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.admin-header h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #fff;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}

.btn-primary {
  background: #e94560;
  color: #fff;
}

.btn-primary:hover {
  background: #ff6b6b;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
}

.btn-outline {
  background: transparent;
  color: #e94560;
  border: 1px solid #e94560;
}

.btn-outline:hover {
  background: rgba(233, 69, 96, 0.15);
}

.admin-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.section h2 {
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  color: #fff;
  font-weight: 500;
}

.icon-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 500px) {
  .icon-editor { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}

.form-group input,
.form-group textarea {
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 0.95rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

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

.slides-editor {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.slide-card {
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.slide-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.slide-card-header h3 {
  font-size: 1rem;
  font-weight: 500;
  color: #e94560;
}

.btn-remove {
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  background: rgba(233, 69, 96, 0.3);
  color: #ff6b6b;
  border: 1px solid rgba(233, 69, 96, 0.5);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-remove:hover {
  background: rgba(233, 69, 96, 0.5);
}

.slide-card-fields {
  display: grid;
  gap: 1rem;
}

.slide-preview {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: rgba(0,0,0,0.4);
  margin-top: 0.5rem;
}

.slide-actions {
  margin-top: 1rem;
}

.admin-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: #2ecc71;
  color: #fff;
  border-radius: 8px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: slideIn 0.3s ease;
  z-index: 1000;
}

@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
