// Styles for Modules List widget

.modules-list-card {
  @extend .page-list-card;
}

.modules-title-bar {
  @extend .page-title-bar;
}

.modules-title {
  @extend .page-title;
}

.modules-list {
  @extend .page-list;
}

.modules-list .empty-state {
  @extend %page-list-empty-state;
}

.modules-list li {
  @extend %page-list-item;
}

.modules-tabs {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

.modules-tab {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.modules-tab.active {
  border-bottom: 2px solid currentColor;
  font-weight: bold;
}

.module-details {
  @extend .page-details;
}

.module-name-row {
  @extend .page-name-row;
}

.module-name {
  @extend .page-name;
}

.module-actions {
  @extend .page-actions;
}

.module-meta {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #555;
}

.module-toggle-btn {
  background: #f6f6f6;
  border: none;
  border-radius: 5px;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 0.85rem;
}


.module-upload-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.module-upload-box {
  background: white;
  padding: 20px;
  border-radius: 6px;
  text-align: center;
  width: 300px;
}

.module-upload-box.dragover {
  border: 2px dashed #888;
}
