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

body {
  font-family: 'Inter', sans-serif;
  background: #1a1a2e;
  color: #eee;
  min-height: 100vh;
}

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

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #333;
  margin-bottom: 20px;
}

.admin-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

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

.preview-btn {
  padding: 10px 20px;
  background: #2d2d44;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.preview-btn:hover {
  background: #3d3d54;
}

.save-btn {
  padding: 10px 20px;
  background: #4a90d9;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.save-btn:hover {
  background: #3a80c9;
}

.admin-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.nav-btn {
  padding: 12px 24px;
  background: #2d2d44;
  color: #aaa;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-btn:hover {
  background: #3d3d54;
  color: #fff;
}

.nav-btn.active {
  background: #4a90d9;
  color: white;
}

.admin-content {
  background: #252538;
  border-radius: 12px;
  padding: 30px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-content h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.section-desc {
  color: #888;
  margin-bottom: 25px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #aaa;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  background: #1a1a2e;
  border: 1px solid #444;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4a90d9;
}

.color-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.section-subtitle {
  margin: 30px 0 20px;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 1.1rem;
  color: #ccc;
}

.form-group select {
  width: 100%;
  padding: 12px 15px;
  background: #1a1a2e;
  border: 1px solid #444;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
}

.form-group select:focus {
  outline: none;
  border-color: #4a90d9;
}

.color-input-group input[type="color"] {
  width: 50px;
  height: 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.color-input-group input[type="text"] {
  flex: 1;
  max-width: 150px;
}

.add-btn {
  padding: 12px 24px;
  background: #2d2d44;
  color: #4a90d9;
  border: 2px dashed #4a90d9;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 15px;
}

.add-btn:hover {
  background: #3d3d54;
}

.add-btn.small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.item-card {
  background: #1a1a2e;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-info h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.item-info p {
  font-size: 0.85rem;
  color: #888;
}

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

.edit-btn, .delete-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}

.edit-btn {
  background: #3d3d54;
  color: #fff;
}

.edit-btn:hover {
  background: #4d4d64;
}

.delete-btn {
  background: #5c2a2a;
  color: #ff8888;
}

.delete-btn:hover {
  background: #6c3a3a;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #252538;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content.modal-large {
  max-width: 700px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #333;
}

.modal-header h3 {
  font-size: 1.1rem;
}

.close-modal {
  background: none;
  border: none;
  color: #888;
  font-size: 1.5rem;
  cursor: pointer;
}

.close-modal:hover {
  color: #fff;
}

.modal-body {
  padding: 20px;
}

.modal-body h4 {
  margin: 20px 0 15px;
  font-size: 1rem;
  color: #aaa;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid #333;
}

.cancel-btn {
  padding: 10px 20px;
  background: #3d3d54;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

.cancel-btn:hover {
  background: #4d4d64;
}

.option-item {
  background: #1a1a2e;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
}

.option-item .form-group {
  margin-bottom: 12px;
}

.option-item .form-group:last-child {
  margin-bottom: 0;
}

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

.option-header span {
  font-weight: 500;
  color: #aaa;
}

.remove-option {
  background: none;
  border: none;
  color: #ff6666;
  font-size: 1.2rem;
  cursor: pointer;
}

.embed-code-container {
  margin-bottom: 30px;
}

.embed-code-container h3 {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #aaa;
}

.embed-code-container textarea {
  width: 100%;
  height: 150px;
  padding: 15px;
  background: #1a1a2e;
  border: 1px solid #444;
  border-radius: 8px;
  color: #4a90d9;
  font-family: monospace;
  font-size: 0.85rem;
  resize: vertical;
}

.copy-btn {
  margin-top: 10px;
  padding: 10px 20px;
  background: #4a90d9;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

.copy-btn:hover {
  background: #3a80c9;
}

.embed-options {
  background: #1a1a2e;
  border-radius: 10px;
  padding: 20px;
}

.embed-options h3 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #aaa;
}

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #4a90d9;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 1001;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: #d94a4a;
}

@media (max-width: 768px) {
  .admin-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .admin-nav {
    justify-content: center;
  }

  .item-card {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}