.admin-main {
  padding-top: 80px;
  min-height: 100vh;
}

.admin-container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  gap: 2rem;
  padding: 2rem;
}
@media (max-width: 768px) {
  .admin-container {
    flex-direction: column;
    padding: 1rem;
  }
}

.admin-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: white;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.admin-badge i {
  font-size: 0.9rem;
}

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .admin-sidebar {
    width: 100%;
  }
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 768px) {
  .admin-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.75rem;
    gap: 0.75rem;
  }
  .admin-nav::-webkit-scrollbar {
    display: none;
  }
}

.admin-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  white-space: nowrap;
  position: relative;
}
.admin-nav-btn i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}
.admin-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}
.admin-nav-btn.active {
  background: #0ea5e9;
  color: white;
}
@media (max-width: 768px) {
  .admin-nav-btn .nav-text {
    display: none;
  }
}
@media (max-width: 768px) {
  .admin-nav-btn {
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 1rem;
    min-width: 70px;
    gap: 0.35rem;
  }
  .admin-nav-btn i {
    font-size: 1.25rem;
    width: auto;
  }
  .admin-nav-btn::after {
    content: attr(data-mobile-label);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
}
@media (max-width: 480px) {
  .admin-nav-btn {
    min-width: 60px;
    padding: 0.6rem 0.75rem;
  }
  .admin-nav-btn::after {
    font-size: 0.6rem;
  }
}

.admin-actions {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (max-width: 768px) {
  .admin-actions {
    flex-direction: row;
  }
}

.admin-export-btn,
.admin-import-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  font-size: 0.85rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.admin-export-btn:hover,
.admin-import-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #0ea5e9;
}
@media (max-width: 768px) {
  .admin-export-btn,
  .admin-import-btn {
    flex: 1;
  }
}

.admin-content {
  flex: 1;
  min-width: 0;
}

.admin-section {
  display: none;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-section.active {
  display: block;
}

.section-header-admin {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.section-header-admin h2 {
  color: #f1f5f9;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-header-admin h2 i {
  color: #0ea5e9;
}

.add-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #0ea5e9;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.add-btn:hover {
  background: #0284c7;
  transform: translateY(-1px);
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
@media (max-width: 768px) {
  .items-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.item-card {
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: all 0.2s ease;
}
.item-card:hover {
  border-color: rgba(14, 165, 233, 0.3);
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .item-card {
    padding: 1rem;
    border-radius: 0.75rem;
  }
  .item-card:hover {
    transform: none;
  }
  .item-card:active {
    transform: scale(0.98);
    border-color: rgba(14, 165, 233, 0.3);
  }
}

.item-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.item-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.15);
  border-radius: 0.75rem;
  color: #0ea5e9;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.item-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

.item-info {
  flex: 1;
  min-width: 0;
}
.item-info h4 {
  color: #f1f5f9;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.item-info p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 1rem;
  background: #0ea5e9;
  color: white;
}
.item-badge.coming-soon {
  background: #f59e0b;
}
.item-badge.under-dev {
  background: #f59e0b;
}

.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.item-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 0.25rem;
}

.item-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.item-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.item-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}
.item-action-btn.edit-btn:hover {
  border-color: #0ea5e9;
  color: #0ea5e9;
}
.item-action-btn.docs-btn:hover {
  border-color: #22c55e;
  color: #22c55e;
}
.item-action-btn.delete-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
}
@media (max-width: 768px) {
  .item-action-btn {
    padding: 0.75rem 0.5rem;
    min-height: 44px;
    font-size: 0.85rem;
  }
  .item-action-btn i {
    font-size: 1rem;
  }
}
@media (max-width: 768px) and (max-width: 400px) {
  .item-action-btn span {
    display: none;
  }
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
}
.modal.active {
  opacity: 1;
  visibility: visible;
}
@media (max-width: 768px) {
  .modal {
    padding: 0;
    align-items: flex-start;
  }
}

