.asset-detail-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.asset-detail-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 0 32px 0;
}

.asset-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.asset-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.asset-subtitle {
  font-size: 1.1rem;
  color: #888;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.asset-section {
  margin-bottom: 32px;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 18px;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 32px;
}

.property-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: none;
  padding: 0;
  min-width: 0;
}

.property-label {
  font-size: 0.97rem;
  color: #666;
  font-weight: 500;
  margin-bottom: 4px;
}

.property-value {
  font-size: 1.09rem;
  color: #222;
  word-break: break-word;
}

/* Full width for tag fields or long text */
.property-item.full-width {
  grid-column: 1 / -1;
}

.editable-field {
  width: 100%;
}

@media (max-width: 768px) {
  .property-grid {
    grid-template-columns: 1fr;
  }
}

/* History Timeline Styles */
.history-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem 0;
}

.history-item {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  background-color: var(--card);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.history-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.history-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.history-item-date {
  font-weight: 500;
  color: var(--foreground);
}

.history-item-user {
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.history-item-changes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.history-change {
  display: flex;
  flex-direction: column;
  background-color: var(--secondary);
  border-radius: 0.25rem;
  padding: 0.5rem;
}

.history-change-field {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.history-change-values {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.history-old-value {
  text-decoration: line-through;
  color: var(--muted-foreground);
}

.history-new-value {
  color: var(--primary);
  font-weight: 500;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
