* { margin: 0; padding: 0; font-family: "Poppins", sans-serif; box-sizing: border-box; } body { background: url("/static/images/brain_background.jpg") no-repeat center center fixed; background-size: cover; min-height: 100vh; position: relative; } .detection-section { padding: 2rem 0; min-height: calc(100vh - 140px); } .detection-wrapper { display: flex; justify-content: center; align-items: flex-start; gap: 2rem; max-width: 1200px; margin: 0 auto; padding: 0 1rem; } .upload-section { flex: 0 1 500px; } .results-section { flex: 0 1 400px; } .upload-container { background: rgba(255, 255, 255, 0.9); padding: 2rem; border-radius: 12px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); backdrop-filter: blur(5px); } .preview-container { margin: 1rem 0; text-align: center; } .preview-image { max-width: 250px; max-height: 250px; object-fit: contain; border-radius: 8px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); } .results-container { background: rgba(255, 255, 255, 0.9); padding: 2rem; border-radius: 12px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); backdrop-filter: blur(5px); } .upload-icon { width: 64px; height: 64px; margin-bottom: 1rem; } .upload-box { border: 2px dashed #1a73e8; padding: 2rem; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; background: rgba(255, 255, 255, 0.8); } .upload-box:hover { border-color: #1557b0; background: rgba(255, 255, 255, 0.9); } .result-cards { display: flex; flex-direction: column; gap: 1rem; } .result-card { background: rgba(255, 255, 255, 0.95); padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); text-align: center; width: 100%; } header { background: rgba(0, 0, 0, 0.8); padding: 1rem 0; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); } footer { background: rgba(217, 213, 213, 0.8); padding: 1rem 0; position: fixed; bottom: 0; width: 100%; box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3); } .predict-btn { background: #4683d3; color: white; border: none; padding: 12px 20px; border-radius: 5px; cursor: pointer; transition: background 0.3s ease; font-weight: 500; margin-top: 1rem; } .predict-btn:hover { background: #124e9e; } .predict-btn:disabled { background: #cccccc; cursor: not-allowed; } /* Responsive adjustments */ @media (max-width: 768px) { .detection-wrapper { flex-direction: column; align-items: center; } .upload-section, .results-section { width: 100%; max-width: 500px; } } /* Loading overlay */ .loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 1000; color: white; } .spinner { border: 4px solid rgba(255, 255, 255, 0.3); border-top: 4px solid #1a73e8; border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }