/* css/styles.css */

/* Give the list a minimum height so you can drop items into it even if empty */
#journal-list {
    min-height: 100px;
    border: 2px dashed #dee2e6;
    background-color: #f8f9fa;
}

/* Visual cues for dragging */
.journal-item {
    cursor: default;
    background-color: white;
    border: 1px solid #ddd;
    margin-bottom: 0.5rem;
}

.handle {
    cursor: grab;
    color: #6c757d;
    padding: 0 10px;
}

.handle:active {
    cursor: grabbing;
}

/* The style applied to the item actively being dragged */
.sortable-ghost {
    opacity: 0.4;
    background-color: #cff4fc;
    border: 1px dashed #0dcaf0;
}

/* --- Dashboard Specific Styles --- */
.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;
  padding: 10px 15px;
}

.sidebar .nav-link.active {
  color: #0d6efd;
  background-color: #e9ecef;
}

.navbar-brand {
  background-color: rgba(0, 0, 0, .25);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

@media (max-width: 767.98px) {
  .sidebar {
    top: 5rem; 
  }
}

/* Add hover effect to catalog buttons */
.add-page-btn:hover .hover-overlay {
    opacity: 1 !important;
}

.hover-overlay {
    transition: opacity 0.2s ease-in-out;
    border-radius: 4px; /* Match button border radius */
}