/* Base styles */ :root { --primary-color: #000000; --secondary-color: #333333; --accent-color: #666666; --light-color: #ffffff; --dark-color: #000000; --border-color: #dddddd; --success-color: #444444; --warning-color: #777777; --danger-color: #999999; } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; line-height: 1.6; color: var(--secondary-color); background-color: var(--light-color); max-width: 1440px; margin: 0 auto; padding: 0 2rem; } .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; } /* Header styles */ header { padding: 2rem 0; border-bottom: 1px solid var(--border-color); margin-bottom: 3rem; } header .container { display: flex; justify-content: space-between; align-items: center; } .logo a { font-size: 1.5rem; font-weight: bold; color: var(--dark-color); text-decoration: none; } nav ul { display: flex; list-style: none; } nav ul li { margin-left: 2rem; } nav ul li a { color: var(--secondary-color); text-decoration: none; transition: color 0.3s; } nav ul li a:hover { color: var(--dark-color); border-bottom: 1px solid var(--dark-color); } /* Tag styles for components */ .tag { display: inline-block; padding: 0.3rem 0.6rem; border-radius: 3px; font-size: 0.7rem; font-weight: bold; text-transform: uppercase; box-shadow: 0 1px 2px rgba(0,0,0,0.1); transition: all 0.2s ease; } .tag:hover { transform: translateY(-1px); box-shadow: 0 2px 3px rgba(0,0,0,0.15); } .stage-tag { background-color: #e0f0ff; color: #0066cc; border: 1px solid rgba(0, 102, 204, 0.2); } .component-tag { background-color: #f0e0ff; color: #6600cc; border: 1px solid rgba(102, 0, 204, 0.2); } font-weight: 600; margin-right: 0.5rem; } .component-group-heading { margin: 1.5rem 0 1rem; font-size: 1.2rem; color: var(--dark-color); font-weight: 600; border-bottom: 1px solid #eee; padding-bottom: 0.5rem; display: flex; align-items: baseline; } .component-group-heading:first-child { margin-top: 0; } .component-module-count { font-size: 0.85rem; color: var(--accent-color); font-weight: normal; margin-left: 0.5rem; } .loading, .error, .no-results { padding: 2rem; text-align: center; color: var(--accent-color); font-style: italic; } .error { color: var(--danger-color); } /* Footer styles */ footer { padding: 3rem 0; border-top: 1px solid var(--border-color); margin-top: 3rem; text-align: center; font-size: 0.9rem; } footer a { color: var(--dark-color); text-decoration: none; } /* Home page styles */ .home-content { padding: 2rem 0; } .hero { padding: 4rem 0; text-align: center; margin-bottom: 4rem; } .hero h1 { font-size: 3rem; margin-bottom: 1.5rem; color: var(--dark-color); font-weight: 700; } .hero .lead { font-size: 1.4rem; margin-bottom: 2.5rem; color: var(--secondary-color); max-width: 800px; margin-left: auto; margin-right: auto; } /* Content page styles */ .content-container { max-width: 800px; margin: 0 auto; padding: 4rem 2rem; } .page-content { margin-bottom: 4rem; line-height: 1.8; } .page-content h1 { font-size: 2.7rem; margin-bottom: 3rem; margin-top: 2rem; color: var(--dark-color); font-weight: 700; border-bottom: 1px solid var(--border-color); padding-bottom: 1.5rem; } .page-content h2 { font-size: 2rem; margin-top: 4.5rem; margin-bottom: 2rem; color: var(--dark-color); font-weight: 600; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(0,0,0,0.1); } .page-content h3 { font-size: 1.5rem; margin-top: 3rem; margin-bottom: 1.5rem; color: var(--dark-color); font-weight: 600; } .page-content p { margin-bottom: 2.25rem; line-height: 1.8; font-size: 1.05rem; max-width: 38em; } .page-content ul, .page-content ol { margin-bottom: 3rem; margin-top: 1.5rem; padding-left: 2rem; } .page-content li { margin-bottom: 1.25rem; line-height: 1.7; max-width: 36em; } .page-content strong { font-weight: 600; color: var(--dark-color); } /* Add spacing after specific elements */ .page-content h2 + p, .page-content h3 + p { margin-top: 1.5rem; } .page-content p + ul, .page-content p + ol { margin-top: 1.5rem; } /* Add more breathing room between sections */ .page-content h2 + h3 { margin-top: 2rem; } /* Style links in page content */ .page-content a { color: var(--dark-color); text-decoration: none; border-bottom: 1px solid var(--border-color); padding-bottom: 2px; transition: border-color 0.3s; } .page-content a:hover { border-color: var(--dark-color); } /* CTA button styling */ .cta-container { margin: 4rem 0; padding: 3rem; background-color: rgba(0,0,0,0.02); border: 1px solid var(--border-color); text-align: center; font-size: 1.2rem; } .cta-button { display: inline-block; margin-top: 2rem; padding: 1rem 2.5rem; background-color: var(--dark-color); color: white !important; font-weight: 600; font-size: 1.1rem; border: none !important; transition: transform 0.3s, background-color 0.3s; } .cta-button:hover { transform: translateY(-3px); background-color: #333; } .btn-primary, .btn-secondary { display: inline-block; padding: 0.75rem 1.75rem; margin: 0.5rem; border-radius: 0; text-decoration: none; font-weight: 500; transition: all 0.3s; } .btn-primary { background-color: var(--dark-color); color: white; } .btn-secondary { background-color: transparent; color: var(--dark-color); border: 1px solid var(--dark-color); } .btn-primary:hover { background-color: var(--secondary-color); } .btn-secondary:hover { background-color: var(--border-color); } .content { margin: 3rem 0; max-width: 800px; margin-left: auto; margin-right: auto; } .stages-overview { margin: 5rem 0; } .stages-overview h2 { text-align: center; margin-bottom: 3rem; color: var(--dark-color); font-weight: 700; } .stages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; } .stage-card { border: 1px solid var(--border-color); padding: 2rem; transition: transform 0.3s, box-shadow 0.3s; } .stage-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05); } .stage-card h3 { color: var(--dark-color); margin-bottom: 1rem; font-weight: 600; } /* Builder styles */ .builder-container { padding: 2rem 0; max-width: 1100px; margin: 0 auto; } .builder { border: 1px solid var(--border-color); margin-top: 2rem; margin-bottom: 4rem; display: flex; } .builder-main { flex: 1; border-right: 1px solid var(--border-color); } .builder-sidebar { width: 280px; background-color: #f9f9f9; padding: 1.5rem; display: flex; flex-direction: column; } .sidebar-section { margin-bottom: 2rem; width: 100%; } .sidebar-section h3 { font-size: 1.2rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-color); } /* Navigation sidebar styles */ .sidebar-nav { margin-bottom: 1.5rem; max-height: 30vh; overflow-y: auto; border: 1px solid var(--border-color); border-radius: 4px; background-color: #f9f9f9; padding: 1rem; } .sidebar-nav h4 { margin-top: 0; margin-bottom: 0.75rem; padding-bottom: 0.5rem; font-size: 1rem; font-weight: 600; border-bottom: 1px solid var(--border-color); font-size: 1.1rem; } .sidebar-nav-content { font-size: 0.9rem; } .nav-tree { display: flex; flex-direction: column; gap: 0.75rem; } .nav-stage { margin-bottom: 0.5rem; } .nav-stage-link { display: block; font-weight: 600; color: var(--dark-color); text-decoration: none; padding: 0.3rem 0.5rem; border-radius: 3px; transition: background-color 0.2s; } .nav-stage-link:hover, .nav-stage-link.active { background-color: rgba(0,0,0,0.05); } .nav-components { display: flex; flex-direction: column; padding-left: 1rem; margin-top: 0.25rem; border-left: 1px solid var(--border-color); } .nav-component-link { display: block; padding: 0.2rem 0.5rem; margin: 0.15rem 0; color: var(--secondary-color); text-decoration: none; font-size: 0.85rem; border-radius: 3px; transition: background-color 0.2s, color 0.2s; } .nav-component-link:hover, .nav-component-link.active { background-color: rgba(0,0,0,0.05); color: var(--dark-color); } .sidebar-toggle { margin-bottom: 1rem; } .toggle-switch { display: flex; align-items: center; cursor: pointer; padding: 10px; background-color: #f5f5f5; border-radius: 4px; transition: background-color 0.3s; margin-bottom: 0.5rem; } .toggle-switch:hover { background-color: #e9e9e9; } .toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; } .toggle-slider { position: relative; display: inline-block; width: 44px; height: 22px; background-color: #ccc; border-radius: 22px; transition: .4s; margin-right: 10px; box-shadow: inset 0 1px 3px rgba(0,0,0,0.2); } .toggle-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 2px; bottom: 2px; background-color: white; border-radius: 50%; transition: .4s; box-shadow: 0 1px 2px rgba(0,0,0,0.2); } input:checked + .toggle-slider { background-color: var(--dark-color); } input:checked + .toggle-slider:before { transform: translateX(22px); } .toggle-label { font-weight: 600; font-size: 0.95rem; } .sidebar-info { font-size: 0.85rem; color: var(--accent-color); line-height: 1.4; margin-bottom: 1rem; } .preview-status { margin-top: 1rem; padding: 0.75rem; background-color: rgba(0, 0, 0, 0.05); border-radius: 4px; border-left: 3px solid var(--dark-color); } .status-indicator { display: flex; align-items: center; } .status-dot { width: 10px; height: 10px; background-color: var(--dark-color); border-radius: 50%; margin-right: 8px; animation: pulse 1.5s infinite; } .status-text { font-weight: 600; font-size: 0.9rem; } @keyframes pulse { 0% { transform: scale(0.8); opacity: 0.7; } 50% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(0.8); opacity: 0.7; } } /* Sidebar export options */ .sidebar-export-options { display: flex; flex-direction: column; gap: 10px; } .sidebar-btn { display: block; width: 100%; padding: 10px; background-color: transparent; color: var(--dark-color); text-decoration: none; text-align: center; border: 1px solid var(--dark-color); border-radius: 4px; font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: all 0.3s; } .sidebar-btn:hover { background-color: #f5f5f5; transform: translateY(-1px); box-shadow: 0 1px 3px rgba(0,0,0,0.1); } /* Preview mode styles */ .preview-mode .module-selector { display: none !important; } .preview-mode .field:not(.has-content) { display: none; } .preview-mode textarea { display: none; /* Hide textareas in preview mode - we'll use divs instead */ } /* Style for the preview content divs that replace textareas */ .preview-content { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 1rem; line-height: 1.6; color: var(--secondary-color); white-space: pre-wrap; word-wrap: break-word; width: 100%; margin-bottom: 1.5rem; } .preview-mode .component-card:not(.has-content) { display: none; } .preview-mode .stage-section:not(.has-content) { display: none; } /* Clean up the styling in preview mode */ .preview-mode .stage-body { display: block !important; padding-top: 1rem; } .preview-mode .component-card { border: none; box-shadow: none; margin-bottom: 2rem; background-color: transparent; } .preview-mode .component-header { background-color: transparent; border-bottom: none; padding: 0 2rem 0.5rem 2rem; } .preview-mode .component-short-label { display: none; } .preview-mode .component-header h3 { font-size: 1.4rem; font-weight: 600; border-bottom: 1px solid #eee; padding-bottom: 0.5rem; color: var(--dark-color); } .preview-mode .component-body { padding: 0.5rem 2rem 0; } .preview-mode .field.has-content { margin-bottom: 1.5rem; } /* Visual indicator that we're in preview mode */ .preview-mode { background-color: #fff; } .preview-mode .stage-header { background-color: #f8f8f8; } /* Preview mode metadata styling */ .preview-mode .protocol-metadata { background-color: transparent; padding: 2rem 2rem 0; border-bottom: none; } .preview-mode .metadata-field label { display: none; } .preview-mode .metadata-field input, .preview-mode .metadata-field textarea { border: none; background-color: transparent; padding: 0; } .preview-mode .metadata-field input { font-size: 2rem; font-weight: 700; color: var(--dark-color); padding-bottom: 0.5rem; } .preview-mode .metadata-field textarea { font-size: 1.1rem; color: var(--secondary-color); margin-bottom: 2rem; } .protocol-template-selector { border-bottom: 1px solid var(--border-color); background-color: rgba(0, 0, 0, 0.02); } .protocol-template-selector .stage-header { background-color: rgba(0, 0, 0, 0.02); } .template-body { padding: 0 2rem 2rem; } .template-options { display: flex; flex-direction: column; gap: 1rem; padding-top: 1rem; } .template-option { border: 1px solid var(--border-color); padding: 1.5rem; background-color: white; border-radius: 4px; transition: border-color 0.3s, box-shadow 0.3s; cursor: pointer; position: relative; } .template-option:hover { border-color: #aaa; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); } .template-option.selected { border-color: var(--dark-color); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); } .template-select-btn { display: block; font-size: 1.2rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--dark-color); background: none; border: none; padding: 0; text-align: left; cursor: inherit; } /* Remove the underline effect */ .template-description { font-size: 0.95rem; color: var(--secondary-color); margin: 0; line-height: 1.4; } .protocol-metadata { padding: 2rem; border-bottom: 1px solid var(--border-color); background-color: rgba(0, 0, 0, 0.02); } .metadata-field { margin-bottom: 1.5rem; } .metadata-field:last-child { margin-bottom: 0; } .metadata-field h2 { font-size: 1.4rem; margin: 0 0 0.75rem 0; color: var(--dark-color); font-weight: 600; } .metadata-field input[type="text"] { width: 100%; padding: 0.75rem; border: 1px solid var(--border-color); font-family: inherit; background-color: var(--light-color); font-size: 1.25rem; /* Larger font size for community name */ font-weight: 500; } .metadata-field textarea { width: 100%; min-height: 100px; padding: 0.75rem; border: 1px solid var(--border-color); font-family: inherit; background-color: var(--light-color); } .builder-content { padding: 0; } /* Stage sections */ .stage-section { border-bottom: 1px solid var(--border-color); margin-bottom: 0; } .stage-section:last-child { border-bottom: none; } .stage-header { padding: 1.5rem 2rem; display: flex; justify-content: space-between; align-items: center; background-color: var(--light-color); } .stage-header-content { flex: 1; cursor: pointer; } .stage-header h2 { font-size: 1.4rem; margin: 0; color: var(--dark-color); font-weight: 600; } .stage-brief { margin-top: 0.5rem; color: var(--secondary-color); font-size: 0.95rem; } .toggle-btn { background: none; border: 1px solid var(--border-color); width: 30px; height: 30px; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--secondary-color); z-index: 10; margin-left: 1rem; } .toggle-btn:hover { background-color: var(--border-color); } .stage-body { display: none; padding: 0 2rem 2rem; } .stage-description { margin-bottom: 2rem; color: var(--secondary-color); } /* Components */ .components { display: flex; flex-direction: column; gap: 2rem; } .component-card { border: 1px solid var(--border-color); background-color: var(--light-color); margin-bottom: 2rem; } .component-header { padding: 1.2rem 2rem; border-bottom: 1px solid var(--border-color); background-color: rgba(0, 0, 0, 0.02); display: flex; justify-content: space-between; align-items: flex-start; /* Remove clickable appearance since components won't be collapsible */ cursor: default; } .component-title-wrapper { flex: 1; } .component-short-label { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent-color); margin-bottom: 0.5rem; font-weight: 600; } .component-description { font-size: 0.8rem; color: var(--medium-color); margin-bottom: 0.5rem; font-style: italic; line-height: 1.2; } .component-body { padding: 1.2rem 2rem; /* Ensure component body is always displayed */ display: block !important; } .field { margin-top: 0.75rem; } .field:first-of-type { margin-top: 0; } .module-selector { margin-bottom: 1rem; background-color: rgba(0, 0, 0, 0.02); padding: 0.8rem; border: 1px solid var(--border-color); display: flex; align-items: center; flex-wrap: wrap; } .module-selector label { margin-bottom: 0; margin-right: 1rem; font-size: 0.9rem; font-weight: 500; white-space: nowrap; min-width: 110px; } .module-select { flex: 1; padding: 0.5rem; border: 1px solid var(--border-color); font-family: inherit; background-color: var(--light-color); min-width: 200px; font-size: 1rem; } textarea { width: 100%; padding: 1rem; border: 1px solid var(--border-color); font-family: inherit; resize: none; background-color: var(--light-color); font-size: 1.05rem; line-height: 1.5; overflow: hidden; transition: height 0.3s ease; min-height: 60px; box-sizing: border-box; margin-bottom: 0.5rem; display: block; word-wrap: break-word; white-space: pre-wrap; } .builder-actions { padding: 2rem; background-color: var(--light-color); border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; gap: 1.5rem; } .btn { padding: 0.75rem 1.5rem; background-color: var(--dark-color); color: white; border: none; border-radius: 0; cursor: pointer; transition: all 0.3s; font-weight: 500; } .btn:hover { background-color: var(--secondary-color); } /* Removed custom import button styles to match other sidebar buttons */ /* Export dropdown styles */ .dropdown { position: relative; display: inline-block; } .dropdown-toggle { cursor: pointer; } .dropdown-menu { position: absolute; right: 0; top: 100%; z-index: 1000; min-width: 200px; padding: 0; margin: 0; background-color: #fff; border: 1px solid var(--border-color); box-shadow: 0 2px 5px rgba(0,0,0,0.1); } .dropdown-menu ul { list-style: none; margin: 0; padding: 0; } .dropdown-menu li { margin: 0; padding: 0; } .dropdown-menu a { display: block; padding: 10px 15px; color: var(--dark-color); text-decoration: none; border-bottom: 1px solid var(--border-color); } .dropdown-menu li:last-child a { border-bottom: none; } .dropdown-menu a:hover { background-color: #f9f9f9; } /* Responsive styles */ @media (max-width: 768px) { body { padding: 0 1rem; } .container { padding: 0 1rem; } .hero h1 { font-size: 2.2rem; } .hero .lead { font-size: 1.1rem; } .builder { flex-direction: column; } .builder-main { border-right: none; border-bottom: 1px solid var(--border-color); } .builder-sidebar { width: 100%; padding: 1rem; } .sticky-nav, .sticky-nav.fixed { position: static; max-height: none; margin: 0 0 1rem 0; width: 100% !important; } .stage-header { padding: 1.2rem 1.5rem; } .stage-body { padding: 0 1.5rem 1.5rem; } .component-header { padding: 1.2rem 1.5rem; } .component-body { padding: 1.5rem; } .module-selector { flex-direction: column; align-items: flex-start; } .module-selector label { margin-bottom: 0.5rem; margin-right: 0; } .module-select { width: 100%; } .protocol-template-selector { padding: 1.5rem; } .protocol-template-select { padding: 0.5rem; } .protocol-metadata { padding: 1.5rem; } .metadata-field { margin-bottom: 1rem; } .metadata-field input[type="text"], .metadata-field textarea { padding: 0.5rem; } .builder-actions { padding: 1.5rem; flex-direction: column; align-items: stretch; } .btn { margin-bottom: 0.5rem; } .dropdown { display: block; width: 100%; margin-bottom: 10px; } .dropdown-toggle { width: 100%; text-align: center; } .dropdown-menu { width: 100%; position: static; box-shadow: none; margin-top: 5px; } } /* Markdown styles for preview content */ .preview-content { line-height: 1.5; word-wrap: break-word; } .preview-content a { color: #0066cc; text-decoration: underline; } .preview-content strong, .preview-content b { font-weight: bold; } .preview-content em, .preview-content i { font-style: italic; } .preview-content ul, .preview-content ol { margin: 0.5em 0; padding-left: 2em; } .preview-content ul li { list-style-type: disc; } .preview-content ol li { list-style-type: decimal; } .preview-content h1, .preview-content h2, .preview-content h3, .preview-content h4, .preview-content h5, .preview-content h6 { margin: 0.5em 0; line-height: 1.2; } .preview-content h1 { font-size: 1.5em; } .preview-content h2 { font-size: 1.3em; } .preview-content h3 { font-size: 1.2em; } .preview-content h4 { font-size: 1.1em; } .preview-content h5, .preview-content h6 { font-size: 1em; } .preview-content blockquote { margin: 0.5em 0; padding-left: 1em; border-left: 3px solid #ccc; color: #555; } .preview-content code { font-family: monospace; background-color: #f0f0f0; padding: 2px 4px; border-radius: 3px; } .preview-content pre { background-color: #f0f0f0; padding: 0.5em; border-radius: 3px; overflow-x: auto; margin: 0.5em 0; } .preview-content pre code { background-color: transparent; padding: 0; } .preview-content p { margin: 0.5em 0; } /* Markdown help section styles */ .markdown-help { font-size: 0.85rem; line-height: 1.6; border: 1px solid #ddd; border-radius: 4px; padding: 12px; background-color: #f8f8f8; } .markdown-help p { margin: 0.7em 0; padding-bottom: 0.5em; border-bottom: 1px dotted #eee; } .markdown-help p:last-child { border-bottom: none; } .markdown-help code { font-family: monospace; background-color: #eee; padding: 2px 4px; border-radius: 3px; font-size: 0.9em; } .markdown-help a { color: #0066cc; text-decoration: underline; }