@import url('../shared/colors.css'); @import url('../shared/ui-components.css'); * { box-sizing: border-box; } html { height: 100%; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; margin: 0; background: radial-gradient(120% 120% at 10% 0%, rgba(204, 106, 42, 0.08) 0%, transparent 45%), linear-gradient(180deg, var(--bg-color) 0%, #f5efe9 100%); color: var(--text-color); height: 100%; overflow: hidden; } html.dark body, body.dark { background: radial-gradient(120% 120% at 10% 0%, rgba(242, 168, 101, 0.08) 0%, transparent 45%), linear-gradient(180deg, var(--bg-color) 0%, #0f0d0b 100%); } .app { display: flex; flex-direction: column; height: 100vh; overflow: hidden; } .topbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: linear-gradient(145deg, #f6eee7 0%, #f0e8df 100%); border-bottom: 1px solid var(--input-border); box-shadow: var(--shadow); } html.dark .topbar, body.dark .topbar { background: linear-gradient(145deg, #2b211b 0%, #231a14 100%); } .title { display: flex; align-items: center; gap: 12px; } .title img { height: 36px; width: 36px; } .name { font-weight: 600; font-size: 1.05rem; } .subtitle { font-size: 0.85rem; opacity: 0.7; } .topbar-actions { display: flex; gap: 10px; } .layout { display: grid; grid-template-columns: minmax(280px, 25%) 1fr; gap: 16px; padding: 16px; flex: 1; overflow: hidden; min-height: 0; } .panel { background: var(--panel-bg); border: 1px solid var(--input-border); border-radius: var(--border-radius); padding: 14px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; min-height: 0; } .panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .lists-panel .panel-header { flex-direction: column; align-items: flex-start; gap: 8px; } .lists-panel .panel-header h2 { margin-top: 0; } .panel-header h2 { margin: 0; font-size: 1rem; } .panel-actions { display: flex; gap: 8px; flex-wrap: wrap; } .lists-panel .panel-actions { justify-content: flex-start; width: 100%; } .lists-panel .panel-actions button { padding: 6px 10px; font-size: 0.8rem; } .panel-actions.secondary { margin-top: 0; gap: 6px; } .list-hint { font-size: 0.8rem; opacity: 0.7; margin-top: -4px; } .selection-hint { font-size: 0.75rem; opacity: 0.6; margin-top: 4px; font-style: italic; } .lists { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding-right: 4px; flex: 1; min-height: 0; } /* Custom scrollbar styling - List Manager Specific */ .lists::-webkit-scrollbar, .word-list::-webkit-scrollbar { width: 8px; } .lists::-webkit-scrollbar-track, .word-list::-webkit-scrollbar-track { background: #f0e8df; border-radius: 10px; } .lists::-webkit-scrollbar-thumb, .word-list::-webkit-scrollbar-thumb { background: var(--input-border); border-radius: 10px; transition: background 0.2s ease; } .lists::-webkit-scrollbar-thumb:hover, .word-list::-webkit-scrollbar-thumb:hover { background: #d4c4b8; } html.dark .lists::-webkit-scrollbar-track, html.dark .word-list::-webkit-scrollbar-track, body.dark .lists::-webkit-scrollbar-track, body.dark .word-list::-webkit-scrollbar-track { background: #1a1511; } html.dark .lists::-webkit-scrollbar-thumb, html.dark .word-list::-webkit-scrollbar-thumb, body.dark .lists::-webkit-scrollbar-thumb, body.dark .word-list::-webkit-scrollbar-thumb { background: var(--input-border); } html.dark .lists::-webkit-scrollbar-thumb:hover, html.dark .word-list::-webkit-scrollbar-thumb:hover, body.dark .lists::-webkit-scrollbar-thumb:hover, body.dark .word-list::-webkit-scrollbar-thumb:hover { background: #4a3e36; } .list-item { background: #ffffff; border: 2px solid transparent; border-radius: 12px; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; cursor: pointer; transition: all 0.2s ease; position: relative; } .list-item:hover { background: #f9f4f0; border-color: rgba(204, 106, 42, 0.3); } .list-item.active { border-color: var(--accent); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); background: #fffaf6; } .list-item.selected { background: rgba(204, 106, 42, 0.1); border-color: rgba(204, 106, 42, 0.5); } .list-item.selected.active { border-color: var(--accent); background: rgba(204, 106, 42, 0.15); } html.dark .list-item, body.dark .list-item { background: #1f1813; } html.dark .list-item:hover, body.dark .list-item:hover { background: #251f19; border-color: rgba(242, 168, 101, 0.3); } html.dark .list-item.active, body.dark .list-item.active { box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); background: #2a2218; } html.dark .list-item.selected, body.dark .list-item.selected { background: rgba(242, 168, 101, 0.15); border-color: rgba(242, 168, 101, 0.6); } html.dark .list-item.selected.active, body.dark .list-item.selected.active { background: rgba(242, 168, 101, 0.2); } .list-item.drag-over { border-color: var(--accent-hover); transform: scale(1.02); } .list-meta { display: flex; flex-direction: column; gap: 4px; } .list-name { font-weight: 600; } .list-stats { font-size: 0.75rem; opacity: 0.7; } .list-badge { font-size: 0.75rem; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--input-border); opacity: 0.8; } .details-panel { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow: hidden; } .list-settings { display: none; gap: 8px; padding: 8px; background: rgba(204, 106, 42, 0.05); border-radius: 8px; border: 1px solid var(--input-border); } html.dark .list-settings, body.dark .list-settings { background: rgba(242, 168, 101, 0.08); } .list-settings.expanded { display: flex; flex-direction: column; } .list-settings input[type="text"] { width: 100%; padding: 6px 10px; font-size: 0.9rem; } .color-row { display: flex; gap: 8px; align-items: center; } .compact-label { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; flex: 1; } .compact-label span { min-width: 24px; font-weight: 500; opacity: 0.8; } .compact-label input[type="color"] { flex: 1; height: 32px; } .compact-btn { padding: 6px 12px; min-width: auto; height: 32px; } .compact-header { flex-direction: row; align-items: center; justify-content: space-between; } .list-title-section { display: flex; align-items: center; gap: 8px; } .list-title-section h2 { margin: 0; font-size: 1rem; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .word-controls { display: flex; flex-direction: column; gap: 8px; } .add-words { display: flex; gap: 10px; align-items: stretch; } .add-words textarea { flex: 1; min-height: 64px; resize: vertical; background: var(--input-bg); color: var(--text-color); border: 1px solid var(--input-border); border-radius: 10px; padding: 8px 10px; } .add-words button { min-width: 120px; } .word-controls .row { display: flex; gap: 8px; flex-wrap: wrap; } .word-controls input[type="text"], .word-controls select { flex: 1; min-width: 160px; } .word-list { overflow-y: auto; border: 1px solid var(--input-border); border-radius: 12px; padding: 8px; background: #f9f4f0; display: flex; flex-direction: column; gap: 8px; flex: 1 1 0; min-height: 0; } html.dark .word-list, body.dark .word-list { background: #1a1511; } .empty { padding: 12px; text-align: center; opacity: 0.7; font-size: 0.9rem; } .word-item { display: grid; grid-template-columns: 1fr auto auto auto auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #ffffff; border: 2px solid transparent; cursor: pointer; transition: all 0.2s ease; position: relative; } .word-item:hover { background: #f9f4f0; border-color: rgba(204, 106, 42, 0.2); } .word-item.selected { background: rgba(204, 106, 42, 0.1); border-color: rgba(204, 106, 42, 0.5); } html.dark .word-item, body.dark .word-item { background: #201915; } html.dark .word-item:hover, body.dark .word-item:hover { background: #2a2218; border-color: rgba(242, 168, 101, 0.2); } html.dark .word-item.selected, body.dark .word-item.selected { background: rgba(242, 168, 101, 0.15); border-color: rgba(242, 168, 101, 0.6); } .word-item.disabled { opacity: 0.5; } .word-text { font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: none; } .word-text.editing { display: none; } .word-edit-input { display: none; width: 100%; background: var(--input-bg); color: var(--text-color); border: 1px solid var(--accent); border-radius: 8px; padding: 4px 8px; font-size: 0.9rem; } .word-edit-input.active { display: block; } .word-actions { display: flex; gap: 4px; align-items: center; pointer-events: auto; } .word-actions > * { pointer-events: auto; } input[type="color"] { padding: 0; height: 36px; border-radius: 10px; border: 1px solid var(--input-border); background: #1f1813; cursor: pointer; } .colors input[type="color"] { width: 100%; } .word-item input[type="color"] { width: 38px; height: 28px; border-radius: 8px; cursor: pointer; } .word-item input[type="color"]:hover { transform: scale(1.05); transition: transform 0.2s ease; } .stats { font-size: 0.85rem; opacity: 0.7; } .pagination-container { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; background: #f9f4f0; border: 1px solid var(--input-border); border-radius: 12px; flex-shrink: 0; flex-wrap: wrap; } html.dark .pagination-container, body.dark .pagination-container { background: #1a1511; } .pagination-info { font-size: 0.8rem; opacity: 0.8; white-space: nowrap; } .pagination-controls { display: flex; align-items: center; gap: 6px; } .pagination-btn { background: var(--button-bg); border: 1px solid var(--input-border); color: var(--button-text); border-radius: 6px; padding: 4px 6px; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; min-width: 28px; min-height: 28px; font-size: 0.75rem; } .pagination-btn:hover:not(:disabled) { background: var(--button-hover); border-color: var(--accent); } .pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; } .pagination-pages { display: flex; align-items: center; padding: 0 8px; } .page-info { font-size: 0.8rem; opacity: 0.9; font-weight: 500; } .page-size-controls { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; } .page-size-controls label { opacity: 0.8; white-space: nowrap; } .page-size-select { background: var(--input-bg); color: var(--text-color); border: 1px solid var(--input-border); border-radius: 6px; padding: 3px 6px; font-size: 0.8rem; min-width: 55px; } .page-size-select:focus { outline: none; border-color: var(--accent); } /* Removed single column layout - minimum width enforced for two-column layout */