/* Global Styles */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #333; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; } .container { max-width: 1200px; margin: 0 auto; padding: 20px; } /* Header */ header { text-align: center; margin-bottom: 30px; color: white; } header h1 { font-size: 2.5em; margin-bottom: 10px; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); } header p { font-size: 1.2em; opacity: 0.9; } /* Card Styles */ .card { background: white; border-radius: 15px; padding: 30px; margin-bottom: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; } .card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.15); } .error-card { border-left: 5px solid #e74c3c; background: #fdf2f2; } /* Form Styles */ .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #555; } .form-group input, .form-group select { width: 100%; padding: 12px; border: 2px solid #e1e8ed; border-radius: 8px; font-size: 16px; transition: border-color 0.3s ease, box-shadow 0.3s ease; } .form-group input:focus, .form-group select:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .radio-group { display: flex; gap: 20px; } .radio-group label { display: flex; align-items: center; margin-bottom: 0; cursor: pointer; } .radio-group input[type="radio"] { width: auto; margin-right: 8px; } .form-text { display: block; margin-top: 5px; font-size: 0.875em; color: #6c757d; font-style: italic; } /* Button Styles */ button { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; padding: 12px 24px; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 0.5px; } button:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3); } button:active { transform: translateY(0); } button:disabled { opacity: 0.6; cursor: not-allowed; } #predictBtn { width: 100%; padding: 15px; font-size: 18px; margin-top: 20px; } .secondary-btn { background: linear-gradient(135deg, #6c757d 0%, #495057 100%); color: white; border: none; padding: 8px 16px; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; text-transform: none; letter-spacing: normal; width: auto; } .secondary-btn:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(108, 117, 125, 0.3); } .secondary-btn:active { transform: translateY(0); } .secondary-btn.active { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); } .sphere-checkboxes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 5px; } .sphere-checkbox { display: flex; align-items: center; padding: 5px 10px; border: 1px solid #ddd; border-radius: 4px; background: #f8f9fa; font-size: 12px; cursor: pointer; transition: all 0.2s ease; } .sphere-checkbox:hover { background: #e9ecef; border-color: #667eea; } .sphere-checkbox input[type="checkbox"] { margin-right: 5px; } .sphere-checkbox.selected { background: #667eea; color: white; border-color: #667eea; } /* Progress Bar */ .progress-bar { width: 100%; height: 20px; background-color: #e1e8ed; border-radius: 10px; overflow: hidden; margin: 20px 0; } .progress-fill { height: 100%; background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); border-radius: 10px; width: 0%; transition: width 0.3s ease; } /* Summary Grid */ .summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-top: 15px; } .summary-item { background: #f8f9fa; padding: 15px; border-radius: 8px; border-left: 4px solid #667eea; } .summary-item .label { display: block; font-weight: 600; color: #666; margin-bottom: 5px; } .summary-item .value { font-size: 1.5em; font-weight: bold; color: #333; } /* Visualization Controls */ .viz-controls { background: #f8f9fa; padding: 20px; border-radius: 8px; margin: 20px 0; } .control-group { display: flex; align-items: center; margin-bottom: 15px; gap: 15px; } .control-group label { min-width: 120px; margin-bottom: 0; } .control-group select, .control-group input { flex: 1; max-width: 200px; } /* 3D Viewer */ .visualization-container { margin: 30px 0; } .viewer3d { width: 100%; height: 600px; border: 2px solid #e1e8ed; border-radius: 8px; background: #000; position: relative; overflow: hidden; } .viewer-controls { display: flex; gap: 10px; margin-top: 15px; justify-content: center; } .viewer-controls button { padding: 8px 16px; font-size: 14px; } /* Epitope List */ .epitope-list { margin: 30px 0; } #epitopeResidues { background: #f8f9fa; padding: 20px; border-radius: 8px; max-height: 300px; overflow-y: auto; line-height: 1.8; } .epitope-residue { display: inline-block; background: #667eea; color: white; padding: 5px 10px; margin: 2px; border-radius: 4px; font-family: 'Courier New', monospace; font-weight: bold; } /* Binding Region List */ .binding-region-list { margin: 30px 0; } #bindingRegionResidues { background: #f8f9fa; padding: 20px; border-radius: 8px; max-height: 300px; overflow-y: auto; line-height: 1.8; } .binding-region-residue { display: inline-block; background: #28a745; color: white; padding: 5px 10px; margin: 2px; border-radius: 4px; font-family: 'Courier New', monospace; font-weight: bold; } /* Download Section */ .download-section { margin-top: 30px; text-align: center; } .download-section button { margin: 0 10px; padding: 10px 20px; } /* Footer */ footer { text-align: center; margin-top: 50px; padding: 20px; color: white; opacity: 0.8; } /* Loading Spinner */ .loading { display: inline-block; width: 20px; height: 20px; border: 3px solid #f3f3f3; border-top: 3px solid #667eea; border-radius: 50%; animation: spin 1s linear infinite; margin-right: 10px; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Responsive Design */ @media (max-width: 768px) { .container { padding: 10px; } header h1 { font-size: 2em; } .card { padding: 20px; } .summary-grid { grid-template-columns: 1fr; } .control-group { flex-direction: column; align-items: flex-start; } .control-group label { min-width: auto; } .control-group select, .control-group input { max-width: 100%; } .viewer3d { height: 400px; } .radio-group { flex-direction: column; gap: 10px; } } /* Animation Classes */ .fade-in { animation: fadeIn 0.5s ease-in; } @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .slide-up { animation: slideUp 0.3s ease-out; } @keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } /* Color Legends */ .color-legend { display: flex; flex-wrap: wrap; gap: 15px; margin: 20px 0; padding: 15px; background: #f8f9fa; border-radius: 8px; } .legend-item { display: flex; align-items: center; gap: 8px; } .legend-color { width: 20px; height: 20px; border-radius: 4px; border: 1px solid #ddd; } .legend-label { font-size: 14px; color: #666; } /* Status Messages */ .status-message { padding: 12px 16px; border-radius: 6px; margin: 10px 0; font-weight: 500; } .status-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; } .status-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; } .status-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeaa7; } .status-info { background: #cce7ff; color: #004085; border: 1px solid #bee5eb; } /* Tooltip */ .tooltip { position: relative; display: inline-block; cursor: help; } .tooltip .tooltiptext { visibility: hidden; width: 200px; background-color: #333; color: #fff; text-align: center; border-radius: 6px; padding: 5px 10px; position: absolute; z-index: 1000; bottom: 125%; left: 50%; margin-left: -100px; opacity: 0; transition: opacity 0.3s; font-size: 12px; } .tooltip:hover .tooltiptext { visibility: visible; opacity: 1; }