body { font-family: "Arial", sans-serif; margin: 0; line-height: 1.6; background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("https://images.unsplash.com/photo-1550684376-efcbd6e3f031?q=80&w=2070&auto=format&fit=crop"); background-size: cover; background-position: center; background-attachment: fixed; color: #333; } h1 { text-align: center; margin-bottom: 2rem; color: #fff; } .main-wrapper { max-width: 800px; margin: 2rem auto; padding: 2rem; background: #fff; border-radius: 8px; box-shadow: 0 0 20px rgba(0, 0, 0, 0.05); } .container { display: flex; gap: 20px; } .upload-section, .qa-section { flex: 1; padding: 20px; border: none; border-radius: 5px; position: relative; } textarea { width: 100%; height: 100px; margin: 10px 0; } .btn { display: grid; place-items: center; padding: 10px 20px; font-size: 16px; text-align: center; white-space: nowrap; vertical-align: middle; cursor: pointer; border: 1px solid transparent; border-radius: 5px; color: white; background-color: #007bff; user-select: none; /* Prevent text selection */ position: relative; } .btn:hover { background-color: #0056b3; } .btn:disabled { background-color: #cccccc; cursor: not-allowed; border-color: #cccccc; } .btn > * { grid-area: 1 / 1; } #uploadButton, #askButton { min-width: 110px; /* Adjust as needed */ min-height: 45px; /* Adjust as needed */ } .error { color: red; margin-top: 10px; } .success { color: green; margin-top: 10px; } #answer { margin-top: 20px; padding: 10px; border: 1px solid #ddd; border-radius: 5px; min-height: 100px; } .status { margin-top: 10px; padding: 10px; border-radius: 5px; display: none; } .status.processing { background-color: #fff3cd; color: #856404; display: block; } .status.success { background-color: #d4edda; color: #155724; display: block; } .status.error { background-color: #f8d7da; color: #721c24; display: block; } .qa-section textarea { width: 100%; min-height: 100px; padding: 10px; box-sizing: border-box; border: 1px solid #ccc; border-radius: 5px; font-size: 16px; line-height: 1.5; margin-bottom: 10px; resize: vertical; transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; } .qa-section textarea:focus { border-color: #007bff; outline: 0; box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); } #answer-container { margin-top: 20px; position: relative; min-height: 50px; } #answer { white-space: pre-wrap; word-wrap: break-word; padding: 15px; border-radius: 5px; background-color: #f9f9f9; border: 1px solid #ddd; min-height: 24px; } .spinner { border: 3px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; border-radius: 50%; width: 18px; height: 18px; animation: spin 0.8s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .hidden { display: none; } .file-input-container { margin-bottom: 15px; display: flex; align-items: center; } .file-input-hidden { display: none; } .file-input-label { display: inline-block; padding: 10px 20px; background-color: #007bff; color: white; border: none; border-radius: 5px; cursor: pointer; white-space: nowrap; } .file-input-label:hover { background-color: #0056b3; } .file-name { margin-left: 10px; font-style: italic; color: #555; } .btn-back { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 16px; color: #007bff; cursor: pointer; padding: 5px; font-weight: bold; } .btn-back:hover { text-decoration: underline; } .info-text { color: #555; font-size: 14px; margin-bottom: 15px; } .upload-actions { display: flex; align-items: center; gap: 15px; margin-top: 15px; }