/* ===== BASE STYLES ===== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
  color: #e0e0e0;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

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

.panel {
  background: rgba(26, 26, 46, 0.6);
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.full-width {
  grid-column: 1 / -1;
}

.panel-centered {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  grid-column: 1 / -1;
}

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

.panel-header h2 {
  margin: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.disconnect-btn-header {
  padding: 8px 20px;
  background: linear-gradient(135deg, #ff6464, #ee5a24);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.disconnect-btn-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 100, 100, 0.4);
}

/* ===== TYPOGRAPHY ===== */
h1 {
  color: #64ffda;
  margin-bottom: 10px;
  text-align: center;
  font-size: 2.5rem;
}

h2 {
  color: #64ffda;
  margin-top: 0;
  border-bottom: 2px solid rgba(100, 255, 218, 0.3);
  padding-bottom: 10px;
}

.subtitle {
  text-align: center;
  color: #a0a0a0;
  margin-bottom: 30px;
}

.back-link {
  display: inline-block;
  color: #64ffda;
  text-decoration: none;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.back-link:hover {
  transform: translateX(-5px);
}

/* ===== FORMS ===== */
.connection-form {
  display: grid;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 5px;
  color: #a0a0a0;
}

input, select {
  padding: 8px 12px;
  border: 1px solid rgba(100, 255, 218, 0.2);
  background: #0a0a14;
  color: #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
}

input:focus, select:focus {
  outline: none;
  border-color: #64ffda;
  box-shadow: 0 0 5px rgba(100, 255, 218, 0.3);
}

input.error, select.error {
  border-color: #ff6464 !important;
  box-shadow: 0 0 5px rgba(255, 100, 100, 0.3) !important;
}

.field-error {
  color: #ff6464;
  font-size: 12px;
  margin-top: 5px;
  font-weight: 500;
}

/* ===== BUTTONS ===== */
button {
  padding: 10px 20px;
  background: linear-gradient(135deg, #64ffda, #48cae4);
  color: #0f0f1e;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}

button:disabled {
  background: #333;
  color: #666;
  cursor: not-allowed;
  transform: none;
}

/* ===== CONNECTION STATUS ===== */
.status {
  padding: 10px;
  border-radius: 4px;
  margin: 10px 0;
  font-weight: 500;
}

.status.connected {
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid #64ffda;
  color: #64ffda;
}

.status.disconnected {
  background: rgba(255, 100, 100, 0.1);
  border: 1px solid #ff6464;
  color: #ff6464;
}

.status.connecting {
  background: rgba(255, 200, 100, 0.1);
  border: 1px solid #ffc864;
  color: #ffc864;
}

.connection-status-container {
  margin-top: 10px;
}

.connection-status-container .status {
  flex: 1;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cancel-connection-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #ff6464, #ee5a24);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cancel-connection-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 100, 100, 0.4);
}

/* ===== CONNECTION PROGRESS INDICATOR ===== */
.connection-progress-indicator {
  background: rgba(26, 26, 46, 0.8);
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 8px;
  padding: 15px;
  margin-top: 10px;
}

.connection-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

#connectionProgressTitle {
  font-weight: 600;
  font-size: 16px;
  color: #e0e0e0;
}

.connection-stages {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.connection-stage {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  border: 1px solid rgba(100, 255, 218, 0.1);
  transition: all 0.3s ease;
}

.connection-stage.stage-pending {
  border-color: rgba(160, 160, 160, 0.3);
}

.connection-stage.stage-progress {
  border-color: #ffc864;
  background: rgba(255, 200, 100, 0.05);
  animation: pulse 2s ease-in-out infinite;
}

.connection-stage.stage-success {
  border-color: #64ffda;
  background: rgba(100, 255, 218, 0.05);
}

.connection-stage.stage-error {
  border-color: #ff6464;
  background: rgba(255, 100, 100, 0.05);
}

@keyframes pulse {
  0%, 100% {
    border-color: #ffc864;
    box-shadow: 0 0 0 0 rgba(255, 200, 100, 0.4);
  }
  50% {
    border-color: #ffaa32;
    box-shadow: 0 0 0 4px rgba(255, 200, 100, 0);
  }
}

.stage-icon {
  font-size: 24px;
  min-width: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.stage-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stage-label {
  font-weight: 600;
  font-size: 14px;
  color: #e0e0e0;
}

.stage-status {
  font-size: 13px;
  color: #a0a0a0;
}

.connection-stage.stage-success .stage-status {
  color: #64ffda;
}

.connection-stage.stage-error .stage-status {
  color: #ff6464;
}

.connection-stage.stage-progress .stage-status {
  color: #ffc864;
}

.stage-attempts {
  font-size: 12px;
  color: #a0a0a0;
  font-weight: 500;
  min-width: 80px;
  text-align: right;
}

.connection-error-message {
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 100, 100, 0.1);
  border: 1px solid #ff6464;
  border-radius: 6px;
  color: #ff6464;
  font-size: 13px;
  line-height: 1.5;
}

.connection-error-message strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

/* Field highlighting for problematic URLs */
input.field-problem {
  border-color: #ff6464 !important;
  box-shadow: 0 0 8px rgba(255, 100, 100, 0.4) !important;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* ===== RECONNECTION BANNER ===== */
.reconnection-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(255, 200, 100, 0.98), rgba(255, 170, 50, 0.98));
  border-bottom: 3px solid #ffc864;
  padding: 15px 20px;
  z-index: 10000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.reconnection-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.reconnection-icon {
  font-size: 24px;
  animation: pulse-icon 1.5s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

.reconnection-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reconnection-message {
  font-weight: 600;
  font-size: 15px;
  color: #0f0f1e;
}

.reconnection-attempts {
  font-size: 13px;
  color: rgba(15, 15, 30, 0.8);
  font-weight: 500;
}

.reconnection-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.reconnection-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.reconnection-btn.retry-btn {
  background: linear-gradient(135deg, #64ffda, #48cae4);
  color: #0f0f1e;
}

.reconnection-btn.retry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(100, 255, 218, 0.4);
}

.reconnection-btn.cancel-btn {
  background: rgba(15, 15, 30, 0.3);
  color: #0f0f1e;
  border: 1px solid rgba(15, 15, 30, 0.5);
}

.reconnection-btn.cancel-btn:hover {
  background: rgba(15, 15, 30, 0.5);
}

/* ===== RECONNECTION SUCCESS TOAST ===== */
.reconnection-success-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.98), rgba(72, 202, 228, 0.98));
  border: 2px solid #64ffda;
  border-radius: 8px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 30px rgba(100, 255, 218, 0.4);
  z-index: 10000;
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.reconnection-success-toast .success-icon {
  font-size: 24px;
}

.reconnection-success-toast .success-message {
  font-weight: 600;
  font-size: 15px;
  color: #0f0f1e;
}

/* ===== STATE BADGES ===== */
.state-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  margin: 5px 0;
}

.state-badge.STOPPED {
  background: rgba(108, 117, 125, 0.3);
  color: #a0a0a0;
  border: 1px solid #6c757d;
}

.state-badge.INITIALIZE {
  background: rgba(23, 162, 184, 0.3);
  color: #17a2b8;
  border: 1px solid #17a2b8;
}

.state-badge.UNAVAILABLE {
  background: rgba(255, 193, 7, 0.3);
  color: #ffc107;
  border: 1px solid #ffc107;
}

.state-badge.AVAILABLE {
  background: rgba(100, 255, 218, 0.3);
  color: #64ffda;
  border: 1px solid #64ffda;
}

.state-badge.ACTIVE {
  background: rgba(220, 53, 69, 0.3);
  color: #dc3545;
  border: 1px solid #dc3545;
}

/* ===== COMPONENT LIST ===== */
.component-list {
  border: 1px solid rgba(100, 255, 218, 0.2);
  background: #0a0a14;
  border-radius: 8px;
  padding: 10px;
}

.component-item {
  padding: 15px;
  margin: 10px 0;
  border: 1px solid rgba(100, 255, 218, 0.1);
  border-radius: 8px;
  background: rgba(26, 26, 46, 0.4);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.component-item.ready {
  background: rgba(100, 255, 218, 0.05);
  border-color: rgba(100, 255, 218, 0.3);
}

.component-item.enabled {
  background: rgba(72, 202, 228, 0.05);
  border-color: rgba(72, 202, 228, 0.3);
}

/* Row 1: Title row with controls */
.component-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(100, 255, 218, 0.1);
  gap: 15px;
  flex-wrap: wrap;
}

.component-title-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.component-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Row 2: Common controls row (deprecated - kept for backward compatibility) */
.component-common-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Row 2: Actions row (now row 2 in new layout) - 2-column grid */
.component-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .component-actions-row {
    grid-template-columns: 1fr;
  }
}