.modal-content {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-content.modal-large {
  max-width: 700px;
}
.modal-content.modal-fullscreen {
  max-width: 1200px;
  height: 90vh;
  display: flex;
  flex-direction: column;
}
@media (max-width: 768px) {
  .modal-content {
    max-width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    margin: 0;
  }
  .modal-content.modal-large {
    max-width: 100%;
  }
  .modal-content.modal-fullscreen {
    max-width: 100%;
    height: 100vh;
  }
}
@media (max-width: 480px) {
  .modal-content {
    border-radius: 0;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  z-index: 10;
}
.modal-header h3 {
  color: #f1f5f9;
  font-size: 1.25rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .modal-header {
    padding: 1rem;
  }
  .modal-header h3 {
    font-size: 1.1rem;
  }
}

.modal-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #f1f5f9;
  font-size: 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}
.modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}
@media (max-width: 768px) {
  .modal-close {
    width: 44px;
    height: 44px;
    font-size: 1.75rem;
  }
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  bottom: 0;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  z-index: 10;
}
@media (max-width: 768px) {
  .modal-footer {
    padding: 1rem;
    flex-direction: column-reverse;
    gap: 0.75rem;
  }
  .modal-footer button {
    width: 100%;
    min-height: 44px;
  }
}

form {
  padding: 1.5rem;
}
@media (max-width: 768px) {
  form {
    padding: 1rem;
  }
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  color: #f1f5f9;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.form-group input[type=text],
.form-group input[type=url],
.form-group input[type=password],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  color: #f1f5f9;
  font-size: 16px;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input[type=text]::placeholder,
.form-group input[type=url]::placeholder,
.form-group input[type=password]::placeholder,
.form-group textarea::placeholder,
.form-group select::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.form-group input[type=text]:focus,
.form-group input[type=url]:focus,
.form-group input[type=password]:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #0ea5e9;
  background: rgba(255, 255, 255, 0.08);
}
@media (max-width: 768px) {
  .form-group input[type=text],
  .form-group input[type=url],
  .form-group input[type=password],
  .form-group textarea,
  .form-group select {
    padding: 0.875rem 1rem;
    min-height: 44px;
  }
}
.form-group textarea {
  min-height: 100px;
  resize: vertical;
}
.form-group select {
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-help {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.5rem 0;
}
.checkbox-label input[type=checkbox] {
  width: 22px;
  height: 22px;
  accent-color: #0ea5e9;
  cursor: pointer;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .checkbox-label input[type=checkbox] {
    width: 24px;
    height: 24px;
  }
}
.checkbox-label span {
  color: rgba(255, 255, 255, 0.8);
}

.icon-selector {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 1rem;
}
@media (max-width: 768px) {
  .icon-selector {
    padding: 0.75rem;
  }
}

.icon-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .icon-options {
    gap: 0.375rem;
  }
}

.icon-option {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.icon-option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}
.icon-option.active {
  border-color: #0ea5e9;
  background: rgba(14, 165, 233, 0.15);
  color: #0ea5e9;
}
@media (max-width: 768px) {
  .icon-option {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
}

.custom-icon-input label {
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.5) !important;
  margin-bottom: 0.4rem !important;
}
.custom-icon-input input {
  font-size: 0.85rem !important;
  padding: 0.5rem 0.75rem !important;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 768px) {
  .form-actions {
    flex-direction: column-reverse;
    gap: 0.75rem;
    position: sticky;
    bottom: 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    margin: 0 -1rem -1rem;
    padding: 1rem;
    border-radius: 0;
  }
  .form-actions button {
    width: 100%;
    min-height: 44px;
  }
}

