.navbar-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Page Header */
.page-title {
  font-size: 2rem;
  font-weight: 300;
  color: #212529;
  margin-bottom: 0.25rem;
}

.page-subtitle {
  color: #6c757d;
  margin-bottom: 0;
}

/* Status Badge */
.status-badge {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-weight: 500;
}

.status-published {
  background: #e8f5e8;
  color: #388e3c;
}

.status-draft {
  background: #f5f5f5;
  color: #616161;
}

/* Section Titles */
.section-title {
  font-size: 1.25rem;
  font-weight: 400;
  color: #212529;
  margin-bottom: 1rem;
}

/* Floating Labels */
.form-floating > label {
  color: #6c757d;
  font-weight: 400;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: #212529;
  font-weight: 500;
}

.form-control, .form-select {
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: #495057;
  box-shadow: 0 0 0 0.2rem rgba(73, 80, 87, 0.15);
}

/* Small labels */
.form-label.small {
  font-size: 0.875rem;
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.25rem;
}

/* Top Section - компактная */
.top-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

/* Items Section - компактная */
.items-count {
  background: #e9ecef;
  color: #495057;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-weight: 500;
}

/* Items List - табличный вид */
.items-list {
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
}

.item-row {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e9ecef;
  background: white;
  margin-bottom: 1px;
  transition: all 0.2s ease;
  cursor: grab;
}

.item-row:hover {
  background: #f8f9fa;
}

.item-row.sortable-ghost {
  opacity: 0.4;
}

.item-row.sortable-chosen {
  background: #e3f2fd;
}

.item-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Drag handle */
.item-drag-handle {
  color: #adb5bd;
  cursor: grab;
  padding: 0.25rem;
  margin-right: 0.5rem;
  display: flex;
  align-items: center;
}

.item-drag-handle:hover {
  color: #495057;
}

.item-drag-handle:active {
  cursor: grabbing;
}

.item-number {
  background: #495057;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  min-width: 32px;
  text-align: center;
  flex-shrink: 0;
  margin-right: 0.75rem;
}

.item-content {
  flex: 1;
  min-width: 0;
}

.item-text {
  font-weight: 500;
  color: #212529;
  margin-bottom: 0.125rem;
  line-height: 1.3;
  font-size: 0.95rem;
}

.item-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.75rem;
  color: #6c757d;
}

.type-label {
  background: #e9ecef;
  color: #495057;
  padding: 0.0625rem 0.375rem;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 500;
}

.required-label {
  background: #ffebee;
  color: #c62828;
  padding: 0.0625rem 0.375rem;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 500;
}

.options-preview {
  font-style: italic;
  color: #6c757d;
  font-size: 0.7rem;
}

.item-actions {
  flex-shrink: 0;
  margin-left: 0.75rem;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

/* Move buttons */
.move-buttons {
  display: flex;
  gap: 0.125rem;
  margin-right: 0.25rem;
}

.move-buttons .btn {
  padding: 0.25rem 0.375rem;
  font-size: 0.75rem;
  line-height: 1;
}

/* Reorder info */
.reorder-info {
  background: #e3f2fd;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #1565c0;
}

.reorder-info i {
  margin-right: 0.5rem;
}

/* Empty state - компактная */
.empty-state-compact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  color: #6c757d;
  font-size: 0.875rem;
}

.empty-state-compact i {
  font-size: 1.25rem;
  color: #adb5bd;
}

/* Actions Section */
.actions-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
}

.actions-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.actions-grid .btn {
  display: flex;
  align-items: center;
  text-align: left;
  padding: 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.actions-grid .btn i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.action-title {
  font-weight: 500;
  color: inherit;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.action-desc {
  font-size: 0.875rem;
  color: #6c757d;
  margin: 0;
  line-height: 1.3;
}

.actions-grid .btn-dark .action-desc {
  color: rgba(255, 255, 255, 0.8);
}

/* Basic Info Section - сворачиваемая */
.basic-info-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1rem 1.5rem;
}

.basic-info-section [role="button"] {
  cursor: pointer;
  user-select: none;
}

.basic-info-section [role="button"]:hover {
  opacity: 0.8;
}

.basic-info-section .bi-chevron-down {
  transition: transform 0.3s ease;
  font-size: 0.875rem;
}

.basic-info-section [aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
}

.basic-info-form {
  padding-top: 0.75rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  background: #f8f9fa;
  border-radius: 12px;
}

.empty-state i {
  font-size: 3rem;
  color: #adb5bd;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 400;
  color: #495057;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: #6c757d;
  margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .add-item-section {
    position: static;
  }
}

@media (max-width: 768px) {
  .page-header .d-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .item-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .actions-grid .btn {
    width: 100%;
  }
}