.component-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.component-header-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.component-name {
  font-weight: 600;
  color: #64ffda;
  font-size: 16px;
}

.component-badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.component-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.component-badge.ready {
  background: rgba(100, 255, 218, 0.2);
  color: #64ffda;
  border: 1px solid #64ffda;
}

.component-badge.not-ready {
  background: rgba(255, 100, 100, 0.2);
  color: #ff6464;
  border: 1px solid #ff6464;
}

.component-badge.enabled {
  background: rgba(72, 202, 228, 0.2);
  color: #48cae4;
  border: 1px solid #48cae4;
}

.component-badge.disabled {
  background: rgba(108, 117, 125, 0.2);
  color: #a0a0a0;
  border: 1px solid #6c757d;
}

.component-badge.status-ok {
  background: rgba(100, 255, 218, 0.2);
  color: #64ffda;
  border: 1px solid #64ffda;
}

.component-badge.status-error,
.component-badge.status-unavailable,
.component-badge.status-not-responding {
  background: rgba(255, 100, 100, 0.2);
  color: #ff6464;
  border: 1px solid #ff6464;
}

.component-badge.status-wrong-application-state {
  background: rgba(255, 100, 100, 0.2);
  color: #ff6464;
  border: 1px solid #ff6464;
}

/* Fade out animation for temporary status badges */
.component-badge.fade-out {
  animation: fadeOut 3s forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.component-badge.status-media-absent,
.component-badge.status-media-present {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid #ffc107;
}

.component-badge.required {
  background: rgba(255, 100, 100, 0.2);
  color: #ff6464;
  border: 1px solid #ff6464;
}

/* ===== TOGGLE SWITCHES ===== */
.toggle-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-label {
  font-size: 11px;
  font-weight: 600;
  color: #a0a0a0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.toggle-switch {
  position: relative;
  width: 46px;
  height: 22px;
  background: rgba(108, 117, 125, 0.3);
  border-radius: 11px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(108, 117, 125, 0.5);
}

.toggle-switch.enabled {
  background: linear-gradient(135deg, #64ffda, #48cae4);
  border-color: #64ffda;
}

.toggle-switch.required {
  background: linear-gradient(135deg, #ff6464, #ee5a24);
  border-color: #ff6464;
}

.toggle-switch.pending {
  background: linear-gradient(135deg, #ffc107, #ff9f00);
  border-color: #ffc107;
}

.toggle-switch.disabled {
  background: rgba(108, 117, 125, 0.3);
  border-color: rgba(108, 117, 125, 0.5);
  cursor: not-allowed;
  opacity: 0.6;
}

.toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.enabled .toggle-slider,
.toggle-switch.required .toggle-slider {
  transform: translateX(24px);
  background: #0f0f1e;
}

.toggle-switch.pending .toggle-slider {
  background: #0f0f1e;
  animation: togglePulse 1.5s infinite;
}

@keyframes togglePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.toggle-switch:hover:not(.disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toggle-switch.enabled:hover:not(.disabled) {
  box-shadow: 0 4px 12px rgba(100, 255, 218, 0.4);
}

.toggle-switch.required:hover:not(.disabled) {
  box-shadow: 0 4px 12px rgba(255, 100, 100, 0.4);
}

/* ===== COMPONENT ACTIONS ===== */
.component-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* Deprecated - kept for backward compatibility */
.component-action-group {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex: 1;
  min-width: 300px;
}

/* New column-based layout for actions */
.component-action-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  height: 100%;
}

.component-action-label {
  font-size: 11px;
  font-weight: 600;
  color: #64ffda;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.component-action-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.component-action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: auto;
}

.component-action-buttons .component-action-btn {
  flex: 0 0 auto;
  min-width: 100px;
}

.component-action-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(100, 255, 218, 0.2);
  background: #0a0a14;
  color: #e0e0e0;
  border-radius: 4px;
  font-size: 13px;
}

.component-action-input:focus {
  outline: none;
  border-color: #64ffda;
  box-shadow: 0 0 5px rgba(100, 255, 218, 0.3);
}

.component-action-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(100, 255, 218, 0.2);
  background: #0a0a14;
  color: #e0e0e0;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'Courier New', monospace;
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
  box-sizing: border-box;
}

.component-action-textarea:focus {
  outline: none;
  border-color: #64ffda;
  box-shadow: 0 0 5px rgba(100, 255, 218, 0.3);
}

.component-action-textarea::placeholder {
  color: #666;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Dropdown for AEA commands */
.component-action-dropdown {
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 8px;
  border: 1px solid rgba(100, 255, 218, 0.2);
  background: #0a0a14;
  color: #e0e0e0;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.component-action-dropdown:hover {
  border-color: rgba(100, 255, 218, 0.5);
}

.component-action-dropdown:focus {
  outline: none;
  border-color: #64ffda;
  box-shadow: 0 0 5px rgba(100, 255, 218, 0.3);
}

.component-action-dropdown option {
  background: #0a0a14;
  color: #e0e0e0;
  padding: 8px;
}

/* Data display container */
.data-display-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.data-display-label {
  font-size: 12px;
  color: rgba(100, 255, 218, 0.8);
  font-weight: 500;
}

.data-display-box {
  min-height: 3em;
  padding: 8px 12px;
  border: 1px solid rgba(100, 255, 218, 0.2);
  background: rgba(10, 10, 20, 0.5);
  color: #e0e0e0;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  word-break: break-all;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.data-display-box:empty::before {
  content: 'No data received yet';
  color: rgba(224, 224, 224, 0.3);
  font-style: italic;
}

/* Timeout input width fix */
.timeout-input {
  max-width: 250px;
}

.component-action-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, #64ffda, #48cae4);
  color: #0f0f1e;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  align-self: flex-start;
  min-width: 100px;
}

.component-action-btn.component-query-btn {
  padding: 6px 12px;
  font-size: 12px;
  min-width: auto;
}

.component-action-btn.component-action-btn-standalone {
  align-self: auto;
}

.component-action-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(100, 255, 218, 0.3);
}

.component-action-btn:disabled {
  background: #333;
  color: #666;
  cursor: not-allowed;
  transform: none;
}

/* ===== LOG CONTAINER ===== */
.log-container {
  background: #0a0a14;
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 8px;
  padding: 10px;
  max-height: 300px;
  overflow-y: auto;
  font-family: "Courier New", monospace;
  font-size: 12px;
}

.log-entry {
  margin: 2px 0;
  padding: 2px 0;
}

.log-entry.info {
  color: #b0b0b0;
}

.log-entry.success {
  color: #64ffda;
}

.log-entry.error {
  color: #ff6464;
}

.log-entry.event {
  color: #48cae4;
}

/* ===== ACTIONS ===== */
.actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.actions button {
  font-size: 14px;
  padding: 8px 16px;
}

/* ===== ENVIRONMENT INFO ===== */
.environment-info {
  background: rgba(26, 26, 46, 0.4);
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  border: 1px solid rgba(100, 255, 218, 0.1);
  margin-top: 15px;
}

.environment-info h3 {
  color: #64ffda;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
  border-bottom: 1px solid rgba(100, 255, 218, 0.2);
  padding-bottom: 5px;
}

.env-group {
  margin-top: 12px;
  margin-bottom: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.env-group:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.env-group strong {
  color: #48cae4;
  font-size: 14px;
}

.env-item {
  display: flex;
  justify-content: space-between;
  margin: 4px 0;
  padding: 2px 0;
}

.env-label {
  color: #a0a0a0;
  font-weight: 500;
}

.env-value {
  color: #e0e0e0;
  font-family: 'Courier New', monospace;
  text-align: right;
}

/* ===== BANNERS ===== */
.timeout-banner {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
  z-index: 1000;
  text-align: center;
  min-width: 300px;
  animation: slideDown 0.5s ease-out;
}

.timeout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.timeout-header strong {
  font-size: 16px;
}

.timeout-banner p {
  margin: 0;
  font-size: 14px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Accessible mode toast */
.accessible-mode-banner {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1e88e5, #1565c0);
  color: white;
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(30, 136, 229, 0.4);
  z-index: 1000;
  text-align: center;
  min-width: 350px;
  animation: slideDown 0.5s ease-out;
}

.accessible-mode-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}

.accessible-mode-header strong {
  font-size: 16px;
}

.accessible-mode-banner p {
  margin: 0 0 15px 0;
  font-size: 14px;
}

.acknowledge-btn {
  background: white;
  color: #1e88e5;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.acknowledge-btn:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.acknowledge-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mixed-content-banner {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(243, 156, 18, 0.4);
  z-index: 1000;
  max-width: 500px;
  animation: slideDown 0.5s ease-out;
}

.mixed-content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.mixed-content-header strong {
  font-size: 16px;
}

.dismiss-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.dismiss-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mixed-content-banner p {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.4;
}

.mixed-content-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.suggested-url-btn {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 200px;
}

.suggested-url-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

.continue-anyway-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.continue-anyway-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ===== TOKEN URL CONTAINER ===== */
.token-url-container {
  display: flex;
  gap: 8px;
  align-items: center;
}

.token-url-container input {
  flex: 1;
}

.generate-token-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, #64ffda, #48cae4);
  color: #0f0f1e;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.generate-token-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(100, 255, 218, 0.3);
}

.generate-token-btn:disabled {
  background: #333;
  color: #666;
  cursor: not-allowed;
  transform: none;
}