/* 
 * MCP Loader CSS
/* Loading message with spinner */
.loading-message,
.info-message,
.error-message {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 5px;
  position: relative;
  padding-left: 35px;
  background-color: transparent;
  border: none;
}
.loading-message:before,
.info-message:before,
.error-message:before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
}
.loading-message {
  color: #0066cc;
}

.loading-message:before {
  border: 2px solid #e6e6e6;
  border-top: 2px solid #0066cc;
  animation: spin 1s linear infinite;
}
.info-message {
  color: #0099ff;
}

.info-message:before {
  border: 2px solid #e6e6e6;
  border-top: 2px solid #0099ff;
  animation: spin 1s linear infinite;
}
.error-message {
  color: #cc0000;
}

.error-message:before {
  border: 2px solid #e6e6e6;
  border-top: 2px solid #cc0000;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}

/* Authentication Button Styles */
.mcp-auth-button {
  margin-left: 8px;
  margin-right: 8px;
  padding: 3px 8px;
  border: none;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

/* Connect button (not authenticated) */
.mcp-auth-button.not-authenticated {
  background-color: transparent;
  color: #3b82f6;
  border: 1px solid #3b82f6;
}

.mcp-auth-button.not-authenticated:hover:not(:disabled) {
  background-color: #3b82f6;
  color: white;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.2);
}

/* Disconnect button (authenticated) */
.mcp-auth-button.authenticated {
  background-color: transparent;
  color: #ef4444;
  border: 1px solid #ef4444;
  cursor: pointer;
}

.mcp-auth-button.authenticated:hover:not(:disabled) {
  background-color: #ef4444;
  color: white;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.3);
}

/* Disabled state (loading/awaiting) */
.mcp-auth-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Authentication Modal Styles */
.mcp-auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mcp-auth-modal.show {
  opacity: 1;
}

.mcp-auth-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.mcp-auth-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: auto;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.mcp-auth-modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mcp-auth-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
}

.mcp-auth-modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #666;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.mcp-auth-modal-close:hover {
  background: #f5f5f5;
  color: #1a1a1a;
}

.mcp-auth-modal-body {
  padding: 24px;
}

.mcp-auth-instruction {
  margin: 0 0 16px;
  font-size: 15px;
  color: #666;
  text-align: center;
}

.mcp-auth-code-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.mcp-auth-code {
  flex: 1;
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 4px;
  text-align: center;
  color: #1a1a1a;
  font-family: 'Courier New', monospace;
  user-select: all;
}

.mcp-auth-copy-btn {
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mcp-auth-copy-btn:hover {
  background: #e9ecef;
  border-color: #bbb;
}

.mcp-auth-copy-btn.copied {
  background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
  border-color: #667eea;
  color: #667eea;
}

.mcp-auth-expiry {
  margin: 0 0 20px;
  font-size: 13px;
  color: #999;
  text-align: center;
}

.mcp-auth-open-browser-btn {
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.mcp-auth-open-browser-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.mcp-auth-open-browser-btn:disabled {
  background: #e0e0e0;
  color: #666;
  cursor: not-allowed;
}

.mcp-auth-status {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  display: none;
}

.mcp-auth-status.show {
  display: block;
  background: #fff3cd;
  color: #856404;
}

.mcp-auth-status.success {
  background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
  color: #667eea;
  border: 1px solid #667eea40;
}

.mcp-auth-status i {
  margin-right: 6px;
}

/* Confirm Dialog - Professional Light */
.mcp-confirm-dialog-content {
  position: relative;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 90%;
  animation: modalSlideIn 0.2s ease;
}

.mcp-confirm-dialog-header {
  padding: 20px 24px 10px;
}

.mcp-confirm-dialog-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #222;
}

.mcp-confirm-dialog-body {
  padding: 0 24px 24px;
}

.mcp-confirm-dialog-body p {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.mcp-confirm-dialog-footer {
  padding: 16px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #eee;
}

.mcp-confirm-btn-cancel {
  padding: 8px 18px;
  border: 1px solid #ddd;
  background: #fff;
  color: #444;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.mcp-confirm-btn-cancel:hover {
  background: #f5f5f5;
}

.mcp-confirm-btn-confirm {
  padding: 8px 18px;
  border: none;
  background: #e53935;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.mcp-confirm-btn-confirm:hover {
  background: #c62828;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .mcp-auth-modal-content {
    width: 95%;
    max-width: none;
  }

  .mcp-auth-code {
    font-size: 24px;
    padding: 16px;
    letter-spacing: 2px;
  }

  .mcp-auth-code-container {
    flex-direction: column;
  }

  .mcp-auth-copy-btn {
    width: 100%;
    justify-content: center;
  }
} 