* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; background: #1a1a1a; color: #e0e0e0; padding: 20px; overflow: hidden; height: 100vh; } .container { max-width: 1400px; margin: 0 auto; height: 100%; display: flex; flex-direction: column; } .header-section { flex-shrink: 0; } h1 { color: #fff; margin-bottom: 30px; font-size: 28px; } .controls { display: none; /* Hide old controls */ } .search-box { flex: 1; max-width: 400px; } .search-box input { width: 100%; padding: 10px 15px; background: #2a2a2a; border: 1px solid #3a3a3a; border-radius: 6px; color: #e0e0e0; font-size: 14px; } .search-box input:focus { outline: none; border-color: #4a9eff; } button { padding: 10px 20px; background: #4a9eff; color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 500; transition: background 0.2s; } button:hover { background: #3a8eef; } button.delete { background: #e74c3c; margin-right: auto; } button.delete:hover { background: #c0392b; } button.save { background: #2ecc71; } button.save:hover { background: #27ae60; } .character-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; margin-top: 20px; } .character-card { background: #2a2a2a; border-radius: 8px; border: 2px solid #3a3a3a; cursor: pointer; transition: all 0.2s; text-align: center; aspect-ratio: 1; display: flex; flex-direction: column; overflow: hidden; position: relative; background-size: cover; background-position: center; } .character-card:hover { border-color: #4a9eff; transform: translateY(-2px); } .character-card.drag-over { border-color: #2ecc71; } .character-card.drag-over::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(46, 204, 113, 0.2); pointer-events: none; } .character-card-placeholder { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 64px; color: #3a3a3a; pointer-events: none; } .character-card-name { padding: 12px; font-size: 14px; font-weight: 600; color: #fff; word-break: break-word; background: rgba(42, 42, 42, 0.85); backdrop-filter: blur(4px); border-top: 1px solid rgba(58, 58, 58, 0.5); margin-top: auto; z-index: 1; } .upload-hint { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #888; font-size: 12px; text-align: center; pointer-events: none; opacity: 0; transition: opacity 0.2s; background: rgba(26, 26, 26, 0.9); padding: 8px 12px; border-radius: 4px; } .character-card:hover .upload-hint { opacity: 1; } .character-card.has-image .character-card-placeholder { display: none; } .status { position: fixed; top: 20px; right: 20px; padding: 12px 20px; border-radius: 6px; display: none; z-index: 10001; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); min-width: 250px; animation: slideIn 0.3s ease-out; } .status.success { background: #2ecc71; color: #fff; border: 1px solid #27ae60; } .status.error { background: #e74c3c; color: #fff; border: 1px solid #c0392b; } .status.show { display: block; } .status.hiding { animation: slideOut 0.3s ease-out forwards; } @keyframes slideIn { from { transform: translateX(400px); opacity: 0; } to { transform: translateX(0); opacity: 1; } } @keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(400px); opacity: 0; } } .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: 1000; overflow-y: auto; } .modal.show { display: flex; align-items: center; justify-content: center; padding: 20px; } .modal-content { background: #2a2a2a; padding: 30px; border-radius: 8px; max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; } .modal-content.drag-over { border: 2px solid #2ecc71; background: rgba(46, 204, 113, 0.05); } .modal-header { font-size: 20px; margin-bottom: 20px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 10px; } .field-group { margin-bottom: 15px; } label { display: block; margin-bottom: 5px; color: #b0b0b0; font-size: 13px; font-weight: 500; } input, textarea { width: 100%; padding: 10px; background: #1a1a1a; border: 1px solid #3a3a3a; border-radius: 4px; color: #e0e0e0; font-family: inherit; font-size: 14px; } input:focus, textarea:focus { outline: none; border-color: #4a9eff; } textarea { resize: vertical; min-height: 80px; } .modal-actions { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-end; } .empty-state { text-align: center; padding: 60px 20px; color: #666; } .empty-state p { font-size: 18px; margin-bottom: 20px; } /* Tabs */ .tabs { display: flex; gap: 5px; border: none; } .tab-button { padding: 12px 24px; background: transparent; color: #888; border: none; border-radius: 0px; border-bottom: 2px solid transparent; cursor: pointer; font-size: 14px; font-weight: 600; transition: all 0.2s; margin-bottom: -2px; } .tab-button:hover { background: transparent; color: #b0b0b0; } .tab-button.active { color: #4a9eff; border-bottom-color: #4a9eff; } .tab-content { display: none; flex: 1; min-height: 0; overflow: hidden; } .tab-content.active { display: flex; flex-direction: column; } /* Preset Grid (for models and styles without images) */ .preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; margin-top: 20px; } .preset-card { background: #2a2a2a; border-radius: 8px; border: 2px solid #3a3a3a; cursor: pointer; transition: all 0.2s; padding: 20px; min-height: 120px; display: flex; flex-direction: column; } .preset-card:hover { border-color: #4a9eff; transform: translateY(-2px); } .preset-card-name { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 10px; } .preset-card-content { font-size: 13px; color: #888; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; } /* Sidebar Layout */ .content-with-sidebar { display: flex; gap: 20px; flex: 1; min-height: 0; overflow: hidden; } .sidebar { width: 220px; background: #2a2a2a; border-radius: 8px; padding: 15px; flex-shrink: 0; display: flex; flex-direction: column; overflow: hidden; } .sidebar-header { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #3a3a3a; flex-shrink: 0; } .category-list { display: flex; flex-direction: column; gap: 5px; overflow-y: auto; flex: 1; } .category-list::-webkit-scrollbar { width: 8px; } .category-list::-webkit-scrollbar-track { background: #1a1a1a; border-radius: 4px; } .category-list::-webkit-scrollbar-thumb { background: #4a4a4a; border-radius: 4px; } .category-list::-webkit-scrollbar-thumb:hover { background: #5a5a5a; } .category-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 6px; cursor: pointer; transition: all 0.2s; background: transparent; } .category-item:hover { background: #3a3a3a; } .category-item.active { background: #4a9eff; color: #fff; } .category-name { font-size: 14px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .category-count { font-size: 12px; color: #888; background: #1a1a1a; padding: 2px 8px; border-radius: 10px; min-width: 24px; text-align: center; } .category-item.active .category-count { background: rgba(255, 255, 255, 0.2); color: #fff; } .main-content { flex: 1; min-width: 0; overflow-y: auto; } .main-content::-webkit-scrollbar { width: 8px; } .main-content::-webkit-scrollbar-track { background: #1a1a1a; border-radius: 4px; } .main-content::-webkit-scrollbar-thumb { background: #4a4a4a; border-radius: 4px; } .main-content::-webkit-scrollbar-thumb:hover { background: #5a5a5a; } /* Responsive adjustments */ @media (max-width: 768px) { .content-with-sidebar { flex-direction: row; /* Keep it horizontal */ } .sidebar { display: none; /* Hide sidebar on narrow viewports */ } .main-content { width: 100%; /* Main content takes full width */ } } /* Autocomplete */ .autocomplete-dropdown { position: absolute; background: #2a2a2a; border: 1px solid #4a9eff; border-radius: 6px; max-height: 200px; overflow-y: auto; display: none; z-index: 10000; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); min-width: 200px; } .autocomplete-item { padding: 8px 12px; cursor: pointer; color: #e0e0e0; font-size: 14px; display: flex; justify-content: space-between; align-items: center; } .autocomplete-item:hover, .autocomplete-item.selected { background: #3a3a3a; } .autocomplete-tag { flex: 1; } .autocomplete-count { font-size: 11px; color: #888; margin-left: 10px; } .autocomplete-dropdown::-webkit-scrollbar { width: 8px; } .autocomplete-dropdown::-webkit-scrollbar-track { background: #1a1a1a; border-radius: 4px; } .autocomplete-dropdown::-webkit-scrollbar-thumb { background: #4a4a4a; border-radius: 4px; } .autocomplete-dropdown::-webkit-scrollbar-thumb:hover { background: #5a5a5a; } /* New Navbar */ .navbar { display: flex; align-items: center; gap: 30px; margin-bottom: 20px; padding-bottom: 15px; /* border-bottom: 2px solid #3a3a3a; */ flex-shrink: 0; } .navbar h1 { margin: 0; font-size: 24px; } .navbar .tabs { margin: 0; border: none; flex: 0 0 auto; } .navbar .tab-button { padding: 8px 20px; font-size: 13px; } .navbar .search-box { margin-left: auto; position: relative; } .clear-search { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: transparent; color: #888; border: none; padding: 4px 8px; font-size: 20px; line-height: 1; cursor: pointer; border-radius: 4px; } .clear-search:hover { background: #3a3a3a; color: #fff; } /* Add button card */ .add-card { background: #2a2a2a; border-radius: 8px; border: 2px dashed #4a4a4a; cursor: pointer; transition: all 0.2s; text-align: center; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 64px; color: #4a4a4a; } .add-card:hover { border-color: #4a9eff; color: #4a9eff; transform: translateY(-2px); } .preset-add-card { background: #2a2a2a; border-radius: 8px; border: 2px dashed #4a4a4a; cursor: pointer; transition: all 0.2s; padding: 20px; min-height: 120px; display: flex; align-items: center; justify-content: center; font-size: 48px; color: #4a4a4a; } .preset-add-card:hover { border-color: #4a9eff; color: #4a9eff; transform: translateY(-2px); }