/* System Update CSS */

.soa-control-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
  margin: 0 auto 2rem;
  max-width: 2000px; /* Increased max width */
  width: 100%;
  min-width: 100%;
}

/* Ensure the page container takes full width */
.main-container {
  width: 100%;
  max-width: 100%;
  padding: 0 1rem;
  margin: 0 auto;
}

.soa-control-panel {
  border-right: 1px solid #e2e8f0;
}

.soa-control-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.soa-control-identifier {
  font-weight: 600;
}

.soa-control-meta {
  font-size: 0.875rem;
  color: #64748b;
}

.soa-control-content {
  padding: 1rem;
}

.soa-control-content h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.soa-control-content p {
  font-size: 0.875rem;
  line-height: 1.4;
  color: #334155;
}

/* Tab styles */
.soa-tabs {
  width: 100%;
  border-bottom: 1px solid #e2e8f0;
}

.soa-tab-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid #e2e8f0;
}

.soa-tab {
  padding: 0.5rem;
  font-size: 0.75rem;
  text-align: center;
  cursor: pointer;
  background-color: #f8fafc;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.soa-tab:last-child {
  border-right: none;
}

.soa-tab.active {
  background-color: white;
  border-bottom-color: transparent;
}

/* Changelog styles */
.soa-changelog-item {
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
}

.soa-changelog-field {
  font-weight: 600;
  font-size: 0.75rem;
}

.soa-changelog-old {
  text-decoration: line-through;
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.soa-changelog-new {
  color: #22c55e;
  font-size: 0.875rem;
}

/* Tables for assurance tasks and supporting docs */
.soa-table {
  width: 100%;
  font-size: 0.75rem;
  border-collapse: collapse;
}

.soa-table th,
.soa-table td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.soa-table th {
  font-weight: 600;
  background-color: #f8fafc;
}

/* Button styles */
.soa-next-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: #f97316;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: none;
}

.soa-next-button:hover {
  background-color: #ea580c;
}

.soa-accept-button {
  background-color: #3b82f6;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
}

.soa-accept-button:hover {
  background-color: #2563eb;
}

/* Implementation plan textarea */
.soa-implementation-plan {
  width: 100%;
  min-height: 150px;
  padding: 0.5rem;
  font-size: 0.875rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
  margin-top: 0.5rem;
}

/* Badge styles */
.soa-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Empty state */
.soa-empty-state {
  text-align: center;
  padding: 4rem 0;
}

.soa-empty-icon {
  margin: 0 auto;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  border-radius: 9999px;
  color: #6b7280;
}

.soa-empty-title {
  margin-top: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
}

.soa-empty-description {
  margin-top: 0.5rem;
  color: #6b7280;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
  .soa-control-container {
    grid-template-columns: 1fr;
  }
  
  .soa-control-panel {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .soa-next-button {
    display: none;
  }
}
