body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  background: #f7f9fc;
  color: #333;
}

/* Top bar */
.topbar {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.lab-btn {
  color: #005eff;
  background: #eef4ff;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 20px;
  transition: background 0.2s;
}

.user-profile:hover {
  background: #f5f5f5;
}

.user-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #005eff;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
}

.user-email {
  font-size: 14px;
  color: #333;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .user-email {
    display: none;
  }
}

/* Layout */
.layout {
  display: flex;
  height: calc(100vh - 50px);
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: #fff;
  border-right: 1px solid #ddd;
  padding: 20px;
  overflow-y: auto;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  padding: 10px 0;
  border-bottom: 1px solid #f1f1f1;
  cursor: pointer;
}

.sidebar li.active {
  font-weight: bold;
  color: #0078ff;
}

/* Main content */
.content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

.tags {
  margin: 10px 0;
}

.tag {
  display: inline-block;
  padding: 5px 10px;
  margin-right: 5px;
  border-radius: 4px;
  font-size: 0.85em;
}

.green { background: #d5f8d2; color: #256029; }
.gray { background: #eee; }
.blue { background: #e3f0ff; color: #004aad; }

.description {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  line-height: 1.6;
}

/* Side panel */
.sidepanel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  background: #fff;
  border-left: 1px solid #ddd;
  box-shadow: -2px 0 8px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  z-index: 1001;
  display: flex;
  flex-direction: column;
}

.sidepanel.open {
  right: 0;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #ddd;
}

.panel-header h3 {
  margin: 0;
  font-size: 1.1em;
}

.panel-header button {
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
}

.panel-content {
  padding: 20px;
  overflow-y: auto;
}

.alert.warning {
  background: #fff8e1;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.panel-section {
  margin-bottom: 20px;
}

.note {
  background: #eef9ff;
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px;
  font-size: 0.9em;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 1000;
}
#overlay.show {
  display: block;
}

/* Progress bar for deployment */
.progress-bar {
  width: 100%;
  height: 24px;
  background: #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin: 10px 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #005eff 0%, #0047b3 100%);
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.85em;
}

/* Button styles */
.btn-primary {
  background: #005eff;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #0047b3;
}

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Alert styles */
.alert.success {
  background: #d5f8d2;
  color: #256029;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  border: 1px solid #9fe69f;
}

code {
  background: #f1f1f1;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

/* Launch button */
.launch-btn {
  width: 100%;
  padding: 14px;
  background: #005eff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  margin-top: 20px;
  transition: background 0.2s;
}

.launch-btn:hover:not(:disabled) {
  background: #0047b3;
}

.launch-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Deployment logs */
.deployment-logs {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 16px;
  margin: 20px 0;
  max-height: 200px;
  overflow-y: auto;
}

.log-entry {
  padding: 8px 0;
  font-size: 14px;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
}

.log-entry:last-child {
  border-bottom: none;
}

.log-entry.complete {
  color: #166534;
  font-weight: 500;
}

/* Credentials section */
.credentials-section {
  margin: 20px 0;
}

.credentials-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 20px;
}

.credentials-box h4 {
  margin: 0 0 16px 0;
  color: #0c4a6e;
  font-size: 16px;
}

.credential-item {
  margin-bottom: 16px;
}

.credential-item:last-child {
  margin-bottom: 0;
}

.credential-item label {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 6px;
  font-weight: 500;
}

.credential-value {
  display: flex;
  align-items: center;
  gap: 8px;
}

.credential-value code {
  flex: 1;
  background: white;
  border: 1px solid #cbd5e1;
  padding: 10px;
  border-radius: 4px;
  font-size: 14px;
  word-break: break-all;
}

.copy-btn {
  background: #005eff;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: #0047b3;
}

/* Developer Tools - Job Runner in Sidebar */
.job-runner-container {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #ddd;
  margin-top: 10px;
}

.job-input {
  width: 100%;
  height: 150px;
  font-family: 'Courier New', monospace;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 12px;
  resize: vertical;
  box-sizing: border-box;
}

.job-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.job-status {
  font-weight: bold;
  font-size: 13px;
}

.job-logs {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 12px;
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  display: none;
}

.job-logs.visible {
  display: block;
}

