/* Stack & Grid Components */
.stack {
  display: grid;
  gap: 18px;
}
.summary {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}
.summary--activity {
  border-left: 3px solid var(--accent-2);
}
.summary--system {
  border-left: 3px solid var(--accent-2);
}
.summary--storage {
  border-left: 3px solid var(--accent-2);
}
.summary__title {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.summary__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

/* Edit Panel Components */
.edit-panel {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.edit-panel__left {
  display: grid;
  gap: 18px;
}
@media (max-width: 1100px) {
  .edit-panel {
    grid-template-columns: 1fr;
  }
}
.edit-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.edit-block.is-disabled {
  opacity: 0.45;
  filter: grayscale(0.2);
}
.edit-block.is-disabled .btn,
.edit-block.is-disabled input,
.edit-block.is-disabled .edit-table {
  pointer-events: none;
}
.edit-block__title {
  font-weight: 600;
  margin-bottom: 12px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
}

/* Status File Component */
.status-file--processing {
  border-color: rgba(99, 102, 241, 0.4);
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.1), transparent);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.2);
  position: relative;
  overflow: hidden;
}
.status-file--processing::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: #6366f1;
  box-shadow: 0 0 8px #6366f1;
}

/* Edit Mode Components */
.edit-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 1200px) {
  .edit-mode {
    grid-template-columns: 1fr;
  }
}
.edit-mode__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.85);
}
.edit-mode__item.is-selected {
  border-color: rgba(99, 102, 241, 0.8);
  box-shadow: inset 3px 0 0 #6366f1;
}
.edit-mode__label {
  font-weight: 600;
}
.edit-mode__desc {
  font-size: 12px;
  color: #94a3b8;
}

/* Edit List & Actions */
.edit-list {
  display: grid;
  gap: 10px;
}
.edit-list__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.edit-list__header .edit-item__meta {
  font-size: 12px;
  color: #94a3b8;
}
.edit-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.edit-actions .btn {
  padding: 6px 10px;
  font-size: 12px;
}
.edit-list__items {
  display: grid;
  gap: 8px;
}

/* Button Components */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 1px solid rgba(0, 224, 146, 0.3);
  border-radius: 10px;
  color: #02150a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 195, 122, 0.3);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-primary i {
  width: 18px;
  height: 18px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-icon:hover {
  border-color: var(--accent);
  background: rgba(0, 195, 122, 0.08);
}
.btn-icon i {
  width: 20px;
  height: 20px;
}
.btn-sm {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-sm i {
  width: 16px;
  height: 16px;
}

/* Badge Components */
.badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
}
.badge--ready {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.badge--uploaded {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}
