/* Modern stylesheet for DocTags Analyzer and Visualizer */ :root { /* Color palette */ --bg-color: #f8f1ee; --primary-color: #195162; --secondary-color: #618794; --light-color: #e6eaf1; --mint: #b9e9da; --amber: #ffdb96; --pale-rose: #ffc9c9; --white: #ffffff; --error: #e74c3c; --success: #2ecc71; --warning: #f39c12; --shadow: rgba(25, 81, 98, 0.1); /* Typography */ --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; --font-mono: 'Fira Code', 'SF Mono', Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; } /* Base styles */ body { font-family: var(--font-sans); background-color: var(--bg-color); color: var(--primary-color); line-height: 1.6; margin: 0; padding: 0; } #app-container { max-width: 1200px; margin: 0 auto; padding: 2rem; } h1, h2, h3, h4, h5, h6 { color: var(--primary-color); margin-top: 0; font-weight: 600; } h1 { font-size: 2.25rem; margin-bottom: 1.5rem; position: relative; display: inline-block; } h1::after { content: ''; position: absolute; width: 50%; height: 4px; background-color: var(--secondary-color); bottom: -8px; left: 0; border-radius: 2px; } h3 { font-size: 1.35rem; color: var(--secondary-color); margin-bottom: 1rem; } /* Card Component */ .card { background-color: var(--white); border-radius: 12px; box-shadow: 0 8px 16px var(--shadow); padding: 1.5rem; margin-bottom: 1.5rem; transition: transform 0.2s ease, box-shadow 0.2s ease; } .card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px var(--shadow); } /* Form Elements */ .form-group { margin-bottom: 1.5rem; } label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--primary-color); } select, input[type="number"], input[type="text"] { width: 100%; padding: 12px 16px; border: 2px solid var(--light-color); border-radius: 8px; background-color: var(--white); font-size: 1rem; color: var(--primary-color); transition: border-color 0.2s ease, box-shadow 0.2s ease; -webkit-appearance: none; appearance: none; } select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23618794' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 48px; } select:focus, input:focus { outline: none; border-color: var(--secondary-color); box-shadow: 0 0 0 3px rgba(97, 135, 148, 0.25); } .checkbox-container { display: flex; align-items: center; position: relative; cursor: pointer; user-select: none; } .checkbox-container input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; } .checkmark { height: 24px; width: 24px; background-color: var(--white); border: 2px solid var(--light-color); border-radius: 4px; margin-right: 10px; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; } .checkbox-container:hover input ~ .checkmark { background-color: var(--light-color); } .checkbox-container input:checked ~ .checkmark { background-color: var(--secondary-color); border-color: var(--secondary-color); } .checkmark:after { content: ""; display: none; width: 5px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); } .checkbox-container input:checked ~ .checkmark:after { display: block; } /* Buttons */ button { background-color: var(--secondary-color); color: white; border: none; border-radius: 8px; padding: 12px 24px; font-size: 1rem; font-weight: 500; cursor: pointer; transition: background-color 0.2s ease, transform 0.1s ease; display: inline-flex; align-items: center; justify-content: center; } button:hover:not(:disabled) { background-color: var(--primary-color); transform: translateY(-2px); } button:active:not(:disabled) { transform: translateY(0); } button:disabled { background-color: var(--light-color); color: var(--secondary-color); cursor: not-allowed; opacity: 0.7; } button svg { margin-right: 8px; } /* Status indicators */ .status { margin-top: 1rem; font-weight: 500; display: flex; align-items: center; } .error { color: var(--error); } .success { color: var(--success); } .working { color: var(--secondary-color); } .loader { display: inline-block; width: 20px; height: 20px; margin-right: 10px; border: 3px solid var(--light-color); border-radius: 50%; border-top-color: var(--secondary-color); animation: spin 1s ease-in-out infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* Pipeline Container */ .pipeline-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin: 2rem 0; } /* Step Cards */ .step-card { background-color: var(--white); border-radius: 12px; border-left: 5px solid var(--mint); box-shadow: 0 4px 12px var(--shadow); padding: 1.5rem; transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; flex-direction: column; } .step-card:nth-child(2) { border-left-color: var(--amber); } .step-card:nth-child(3) { border-left-color: var(--pale-rose); } .step-card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px var(--shadow); } .step-card h3 { margin-top: 0; display: flex; align-items: center; } .step-card h3 svg { margin-right: 10px; } .step-card p { color: var(--secondary-color); margin-bottom: 1.5rem; flex-grow: 1; } /* Environment Check Panel */ #environment-check { background-color: var(--white); border-radius: 12px; box-shadow: 0 4px 12px var(--shadow); padding: 1.5rem; margin-top: 2rem; } .env-success { color: var(--success); display: flex; align-items: center; } .env-error { color: var(--error); display: flex; align-items: center; } .env-success::before, .env-error::before { content: ''; display: inline-block; width: 16px; height: 16px; margin-right: 8px; border-radius: 50%; } .env-success::before { background-color: var(--success); } .env-error::before { background-color: var(--error); } /* Output Container */ #output { background-color: var(--white); border-radius: 12px; padding: 1.5rem; white-space: pre-wrap; font-family: var(--font-mono); font-size: 0.9rem; line-height: 1.6; color: var(--primary-color); overflow-x: auto; box-shadow: 0 4px 12px var(--shadow); max-height: 300px; overflow-y: auto; } /* Image Container */ #image-container { background-color: var(--white); border-radius: 12px; padding: 1.5rem; box-shadow: 0 4px 12px var(--shadow); margin-top: 2rem; } #image-container h2 { margin-top: 0; margin-bottom: 1rem; display: flex; align-items: center; } #image-container h2::before { content: ''; display: inline-block; width: 24px; height: 24px; margin-right: 10px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23618794' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E"); background-repeat: no-repeat; } #result-image { max-width: 100%; border-radius: 8px; box-shadow: 0 2px 8px var(--shadow); } /* Debug Section */ .debug-section { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px dashed var(--light-color); display: flex; gap: 1rem; } /* Utility Classes */ .hidden { display: none !important; } .mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-4 { margin-top: 2rem; } .mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 2rem; } /* Responsive adjustments */ @media (max-width: 768px) { #app-container { padding: 1rem; } .pipeline-container { grid-template-columns: 1fr; } button { width: 100%; } }