.btn-primary {
  padding: 0.75rem 1.5rem;
  background: #0ea5e9;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
}
.btn-primary:hover {
  background: #0284c7;
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-warning {
  padding: 0.75rem 1.5rem;
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
}
.btn-warning:hover {
  background: rgba(245, 158, 11, 0.3);
}

.btn-cancel {
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
}

.docs-editor {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
@media (max-width: 768px) {
  .docs-editor {
    flex-direction: column;
  }
}

.docs-editor-sidebar {
  width: 250px;
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  display: flex;
  flex-direction: column;
}
.docs-editor-sidebar h4 {
  color: #f1f5f9;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 768px) {
  .docs-editor-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .docs-editor-sidebar h4 {
    margin-bottom: 0.75rem;
  }
}

.docs-sections-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (max-width: 768px) {
  .docs-sections-list {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.375rem;
    padding-bottom: 0.5rem;
  }
  .docs-sections-list::-webkit-scrollbar {
    height: 4px;
  }
  .docs-sections-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
  }
}

.docs-section-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 0.5rem;
}
.docs-section-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
}
.docs-section-item.active {
  border-color: #0ea5e9;
  background: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
}
.docs-section-item.dragging {
  opacity: 0.5;
  border: 1px dashed #0ea5e9;
}
.docs-section-item.drag-over {
  border-color: #0ea5e9;
  background: rgba(14, 165, 233, 0.2);
}
.docs-section-item .section-drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.3);
  cursor: grab;
  flex-shrink: 0;
}
.docs-section-item .section-drag-handle:active {
  cursor: grabbing;
}
.docs-section-item .section-drag-handle:hover {
  color: rgba(255, 255, 255, 0.6);
}
.docs-section-item .section-label {
  flex: 1;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.docs-section-item .section-order-controls {
  display: flex;
  gap: 0.125rem;
  flex-shrink: 0;
}
.docs-section-item .section-order-controls button {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: all 0.15s ease;
}
.docs-section-item .section-order-controls button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: #0ea5e9;
}
.docs-section-item .section-order-controls button:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}
.docs-section-item .section-actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}
.docs-section-item .section-actions button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 0.25rem;
}
.docs-section-item .section-actions button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}
.docs-section-item .section-actions button.delete-section:hover {
  color: #ef4444;
}
@media (max-width: 768px) {
  .docs-section-item {
    flex: 0 0 auto;
    min-width: 140px;
    max-width: 180px;
    padding: 0.6rem 0.75rem;
  }
  .docs-section-item .section-drag-handle {
    display: none;
  }
  .docs-section-item .section-label {
    font-size: 0.8rem;
  }
  .docs-section-item .section-order-controls button {
    min-width: 32px;
    min-height: 32px;
  }
  .docs-section-item .section-actions {
    display: none;
  }
}

.add-section-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  margin-top: 1rem;
  background: rgba(14, 165, 233, 0.15);
  border: 1px dashed rgba(14, 165, 233, 0.4);
  border-radius: 0.5rem;
  color: #0ea5e9;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
}
.add-section-btn:hover {
  background: rgba(14, 165, 233, 0.25);
  border-style: solid;
}
@media (max-width: 768px) {
  .add-section-btn {
    margin-top: 0.5rem;
    padding: 0.6rem 1rem;
  }
}

.docs-editor-main {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 768px) {
  .docs-editor-main {
    padding: 1rem;
  }
}

.no-section-selected {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
  text-align: center;
}

.settings-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .settings-content {
    gap: 1rem;
  }
}

.settings-card {
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
}
.settings-card h3 {
  color: #f1f5f9;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.settings-card h3 i {
  margin-right: 0.5rem;
  color: #0ea5e9;
}
.settings-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.settings-card.settings-card-primary {
  border-color: #0ea5e9;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(30, 41, 59, 0.9) 100%);
}
@media (max-width: 768px) {
  .settings-card {
    padding: 1rem;
    border-radius: 0.75rem;
  }
  .settings-card h3 {
    font-size: 1rem;
  }
  .settings-card p {
    font-size: 0.85rem;
  }
}

.publish-steps {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.8;
  margin: 1rem 0 1.5rem;
  padding-left: 1.5rem;
}
.publish-steps li {
  margin-bottom: 0.5rem;
}
.publish-steps code {
  background: rgba(14, 165, 233, 0.2);
  color: #0ea5e9;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-family: "Fira Code", "Consolas", monospace;
  font-size: 0.85rem;
}
.publish-steps strong {
  color: #f1f5f9;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}
.btn-large i {
  font-size: 1.25rem;
}

.settings-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .settings-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  .settings-actions button {
    width: 100%;
  }
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  left: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: #22c55e;
  color: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}
.toast.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.toast.error {
  background: #ef4444;
}
.toast i {
  font-size: 1.25rem;
  flex-shrink: 0;
}
@media (min-width: 769px) {
  .toast {
    left: auto;
    max-width: 400px;
  }
}
@media (max-width: 480px) {
  .toast {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }
}

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: rgba(255, 255, 255, 0.5);
}
.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}
.empty-state h4 {
  color: #f1f5f9;
  margin-bottom: 0.5rem;
}
.empty-state p {
  font-size: 0.9rem;
}

.admin-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  font-size: 0.85rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}
.admin-logout-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
}
@media (max-width: 768px) {
  .admin-logout-btn {
    flex: 1;
  }
}

