Spaces:
Sleeping
Sleeping
| /* ============================================ | |
| Novel Scraper Pro - Complete Styles | |
| ============================================ */ | |
| /* --- CSS Variables (Theme) --- */ | |
| :root { | |
| --bg-primary: #0f1117; | |
| --bg-secondary: #1a1d28; | |
| --bg-card: #1e2130; | |
| --bg-input: #252838; | |
| --bg-hover: #2a2d42; | |
| --text-primary: #e4e6f0; | |
| --text-secondary: #9498ae; | |
| --text-muted: #6b6f85; | |
| --accent-blue: #4f8df5; | |
| --accent-green: #34d399; | |
| --accent-red: #f87171; | |
| --accent-yellow: #fbbf24; | |
| --accent-purple: #a78bfa; | |
| --accent-orange: #fb923c; | |
| --border-color: #2d3148; | |
| --border-radius: 12px; | |
| --shadow: 0 4px 24px rgba(0, 0, 0, 0.3); | |
| --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; | |
| --font-mono: 'JetBrains Mono', 'Courier New', monospace; | |
| } | |
| /* --- Reset --- */ | |
| *, *::before, *::after { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: var(--font-main); | |
| background-color: var(--bg-primary); | |
| color: var(--text-primary); | |
| line-height: 1.6; | |
| min-height: 100vh; | |
| } | |
| /* --- Header --- */ | |
| .header { | |
| background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card)); | |
| border-bottom: 1px solid var(--border-color); | |
| padding: 16px 24px; | |
| position: sticky; | |
| top: 0; | |
| z-index: 100; | |
| backdrop-filter: blur(10px); | |
| } | |
| .header-content { | |
| max-width: 1400px; | |
| margin: 0 auto; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .header h1 { | |
| font-size: 1.5rem; | |
| font-weight: 700; | |
| background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| background-clip: text; | |
| } | |
| .header-status { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| font-size: 0.85rem; | |
| color: var(--text-secondary); | |
| } | |
| .status-dot { | |
| width: 10px; | |
| height: 10px; | |
| border-radius: 50%; | |
| background: var(--accent-yellow); | |
| animation: pulse 2s infinite; | |
| } | |
| .status-dot.active { | |
| background: var(--accent-green); | |
| } | |
| .status-dot.error { | |
| background: var(--accent-red); | |
| } | |
| @keyframes pulse { | |
| 0%, 100% { opacity: 1; } | |
| 50% { opacity: 0.5; } | |
| } | |
| /* --- Container --- */ | |
| .container { | |
| max-width: 1400px; | |
| margin: 0 auto; | |
| padding: 24px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 24px; | |
| } | |
| /* --- Cards --- */ | |
| .card { | |
| background: var(--bg-card); | |
| border: 1px solid var(--border-color); | |
| border-radius: var(--border-radius); | |
| padding: 24px; | |
| box-shadow: var(--shadow); | |
| } | |
| .card-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 20px; | |
| flex-wrap: wrap; | |
| gap: 12px; | |
| } | |
| .card-header h2 { | |
| font-size: 1.2rem; | |
| font-weight: 600; | |
| } | |
| /* --- Forms --- */ | |
| .form-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); | |
| gap: 16px; | |
| margin-bottom: 20px; | |
| } | |
| .form-group { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 6px; | |
| } | |
| .form-group label { | |
| font-size: 0.85rem; | |
| font-weight: 500; | |
| color: var(--text-secondary); | |
| } | |
| .optional { | |
| color: var(--text-muted); | |
| font-weight: 400; | |
| } | |
| .form-group input, | |
| .form-group textarea, | |
| .form-group select { | |
| background: var(--bg-input); | |
| border: 1px solid var(--border-color); | |
| border-radius: 8px; | |
| padding: 10px 14px; | |
| color: var(--text-primary); | |
| font-family: var(--font-main); | |
| font-size: 0.9rem; | |
| transition: border-color 0.2s, box-shadow 0.2s; | |
| } | |
| .form-group input:focus, | |
| .form-group textarea:focus { | |
| outline: none; | |
| border-color: var(--accent-blue); | |
| box-shadow: 0 0 0 3px rgba(79, 141, 245, 0.15); | |
| } | |
| .form-group textarea { | |
| resize: vertical; | |
| font-family: var(--font-mono); | |
| font-size: 0.85rem; | |
| } | |
| .form-row { | |
| display: flex; | |
| gap: 12px; | |
| } | |
| .form-row input { | |
| flex: 1; | |
| background: var(--bg-input); | |
| border: 1px solid var(--border-color); | |
| border-radius: 8px; | |
| padding: 10px 14px; | |
| color: var(--text-primary); | |
| font-size: 0.9rem; | |
| } | |
| /* --- Buttons --- */ | |
| .btn { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 6px; | |
| padding: 10px 20px; | |
| border: none; | |
| border-radius: 8px; | |
| font-family: var(--font-main); | |
| font-size: 0.9rem; | |
| font-weight: 500; | |
| cursor: pointer; | |
| transition: all 0.2s; | |
| text-decoration: none; | |
| } | |
| .btn:hover { | |
| transform: translateY(-1px); | |
| box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); | |
| } | |
| .btn:active { | |
| transform: translateY(0); | |
| } | |
| .btn-primary { | |
| background: linear-gradient(135deg, var(--accent-blue), #3b7de0); | |
| color: white; | |
| } | |
| .btn-success { | |
| background: linear-gradient(135deg, var(--accent-green), #2db88a); | |
| color: #0f1117; | |
| } | |
| .btn-danger { | |
| background: linear-gradient(135deg, var(--accent-red), #e05252); | |
| color: white; | |
| } | |
| .btn-warning { | |
| background: linear-gradient(135deg, var(--accent-yellow), #e5a91a); | |
| color: #0f1117; | |
| } | |
| .btn-secondary { | |
| background: var(--bg-hover); | |
| color: var(--text-secondary); | |
| border: 1px solid var(--border-color); | |
| } | |
| .btn-sm { | |
| padding: 6px 14px; | |
| font-size: 0.8rem; | |
| } | |
| .control-buttons { | |
| display: flex; | |
| gap: 8px; | |
| flex-wrap: wrap; | |
| } | |
| /* --- System Info --- */ | |
| .system-info { | |
| display: flex; | |
| gap: 24px; | |
| flex-wrap: wrap; | |
| padding: 12px 16px; | |
| background: var(--bg-input); | |
| border-radius: 8px; | |
| } | |
| .info-item { | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| } | |
| .info-label { | |
| color: var(--text-muted); | |
| font-size: 0.85rem; | |
| } | |
| .info-value { | |
| color: var(--accent-blue); | |
| font-weight: 600; | |
| font-family: var(--font-mono); | |
| } | |
| /* --- Novels Grid --- */ | |
| .novels-grid { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 12px; | |
| } | |
| .empty-state { | |
| text-align: center; | |
| padding: 40px; | |
| color: var(--text-muted); | |
| } | |
| /* --- Novel Card --- */ | |
| .novel-card { | |
| background: var(--bg-input); | |
| border: 1px solid var(--border-color); | |
| border-radius: 10px; | |
| padding: 16px 20px; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| gap: 16px; | |
| flex-wrap: wrap; | |
| transition: border-color 0.2s; | |
| } | |
| .novel-card:hover { | |
| border-color: var(--accent-blue); | |
| } | |
| .novel-card.status-scraping { | |
| border-left: 4px solid var(--accent-green); | |
| } | |
| .novel-card.status-queued { | |
| border-left: 4px solid var(--text-muted); | |
| } | |
| .novel-card.status-paused_captcha { | |
| border-left: 4px solid var(--accent-yellow); | |
| animation: captcha-pulse 2s infinite; | |
| } | |
| .novel-card.status-completed { | |
| border-left: 4px solid var(--accent-blue); | |
| } | |
| .novel-card.status-failed, | |
| .novel-card.status-paused_error { | |
| border-left: 4px solid var(--accent-red); | |
| } | |
| @keyframes captcha-pulse { | |
| 0%, 100% { border-left-color: var(--accent-yellow); } | |
| 50% { border-left-color: var(--accent-orange); } | |
| } | |
| .novel-info { | |
| flex: 1; | |
| min-width: 200px; | |
| } | |
| .novel-title { | |
| font-size: 1rem; | |
| font-weight: 600; | |
| margin-bottom: 4px; | |
| } | |
| .novel-meta { | |
| display: flex; | |
| gap: 16px; | |
| flex-wrap: wrap; | |
| font-size: 0.8rem; | |
| color: var(--text-secondary); | |
| } | |
| .novel-meta span { | |
| display: flex; | |
| align-items: center; | |
| gap: 4px; | |
| } | |
| .novel-status-badge { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 4px; | |
| padding: 4px 12px; | |
| border-radius: 20px; | |
| font-size: 0.75rem; | |
| font-weight: 600; | |
| text-transform: uppercase; | |
| letter-spacing: 0.5px; | |
| } | |
| .badge-queued { background: rgba(107, 111, 133, 0.2); color: var(--text-muted); } | |
| .badge-logging_in { background: rgba(79, 141, 245, 0.2); color: var(--accent-blue); } | |
| .badge-scraping { background: rgba(52, 211, 153, 0.2); color: var(--accent-green); } | |
| .badge-paused_captcha { background: rgba(251, 191, 36, 0.2); color: var(--accent-yellow); } | |
| .badge-paused_error { background: rgba(248, 113, 113, 0.2); color: var(--accent-red); } | |
| .badge-completed { background: rgba(167, 139, 250, 0.2); color: var(--accent-purple); } | |
| .badge-failed { background: rgba(248, 113, 113, 0.2); color: var(--accent-red); } | |
| .novel-message { | |
| font-size: 0.8rem; | |
| color: var(--text-muted); | |
| margin-top: 4px; | |
| font-family: var(--font-mono); | |
| } | |
| .novel-actions { | |
| display: flex; | |
| gap: 8px; | |
| flex-wrap: wrap; | |
| } | |
| /* --- Alert Banner --- */ | |
| .alert-banner { | |
| background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(248, 113, 113, 0.15)); | |
| border: 1px solid var(--accent-yellow); | |
| border-radius: var(--border-radius); | |
| padding: 16px 20px; | |
| animation: alert-glow 2s infinite; | |
| } | |
| @keyframes alert-glow { | |
| 0%, 100% { box-shadow: 0 0 10px rgba(251, 191, 36, 0.2); } | |
| 50% { box-shadow: 0 0 25px rgba(251, 191, 36, 0.4); } | |
| } | |
| .alert-content { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| flex-wrap: wrap; | |
| } | |
| .alert-icon { | |
| font-size: 1.5rem; | |
| } | |
| .alert-text { | |
| flex: 1; | |
| font-weight: 500; | |
| color: var(--accent-yellow); | |
| } | |
| /* --- Intervention Section --- */ | |
| .intervention-panel { | |
| background: var(--bg-input); | |
| border: 2px solid var(--accent-yellow); | |
| border-radius: 10px; | |
| padding: 20px; | |
| margin-bottom: 16px; | |
| } | |
| .intervention-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 16px; | |
| flex-wrap: wrap; | |
| gap: 12px; | |
| } | |
| .intervention-header h3 { | |
| color: var(--accent-yellow); | |
| } | |
| .screenshot-container { | |
| position: relative; | |
| display: inline-block; | |
| border: 2px solid var(--border-color); | |
| border-radius: 8px; | |
| overflow: hidden; | |
| cursor: crosshair; | |
| max-width: 100%; | |
| } | |
| .screenshot-container img { | |
| display: block; | |
| max-width: 100%; | |
| height: auto; | |
| } | |
| .click-indicator { | |
| position: absolute; | |
| width: 20px; | |
| height: 20px; | |
| border: 3px solid var(--accent-red); | |
| border-radius: 50%; | |
| transform: translate(-50%, -50%); | |
| pointer-events: none; | |
| animation: click-ring 0.5s ease-out; | |
| } | |
| @keyframes click-ring { | |
| from { width: 40px; height: 40px; opacity: 0.8; } | |
| to { width: 20px; height: 20px; opacity: 1; } | |
| } | |
| .intervention-actions { | |
| margin-top: 16px; | |
| display: flex; | |
| gap: 8px; | |
| flex-wrap: wrap; | |
| align-items: center; | |
| } | |
| .intervention-input { | |
| display: flex; | |
| gap: 8px; | |
| align-items: center; | |
| margin-top: 12px; | |
| } | |
| .intervention-input input { | |
| background: var(--bg-secondary); | |
| border: 1px solid var(--border-color); | |
| border-radius: 8px; | |
| padding: 8px 12px; | |
| color: var(--text-primary); | |
| font-size: 0.9rem; | |
| width: 200px; | |
| } | |
| /* --- Toast Notifications --- */ | |
| .toast-container { | |
| position: fixed; | |
| bottom: 24px; | |
| right: 24px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 8px; | |
| z-index: 1000; | |
| } | |
| .toast { | |
| background: var(--bg-card); | |
| border: 1px solid var(--border-color); | |
| border-radius: 10px; | |
| padding: 12px 20px; | |
| min-width: 280px; | |
| max-width: 420px; | |
| box-shadow: var(--shadow); | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| animation: toast-in 0.3s ease; | |
| } | |
| .toast.toast-success { border-left: 4px solid var(--accent-green); } | |
| .toast.toast-error { border-left: 4px solid var(--accent-red); } | |
| .toast.toast-warning { border-left: 4px solid var(--accent-yellow); } | |
| .toast.toast-info { border-left: 4px solid var(--accent-blue); } | |
| .toast-message { | |
| flex: 1; | |
| font-size: 0.85rem; | |
| } | |
| .toast-close { | |
| background: none; | |
| border: none; | |
| color: var(--text-muted); | |
| cursor: pointer; | |
| font-size: 1.1rem; | |
| padding: 4px; | |
| } | |
| @keyframes toast-in { | |
| from { transform: translateX(100%); opacity: 0; } | |
| to { transform: translateX(0); opacity: 1; } | |
| } | |
| @keyframes toast-out { | |
| from { transform: translateX(0); opacity: 1; } | |
| to { transform: translateX(100%); opacity: 0; } | |
| } | |
| /* --- Scrollbar --- */ | |
| ::-webkit-scrollbar { | |
| width: 8px; | |
| } | |
| ::-webkit-scrollbar-track { | |
| background: var(--bg-primary); | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| background: var(--border-color); | |
| border-radius: 4px; | |
| } | |
| ::-webkit-scrollbar-thumb:hover { | |
| background: var(--text-muted); | |
| } | |
| /* --- Responsive --- */ | |
| @media (max-width: 768px) { | |
| .container { | |
| padding: 12px; | |
| } | |
| .card { | |
| padding: 16px; | |
| } | |
| .header-content { | |
| flex-direction: column; | |
| gap: 8px; | |
| } | |
| .form-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| .novel-card { | |
| flex-direction: column; | |
| align-items: flex-start; | |
| } | |
| .form-row { | |
| flex-direction: column; | |
| } | |
| } |