Skip to main content
Glama
style.css9.91 kB
/* OCR-MCP Web Interface Styles */ :root { --primary-color: #2563eb; --primary-hover: #1d4ed8; --success-color: #059669; --success-hover: #047857; --secondary-color: #6b7280; --secondary-hover: #4b5563; --danger-color: #dc2626; --warning-color: #d97706; --background-color: #f8fafc; --card-background: #ffffff; --text-primary: #1f2937; --text-secondary: #6b7280; --border-color: #e5e7eb; --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); --border-radius: 8px; --transition: all 0.2s ease; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background-color: var(--background-color); color: var(--text-primary); line-height: 1.6; } .container { max-width: 1200px; margin: 0 auto; padding: 20px; } /* Header */ .header { text-align: center; margin-bottom: 30px; padding: 20px; background: var(--card-background); border-radius: var(--border-radius); box-shadow: var(--shadow); } .header h1 { color: var(--primary-color); margin-bottom: 10px; font-size: 2.5rem; font-weight: 700; } .header p { color: var(--text-secondary); font-size: 1.1rem; } /* Tabs */ .tabs { display: flex; margin-bottom: 20px; background: var(--card-background); border-radius: var(--border-radius); box-shadow: var(--shadow); overflow: hidden; } .tab-button { flex: 1; padding: 15px 20px; background: none; border: none; cursor: pointer; font-size: 1rem; font-weight: 500; color: var(--text-secondary); transition: var(--transition); border-bottom: 3px solid transparent; } .tab-button:hover { background-color: #f3f4f6; color: var(--text-primary); } .tab-button.active { color: var(--primary-color); border-bottom-color: var(--primary-color); background-color: #eff6ff; } .tab-button i { margin-right: 8px; } /* Tab Content */ .tab-content { display: none; background: var(--card-background); border-radius: var(--border-radius); box-shadow: var(--shadow); padding: 30px; } .tab-content.active { display: block; } /* Upload Section */ .upload-area { border: 2px dashed var(--border-color); border-radius: var(--border-radius); padding: 40px; text-align: center; transition: var(--transition); margin-bottom: 30px; background: #fafafa; } .upload-area:hover, .upload-area.dragover { border-color: var(--primary-color); background: #eff6ff; } .upload-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; } .upload-area p { margin-bottom: 10px; font-size: 1.1rem; color: var(--text-primary); } .upload-subtitle { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 20px; } /* Processing Options */ .processing-options { margin-bottom: 30px; } .processing-options h3 { margin-bottom: 20px; color: var(--text-primary); font-size: 1.3rem; } .options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 20px; } .option-group { display: flex; flex-direction: column; } .option-group label { margin-bottom: 5px; font-weight: 500; color: var(--text-primary); } /* Form Controls */ .form-control { padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 1rem; transition: var(--transition); background: var(--card-background); } .form-control:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); } /* Buttons */ .btn { padding: 12px 24px; border: none; border-radius: 6px; font-size: 1rem; font-weight: 500; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; } .btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); } .btn:active { transform: translateY(0); } .btn-primary { background: var(--primary-color); color: white; } .btn-primary:hover { background: var(--primary-hover); } .btn-success { background: var(--success-color); color: white; } .btn-success:hover { background: var(--success-hover); } .btn-secondary { background: var(--secondary-color); color: white; } .btn-secondary:hover { background: var(--secondary-hover); } .btn-danger { background: var(--danger-color); color: white; } .btn-danger:hover { background: #b91c1c; } /* Status Cards */ .status-card { background: #f8fafc; border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 20px; margin-bottom: 20px; } .status-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; } .status-badge { padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; } .status-badge.processing { background: #fef3c7; color: #d97706; } .status-badge.completed { background: #d1fae5; color: #059669; } .status-badge.failed { background: #fee2e2; color: #dc2626; } /* Progress Bar */ .progress-bar { height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; margin-bottom: 15px; } .progress-fill { height: 100%; background: var(--primary-color); width: 0%; transition: width 0.3s ease; } /* Results Section */ .results-section h3 { margin-bottom: 20px; color: var(--text-primary); } .results-tabs { display: flex; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); } .results-tab { padding: 10px 20px; background: none; border: none; cursor: pointer; font-size: 1rem; color: var(--text-secondary); border-bottom: 2px solid transparent; transition: var(--transition); } .results-tab.active { color: var(--primary-color); border-bottom-color: var(--primary-color); } .result-panel { display: none; padding: 20px; background: #f8fafc; border: 1px solid var(--border-color); border-radius: var(--border-radius); max-height: 400px; overflow-y: auto; } .result-panel.active { display: block; } .result-panel pre { white-space: pre-wrap; word-wrap: break-word; font-family: 'Courier New', monospace; font-size: 0.9rem; line-height: 1.5; } /* Scanner Section */ .scanner-list { margin-top: 20px; } .scanner-item { display: flex; justify-content: space-between; align-items: center; padding: 15px; border: 1px solid var(--border-color); border-radius: var(--border-radius); margin-bottom: 10px; background: #fafafa; } .scanner-item h4 { margin: 0; color: var(--text-primary); } .scanner-item p { margin: 5px 0 0 0; color: var(--text-secondary); font-size: 0.9rem; } .scanner-item .btn { margin-left: 10px; } /* Settings */ .settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 20px; } .settings-card { background: var(--card-background); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 20px; } .settings-card h3 { margin-bottom: 15px; color: var(--text-primary); } .status-info { margin-bottom: 15px; padding: 15px; background: #f8fafc; border-radius: 6px; border-left: 4px solid var(--primary-color); } .status-info p { margin: 0; color: var(--text-primary); } /* File List */ .file-list { margin-top: 20px; max-height: 200px; overflow-y: auto; } .file-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; border: 1px solid var(--border-color); border-radius: 6px; margin-bottom: 5px; background: #fafafa; } .file-item .file-name { font-weight: 500; color: var(--text-primary); } .file-item .file-size { color: var(--text-secondary); font-size: 0.9rem; } .file-item .remove-btn { background: var(--danger-color); color: white; border: none; border-radius: 50%; width: 24px; height: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; } /* Responsive Design */ @media (max-width: 768px) { .container { padding: 10px; } .header h1 { font-size: 2rem; } .tabs { flex-direction: column; } .tab-button { text-align: left; } .options-grid { grid-template-columns: 1fr; } .settings-grid { grid-template-columns: 1fr; } .results-tabs { flex-wrap: wrap; } .results-actions { display: flex; flex-direction: column; gap: 10px; } .results-actions .btn { justify-content: center; } } /* Loading Animation */ @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .fa-spin { animation: spin 1s linear infinite; } /* Utility Classes */ .text-center { text-align: center; } .text-left { text-align: left; } .text-right { text-align: right; } .mt-10 { margin-top: 10px; } .mt-20 { margin-top: 20px; } .mb-10 { margin-bottom: 10px; } .mb-20 { margin-bottom: 20px; } .hidden { display: none; } .flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-10 { gap: 10px; } .w-full { width: 100%; }

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/sandraschi/ocr-mcp'

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