/* --- Global Styles & Fonts --- */ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap'); :root { --bg-primary: #1a1a2e; --bg-secondary: #16213e; --bg-tertiary: #0f3460; --accent-primary: #e94560; --accent-secondary: #53bf9d; --text-primary: #e0e0e0; --text-secondary: #a0a0c0; --border-color: #3a3a5e; --shadow-color: rgba(233, 69, 96, 0.1); } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Inter', sans-serif; background: var(--bg-primary); color: var(--text-primary); min-height: 100vh; display: flex; justify-content: center; align-items: flex-start; padding: 40px 20px; } /* --- Main Container --- */ .container { width: 100%; max-width: 1200px; background: var(--bg-secondary); border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.3); padding: 40px; border: 1px solid var(--border-color); } /* --- Header --- */ .header { text-align: center; margin-bottom: 30px; } .logo-circle { width: 60px; height: 60px; background: linear-gradient(135deg, var(--accent-primary), var(--bg-tertiary)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: #fff; margin: 0 auto 12px; box-shadow: 0 4px 15px var(--shadow-color); } h1 { font-size: 2.5rem; font-weight: 700; color: #fff; } .subtitle { color: var(--text-secondary); font-size: 1.1rem; margin-top: 5px; } /* --- Drag and Drop Area --- */ .drag-area { border: 2px dashed var(--border-color); background: rgba(15, 52, 96, 0.3); padding: 40px; border-radius: 12px; text-align: center; cursor: pointer; transition: all 0.3s ease; } .drag-area.dragover { border-color: var(--accent-primary); background: rgba(233, 69, 96, 0.1); } #dragText, .drag-area p { color: var(--text-secondary); font-size: 1.1rem; font-weight: 500; margin-bottom: 15px; } .file-label { background: var(--bg-tertiary); color: var(--text-primary); padding: 12px 25px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 1rem; display: inline-block; transition: background 0.2s, transform 0.2s; } .file-label:hover { background: var(--accent-primary); transform: translateY(-2px); } /* --- Action Buttons --- */ .action-btn { background: linear-gradient(90deg, var(--accent-secondary), var(--bg-tertiary)); color: #fff; border: none; border-radius: 8px; padding: 14px 30px; font-size: 1.1rem; font-weight: 600; cursor: pointer; box-shadow: 0 4px 15px rgba(83, 191, 157, 0.15); transition: all 0.3s ease; width: 100%; margin-top: 20px; } .action-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(83, 191, 157, 0.25); } .action-btn.download-btn { background: linear-gradient(90deg, var(--accent-primary), #c42d45); text-decoration: none; text-align: center; } /* --- Results and Preview --- */ #results-container { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; } /* --- Preview Area --- */ #previewSection { display: flex; flex-direction: column; } .preview-tabs { display: flex; border-radius: 8px 8px 0 0; overflow: hidden; } .tab-btn { flex: 1; padding: 14px 0; background: var(--bg-tertiary); color: var(--text-secondary); border: none; font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; border-bottom: 3px solid transparent; } .tab-btn.active { color: #fff; background: var(--bg-secondary); border-bottom-color: var(--accent-primary); } .preview-content { background: var(--bg-primary); border: 1px solid var(--border-color); border-top: none; border-radius: 0 0 8px 8px; flex-grow: 1; } .preview-pane { padding: 20px; overflow: auto; height: 600px; color: var(--text-primary); } .preview-pane canvas { max-width: 100%; border-radius: 4px; margin-bottom: 10px; } /* --- Entities List --- */ #entitiesSection { display: flex; flex-direction: column; } #entitiesList { background: var(--bg-primary); border-radius: 8px; border: 1px solid var(--border-color); padding: 20px; flex-grow: 1; max-height: 550px; overflow-y: auto; margin-bottom: 20px; } .entity-item { display: flex; align-items: center; background: var(--bg-secondary); border-radius: 8px; padding: 12px 18px; margin-bottom: 12px; font-size: 1rem; border-left: 4px solid var(--accent-secondary); transition: background 0.2s; } .entity-item:hover { background: var(--bg-tertiary); } .entity-checkbox { accent-color: var(--accent-primary); width: 20px; height: 20px; margin-right: 15px; } .entity-label { background: var(--accent-primary); color: #fff; border-radius: 5px; padding: 4px 10px; font-size: 0.9em; font-weight: 600; margin-right: 12px; } /* --- Loader & Error --- */ #loader { text-align: center; margin-top: 40px; color: var(--text-secondary); font-size: 1.1rem; } .spinner { width: 50px; height: 50px; border: 4px solid var(--border-color); border-top-color: var(--accent-primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 15px; } @keyframes spin { to { transform: rotate(360deg); } } #error { color: var(--accent-primary); background: rgba(233, 69, 96, 0.1); border: 1px solid var(--accent-primary); border-radius: 8px; padding: 15px 20px; margin-top: 20px; text-align: center; font-weight: 600; } .hidden { display: none; }