Skip to main content
Glama
sharansahu

MCP SQL Agent

by sharansahu
styles.css5.28 kB
/* Reset and Base Styles */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Poppins', sans-serif; background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%); color: #333; min-height: 100vh; display: flex; justify-content: center; align-items: center; padding: 20px; } /* App Container */ .app-container { width: 100%; max-width: 1000px; min-height: 600px; background-color: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; overflow: hidden; } /* Header */ header { padding: 20px 30px; background: linear-gradient(90deg, #3a7bd5, #00d2ff); color: white; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .app-title h1 { font-size: 28px; font-weight: 600; margin-bottom: 5px; } .subtitle { font-size: 16px; opacity: 0.9; } .author { font-size: 12px; opacity: 0.7; margin-top: 5px; } /* Main Content */ main { flex: 1; display: flex; flex-direction: column; overflow: hidden; } /* Chat Container */ .chat-container { display: flex; flex-direction: column; height: 100%; padding: 20px; } .chat-messages { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 15px; } /* Message Styles */ .message { max-width: 80%; padding: 12px 16px; border-radius: 12px; animation: fadeIn 0.3s ease; position: relative; margin-bottom: 5px; } .message.user { align-self: flex-end; background-color: #3a7bd5; color: white; border-bottom-right-radius: 4px; } .message.assistant { align-self: flex-start; background-color: #f0f2f5; color: #333; border-bottom-left-radius: 4px; } .message.system { align-self: center; background-color: #f8f9fa; color: #666; border: 1px solid #eaeaea; max-width: 90%; text-align: center; } .message-content { word-break: break-word; line-height: 1.5; } .hint { font-size: 0.85em; opacity: 0.8; margin-top: 8px; font-style: italic; } .timestamp { font-size: 0.7em; margin-top: 5px; opacity: 0.7; text-align: right; } /* Code blocks in messages */ pre { background-color: rgba(0, 0, 0, 0.05); padding: 10px; border-radius: 5px; overflow-x: auto; font-family: monospace; margin: 5px 0; } /* Chat Input */ .chat-input-container { display: flex; align-items: center; padding: 15px; background-color: #fff; border-top: 1px solid #eaeaea; margin-top: 10px; } #user-input { flex: 1; border: 1px solid #ddd; border-radius: 18px; padding: 12px 15px; font-size: 14px; resize: none; outline: none; font-family: inherit; transition: border-color 0.3s, box-shadow 0.3s; } #user-input:focus { border-color: #3a7bd5; box-shadow: 0 0 0 2px rgba(58, 123, 213, 0.2); } .send-button { width: 40px; height: 40px; border-radius: 50%; background-color: #3a7bd5; color: white; border: none; margin-left: 10px; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: background-color 0.3s; } .send-button:hover { background-color: #2c5aa0; } .send-button:disabled { background-color: #ccc; cursor: not-allowed; } /* Footer */ footer { padding: 10px 20px; background-color: #f8f9fa; border-top: 1px solid #eaeaea; display: flex; justify-content: flex-end; align-items: center; } .status-indicator { display: flex; align-items: center; font-size: 14px; color: #666; } .status-dot { width: 8px; height: 8px; border-radius: 50%; margin-left: 8px; } .status-dot.online { background-color: #4CAF50; } .status-dot.thinking { background-color: #FFC107; animation: pulse 1.5s infinite; } .status-dot.offline { background-color: #F44336; } /* Loading Animation */ .loading { display: flex; padding: 15px; align-items: center; } .loading-dots { display: flex; } .loading-dots span { width: 8px; height: 8px; margin: 0 4px; background-color: #3a7bd5; border-radius: 50%; opacity: 0.6; animation: loadingDots 1.4s infinite ease-in-out both; } .loading-dots span:nth-child(1) { animation-delay: -0.32s; } .loading-dots span:nth-child(2) { animation-delay: -0.16s; } /* Animations */ @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } } @keyframes loadingDots { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } } /* Responsive Design */ @media (max-width: 768px) { .app-container { min-height: 100vh; border-radius: 0; } .message { max-width: 90%; } } @media (max-width: 480px) { header { padding: 15px; } .app-title h1 { font-size: 24px; } .chat-input-container { padding: 10px; } #user-input { padding: 10px; } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sharansahu/mcp-sql'

If you have feedback or need assistance with the MCP directory API, please join our Discord server