/* Packages page styles */
.container.packages-section {
  padding-top: 28px;
  padding-bottom: 28px;
}

.packages-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.package-card {
  background: var(--card);
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.package-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.pkg-name {
  font-weight: 700;
  color: var(--accent);
}
.pkg-version {
  color: var(--muted);
  font-size: 0.95rem;
}
.pkg-desc {
  color: var(--muted);
  font-size: 0.95rem;
}
.pkg-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pkg-author {
  color: var(--muted);
  font-size: 0.9rem;
}

.muted {
  color: var(--muted);
}

/* Modal styles */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
}

.modal-panel {
  background: #0b0b0d;
  border-radius: 12px;
  padding: 20px;
  width: min(680px, calc(100% - 40px));
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.modal-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.modal-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

input[type="file"] {
  background: #0b0b0d;
  color: #e9ecf2;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Small responsive tweaks */
@media (max-width: 520px) {
  .packages-header {
    flex-direction: column;
    align-items: stretch;
  }
  .modal-panel {
    width: calc(100% - 24px);
  }
}
#openAdd {
  border: none;
}
