diff --git a/templates/index.html b/templates/index.html index 0115a97..51a684c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -104,10 +104,51 @@ .empty { text-align: center; padding: 40px; color: var(--text2); } + /* Advanced options toggle */ + .advanced-toggle { background: none; border: none; color: var(--text2); cursor: pointer; font-size: 0.85rem; padding: 4px 0; display: flex; align-items: center; gap: 6px; font-family: inherit; margin-bottom: 8px; transition: color 0.15s; } + .advanced-toggle:hover { color: var(--text); } + .advanced-toggle .chevron { display: inline-block; transition: transform 0.2s; font-size: 0.7rem; } + .advanced-toggle.open .chevron { transform: rotate(90deg); } + .advanced-section { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; } + .advanced-section.open { max-height: 600px; } + + /* Drag-and-drop feedback */ + textarea.drag-over { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(29,185,84,0.25); } + textarea.drop-flash { animation: dropFlash 0.6s ease; } + @keyframes dropFlash { 0%,100% { box-shadow: none; } 30%,70% { box-shadow: 0 0 0 3px var(--accent); border-color: var(--accent); } } + + /* Running job pulse */ + .status-running { animation: statusPulse 1.8s ease-in-out infinite; } + @keyframes statusPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } } + + /* Toast */ + #toast { position: fixed; bottom: 24px; right: 24px; background: var(--surface); border-radius: var(--radius); padding: 12px 18px; font-size: 0.88rem; box-shadow: 0 4px 20px rgba(0,0,0,0.5); opacity: 0; transform: translateY(8px); transition: opacity 0.25s, transform 0.25s; pointer-events: none; max-width: 320px; z-index: 999; border-left: 3px solid var(--accent); } + #toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; } + #toast.error { border-left-color: var(--danger); } + + /* Bottom navigation bar (mobile only) */ + #bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; height: 56px; background: var(--surface); border-top: 1px solid var(--surface2); z-index: 100; } + .bottom-tab { flex: 1; background: none; border: none; color: var(--text2); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 0.62rem; font-family: inherit; padding: 0; transition: color 0.15s; -webkit-tap-highlight-color: transparent; } + .bottom-tab .btab-icon { display: flex; } + .bottom-tab.active { color: var(--accent); } + + /* Touch targets */ + .file-actions .btn-icon { padding: 8px 12px; min-width: 36px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; } + .file-item { min-height: 48px; } + .checkbox-label { padding: 6px 0; } + @media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } .header { flex-wrap: wrap; } - .tabs { margin-left: 0; width: 100%; } + .tabs { display: none; } + .container { padding: 16px; } + .card { padding: 16px; } + body { padding-bottom: 64px; } + textarea, select, input { font-size: 1rem; } + #btn-download { width: 100%; border-radius: var(--radius); } + .job-preview { max-width: calc(100vw - 120px); } + #toast { left: 16px; right: 16px; bottom: 72px; max-width: none; } + #bottom-nav { display: flex; } } @@ -119,7 +160,6 @@ - {% if auth_enabled %}Logout{% endif %} @@ -151,37 +191,44 @@ -