/* Admin-specific styles */

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 48px 0 0;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 48px);
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: auto;
}

.sidebar .nav-link {
  font-weight: 500;
  color: #333;
}

.sidebar .nav-link.active {
  color: #2470dc;
}

/* Content area */
.main-content {
  padding-top: 1.5rem;
}

/* Page header */
.page-header {
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 1.5rem;
}

/* Rich text editor customization */
.ck-editor__editable {
  min-height: 200px;
  max-height: 500px;
  overflow-y: auto;
}

.ck.ck-editor__main > .ck-editor__editable {
  border-bottom-left-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

.ck.ck-toolbar {
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
}

/* Content preview */
.content-preview {
  min-height: 200px;
  padding: 1rem;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
}

/* Status badges */
.badge.bg-draft {
  background-color: #ffc107;
  color: #212529;
}

.badge.bg-published {
  background-color: #198754;
}

.badge.bg-archived {
  background-color: #6c757d;
}

/* Page tree */
.page-tree-item {
  padding-left: 1.25rem;
}

.page-tree-item-root {
  padding-left: 0;
}

/* Form improvements */
.form-label {
  font-weight: 500;
}

.form-text {
  font-size: 0.875rem;
}

/* Card improvements */
.card {
  margin-bottom: 1.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
  background-color: rgba(0, 0, 0, 0.03);
  font-weight: 500;
}

/* Utility classes */
.cursor-pointer {
  cursor: pointer;
}

.border-dashed {
  border-style: dashed !important;
}

/* Coats management */
.coat-image-preview {
  max-height: 300px;
  object-fit: contain;
  border-radius: 0.25rem;
}

.coat-thumbnail {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 0.25rem;
}

@media (max-width: 767.98px) {
  .coats-filters .col-md-3 {
    margin-bottom: 1rem;
  }
}
