.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; animation: fadeIn 0.2s ease-out; } .modal-container { background: var(--bg-secondary); border-radius: var(--radius-lg); width: 100%; max-width: 28rem; border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: zoomIn 0.2s ease-out; } .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--border); } .modal-title { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); } .modal-close-btn { padding: 8px; color: var(--text-tertiary); border-radius: var(--radius-md); transition: color 0.15s; } .modal-close-btn:hover { color: var(--text-primary); background: var(--bg-hover); } .modal-form { padding: 16px; display: flex; flex-direction: column; gap: 16px; } .icon-picker-tabs { display: flex; gap: 4px; margin-bottom: 12px; } .icon-picker-tab { flex: 1; padding: 8px 12px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-secondary); font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.15s ease; } .icon-picker-tab:hover { background: var(--bg-tertiary); } .icon-picker-tab.active { background: var(--accent); border-color: var(--accent); color: white; } .emoji-picker-wrapper { display: flex; flex-direction: column; gap: 10px; } .emoji-custom-input input { width: 100%; } .emoji-picker, .icon-picker { display: flex; flex-wrap: wrap; gap: 4px; max-height: 120px; overflow-y: auto; padding: 8px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-md); } .emoji-option, .icon-option { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; background: transparent; border: 2px solid transparent; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.15s ease; color: var(--text-secondary); } .emoji-option:hover, .icon-option:hover { background: var(--bg-tertiary); transform: scale(1.1); color: var(--text-primary); } .emoji-option.selected, .icon-option.selected { border-color: var(--accent); background: var(--accent-subtle); color: var(--accent); } .modal-actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 8px; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes zoomIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } } .form-group { margin-bottom: 0; } .form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; } .form-input, .form-textarea, .form-select { width: 100%; padding: 8px 12px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-primary); transition: all 0.15s; } .form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-subtle); } .form-textarea { resize: none; } .input { width: 100%; padding: 12px 14px; font-size: 0.95rem; color: var(--text-primary); background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); outline: none; transition: all 0.15s ease; } .input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-subtle); } .input::placeholder { color: var(--text-tertiary); } .color-input-container { display: flex; align-items: center; gap: 12px; background: var(--bg-tertiary); padding: 8px 12px; border-radius: var(--radius-md); border: 1px solid var(--border); width: fit-content; } .color-input-wrapper { position: relative; width: 32px; height: 32px; border-radius: var(--radius-full); overflow: hidden; border: 2px solid var(--border); cursor: pointer; transition: transform 0.1s; } .color-input-wrapper:hover { transform: scale(1.1); border-color: var(--accent); } .color-input-wrapper input[type="color"] { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; padding: 0; margin: 0; border: none; cursor: pointer; opacity: 0; }