.word-list { position: relative; } .close-x-button { position: fixed; top: 1rem; right: 1rem; background: rgba(255, 255, 255, 0.9); border: none; font-size: 1.5rem; color: #7f8c8d; cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background-color 0.2s, color 0.2s; z-index: 1600; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); } .close-x-button:hover { background-color: #ffffff; color: #2c3e50; } .word-list h2 { color: #2c3e50; } .add-button { background-color: transparent; color: #3498db; border: 2px solid #3498db; padding: 1rem; border-radius: 8px; cursor: pointer; font-size: 1.1rem; font-weight: 500; transition: all 0.2s ease; min-height: 60px; display: flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; margin: 0 0 1rem 0; } .add-button:hover { background-color: #3498db; color: white; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3); } .loading, .error-message { text-align: center; padding: 2rem; color: #666; } .error-message { color: #e74c3c; background-color: #f8d7da; border: 1px solid #f5c6cb; border-radius: 4px; } .empty-state { text-align: center; padding: 3rem; color: #666; } .words-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; } .word-card { border: 1px solid #ddd; border-radius: 8px; padding: 1rem; background: #fafafa; transition: transform 0.2s, box-shadow 0.2s; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; } .word-card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); } .word-content { flex: 1; } .word-header { margin-bottom: 0.75rem; } .word-name { font-size: 1.25rem; font-weight: bold; color: #2c3e50; margin: 0; } .word-translation { font-size: 1rem; color: #34495e; font-weight: 500; margin-bottom: 0.5rem; } .word-description { font-size: 0.9rem; color: #7f8c8d; font-style: italic; } .word-stats { display: flex; align-items: center; font-size: 1.5rem; font-weight: bold; white-space: nowrap; } .stat-success { color: #3498db; } .stat-separator { color: #7f8c8d; margin: 0 0.25rem; } .stat-failure { color: #e74c3c; } .dictionary-name-input-container { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; padding-right: 60px; /* Space for close button */ margin-top: 0.5rem; } .dictionary-name-input { flex: 1; padding: 0.5rem 0.75rem; border: none; border-bottom: 2px solid #e0e0e0; border-radius: 0; font-size: 1.25rem; font-weight: 600; color: #2c3e50; transition: all 0.2s; font-family: inherit; background-color: transparent; } .dictionary-name-input:focus { outline: none; border-bottom-color: #3498db; border-bottom-width: 3px; } .dictionary-name-input::placeholder { color: #95a5a6; font-weight: 400; } .dictionary-name-save-button { background-color: #27ae60; color: white; border: none; width: 36px; height: 36px; border-radius: 8px; font-size: 1.25rem; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 2px 6px rgba(39, 174, 96, 0.25); font-weight: bold; } .dictionary-name-save-button:hover:not(:disabled) { background-color: #229954; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4); } .dictionary-name-save-button:active:not(:disabled) { transform: translateY(0); } .dictionary-name-save-button:disabled { background-color: #95a5a6; cursor: not-allowed; opacity: 0.6; box-shadow: none; } .menu-button { position: fixed; top: 1rem; right: 4rem; background: rgba(255, 255, 255, 0.9); border: none; border-radius: 8px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.5rem; color: #2c3e50; font-weight: bold; transition: all 0.2s; z-index: 1500; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); padding: 0; line-height: 1; } .menu-button:hover { background-color: #ffffff; color: #3498db; transform: scale(1.1); }