.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.login-container {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
@media (max-width: 480px) {
  .login-container {
    padding: 1.5rem;
    border-radius: 1rem;
  }
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}
.login-header i {
  font-size: 3rem;
  color: #0ea5e9;
  margin-bottom: 1rem;
  display: block;
}
.login-header h2 {
  color: #f1f5f9;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.login-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}
@media (max-width: 480px) {
  .login-header {
    margin-bottom: 1.5rem;
  }
  .login-header i {
    font-size: 2.5rem;
  }
  .login-header h2 {
    font-size: 1.5rem;
  }
}

.login-form .form-group {
  margin-bottom: 1.5rem;
}
.login-form .form-group label {
  display: block;
  color: #f1f5f9;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.password-input-wrapper {
  position: relative;
}
.password-input-wrapper input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  color: #f1f5f9;
  font-size: 1rem;
  transition: all 0.2s ease;
}
.password-input-wrapper input:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}
.password-input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.password-input-wrapper i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
}

.login-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  text-align: center;
}

.login-btn {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  border: none;
  border-radius: 0.75rem;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}
.login-btn:active {
  transform: translateY(0);
}

.login-footer {
  margin-top: 1.5rem;
  text-align: center;
}
.login-footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}
.login-footer a:hover {
  color: #0ea5e9;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.toolbar-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-right: 0.5rem;
}

.toolbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.375rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
}
.toolbar-btn:hover {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: white;
}
.toolbar-btn i {
  font-size: 0.9rem;
}

.form-help {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  line-height: 1.6;
}
.form-help code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 0.8rem;
  color: #38bdf8;
}
.form-help strong {
  color: #f1f5f9;
}

.code-options {
  margin-top: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.theme-settings {
  margin-top: 1rem;
}

.theme-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.theme-preset {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}
.theme-preset span:last-child {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}
.theme-preset:hover {
  background: rgba(255, 255, 255, 0.1);
}
.theme-preset.active {
  border-color: #0ea5e9;
  background: rgba(14, 165, 233, 0.15);
}
.theme-preset.active span:last-child {
  color: #0ea5e9;
}

.theme-preview {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-preview.theme-default {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
}
.theme-preview.theme-ocean {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}
.theme-preview.theme-forest {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}
.theme-preview.theme-sunset {
  background: linear-gradient(135deg, #f97316, #ea580c);
}
.theme-preview.theme-midnight {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}
.theme-preview.theme-custom {
  background: linear-gradient(135deg, #ec4899, #db2777);
  color: white;
  font-size: 1rem;
}

.custom-theme-colors {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.color-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.color-row:last-child {
  margin-bottom: 0;
}

.color-input {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.color-input label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}
.color-input input[type=color] {
  width: 100%;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.375rem;
  cursor: pointer;
  background: transparent;
  padding: 2px;
}
.color-input input[type=color]::-webkit-color-swatch-wrapper {
  padding: 2px;
}
.color-input input[type=color]::-webkit-color-swatch {
  border-radius: 0.25rem;
  border: none;
}

.unpublished-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #f59e0b;
  color: #0f172a;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  margin-left: 0.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
.admin-status {
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0.5rem 0;
}

.sync-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.sync-dot.synced {
  background: #22c55e;
}
.sync-dot.pending {
  background: #f59e0b;
  animation: pulse 2s infinite;
}

.github-setup {
  margin-top: 1rem;
}
.github-setup .form-group {
  margin-bottom: 1rem;
}

.token-input-group {
  display: flex;
  gap: 0.5rem;
}
.token-input-group input {
  flex: 1;
}

.btn-icon {
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  color: #f1f5f9;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-icon:hover {
  background: rgba(255, 255, 255, 0.15);
}

.github-status {
  margin-top: 1rem;
}

.status-connected {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 0.5rem;
  color: #22c55e;
}
.status-connected i {
  font-size: 1.25rem;
}
.status-connected span {
  flex: 1;
}

.btn-link {
  background: none;
  border: none;
  color: #0ea5e9;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
}
.btn-link:hover {
  text-decoration: underline;
}

.publish-status {
  margin-bottom: 1rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
}
.status-indicator i {
  font-size: 1.25rem;
}
.status-indicator.status-synced {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #22c55e;
}
.status-indicator.status-pending {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.settings-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 1rem;
}
.settings-note i {
  margin-right: 0.5rem;
}

.preview-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 26px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-switch input:checked + .toggle-slider {
  background: #0ea5e9;
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 26px;
  transition: 0.3s;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-label {
  color: #f1f5f9;
  font-weight: 500;
}

/*# sourceMappingURL=admin.css.map */
