.lf-painter-button { background-color: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 5px; color: #fff; padding: 6px 14px; font-size: 12px; font-weight: 550; cursor: pointer; transition: background 0.3s ease-in-out, border-color 0.3s ease-in-out, opacity 0.3s ease-in-out; min-width: 80px; text-align: center; margin: 2px; box-shadow: 0 1px 2px rgba(0,0,0,0.16); text-shadow: 0 1px 2px rgb(0,0,0); } .lf-painter-button:hover { background-color: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.28); box-shadow: 0 2px 4px rgba(0,0,0,0.15); transform: translateY(-1px); } .lf-painter-button:active { background-color: rgba(0, 0, 0, 0.18); transform: translateY(0); box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); } .lf-painter-button:disabled, .lf-painter-button:disabled:hover { background-color: rgba(0, 0, 0, 0.12); color: #777; cursor: not-allowed; transform: none; box-shadow: none; border-color: rgba(255, 255, 255, 0.1); opacity: 0.6; } .lf-painter-button.lf-primary { background-color: rgba(58, 118, 214, 0.7); border-color: rgba(90, 170, 255, 0.65); color: #fff; text-shadow: 0 1px 2px rgb(0,0,0); } .lf-painter-button.lf-primary:hover { background-color: rgba(74, 134, 228, 0.78); border-color: rgba(124, 204, 255, 0.8); } /* Crop mode button styling */ .lf-painter-button#lf-crop-mode-btn { background-color: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); color: #fff; transition: all 0.2s ease-in-out; } .lf-painter-button#lf-crop-mode-btn.lf-primary { background-color: rgba(0, 128, 255, 0.72); border-color: rgba(90, 170, 255, 0.75); color: #fff; box-shadow: 0 0 8px rgba(0, 128, 255, 0.3); } .lf-painter-button#lf-crop-mode-btn.lf-primary:hover { background-color: rgba(16, 144, 255, 0.8); border-color: rgba(124, 204, 255, 0.9); box-shadow: 0 0 12px rgba(0, 128, 255, 0.4); } .lf-painter-button#lf-crop-mode-btn:hover { background-color: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.28); } .lf-painter-button.lf-success { border-color: #4ae27a; background-color: rgba(255, 255, 255, 0.08); color: #fff; box-shadow: 0 0 0 1.5px #4ae27a88; } .lf-painter-button.lf-success:hover { border-color: #6aff9a; box-shadow: 0 0 0 2.5px #6aff9a88; background-color: rgba(255, 255, 255, 0.14); } .lf-painter-button.lf-danger { border-color: #e24a4a; background-color: rgba(255, 255, 255, 0.08); color: #fff; box-shadow: 0 0 0 1.5px #e24a4a88; } .lf-painter-button.lf-danger:hover { border-color: #ff6a6a; box-shadow: 0 0 0 2.5px #ff6a6a88; background-color: rgba(255, 255, 255, 0.14); } .lf-painter-button.lf-icon-button { width: 30px; height: 30px; min-width: 30px; padding: 0; font-size: 16px; line-height: 30px; /* Match height */ display: flex; align-items: center; justify-content: center; } .lf-painter-controls { background-color: var(--lf-controls-surface, rgba(47, 47, 47, 0.84)); border-bottom: 1px solid var(--lf-surface-border, rgba(255, 255, 255, 0.14)); box-shadow: 0 1px 3px var(--lf-surface-shadow, rgba(0, 0, 0, 0.18)); padding: 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-start; } .lf-painter-slider-container { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; font-size: 12px; min-width: 100px; } .lf-painter-slider-container input[type="range"] { -webkit-appearance: none; width: 80px; height: 4px; background: rgba(0, 0, 0, 0.22); border-radius: 2px; outline: none; padding: 0; margin: 0; } .lf-painter-slider-container input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; background: rgba(255, 255, 255, 0.78); border-radius: 50%; cursor: pointer; border: 2px solid rgba(0, 0, 0, 0.3); transition: background 0.2s; } .lf-painter-slider-container input[type="range"]::-webkit-slider-thumb:hover { background: rgba(255, 255, 255, 0.95); } .lf-painter-slider-container input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; background: rgba(255, 255, 255, 0.78); border-radius: 50%; cursor: pointer; border: 2px solid rgba(0, 0, 0, 0.3); } .lf-slider-value { font-size: 11px; color: #bbb; margin-top: 2px; min-height: 14px; text-align: center; } .lf-painter-button-group { display: flex; align-items: center; gap: 4px; background-color: transparent; padding: 0; border-radius: 6px; } .lf-painter-clipboard-group { display: flex; align-items: center; gap: 4px; } .lf-painter-clipboard-group .lf-painter-button { margin: 1px; height: 30px; /* Match switch height */ box-sizing: border-box; display: flex; align-items: center; justify-content: center; } /* --- Clipboard Switch Modern --- */ .lf-clipboard-switch { position: relative; width: 90px; height: 30px; box-sizing: border-box; background: linear-gradient(to right, rgba(255, 255, 255, 0.08) 30%, rgba(58, 118, 214, 0.65)); border-radius: 5px; border: 1px solid #555; cursor: pointer; transition: background 0.3s ease-in-out, border-color 0.3s ease-in-out, opacity 0.3s ease-in-out; user-select: none; padding: 0; font-family: inherit; font-size: 12px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); } .lf-clipboard-switch:hover { background: linear-gradient(to right, rgba(255, 255, 255, 0.14) 30%, rgba(74, 134, 228, 0.75)); border-color: rgba(255, 255, 255, 0.28); box-shadow: 0 2px 4px rgba(0,0,0,0.15); transform: translateY(-1px); } /* Mask switch: szaro-czarny gradient tylko dla maski */ .lf-clipboard-switch.lf-mask-switch { background: linear-gradient(to right, rgba(255, 255, 255, 0.08) 30%, rgba(229, 57, 53, 0.65)); } .lf-clipboard-switch.lf-mask-switch:hover { background: linear-gradient(to right, rgba(255, 255, 255, 0.14) 30%, rgba(255, 82, 82, 0.75)); } .lf-clipboard-switch:active { background: linear-gradient(135deg, rgba(58, 118, 214, 0.72), rgba(0, 0, 0, 0.18)); } .lf-clipboard-switch input[type="checkbox"] { display: none; } .lf-clipboard-switch .lf-switch-track { display: none; } .lf-clipboard-switch .lf-switch-knob { position: absolute; top: 2px; left: 2px; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; background-color: rgba(255, 255, 255, 0.14); border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,0.2); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); z-index: 2; } .lf-clipboard-switch:hover .lf-switch-knob { background-color: rgba(255, 255, 255, 0.2); } .lf-clipboard-switch:hover .lf-switch-knob { background-color: rgba(255, 255, 255, 0.2); } .lf-clipboard-switch .lf-switch-labels { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-weight: 550; color: #ffffff; pointer-events: none; z-index: 1; transition: opacity 0.3s ease-in-out; text-shadow: 0 1px 2px rgb(0, 0, 0); } .lf-clipboard-switch .lf-switch-labels .lf-text-clipspace, .lf-clipboard-switch .lf-switch-labels .lf-text-system { position: absolute; transition: opacity 0.2s ease-in-out; } .lf-clipboard-switch .lf-switch-labels .lf-text-clipspace { opacity: 0; } .lf-clipboard-switch .lf-switch-labels .lf-text-system { opacity: 1; padding-left: 20px; } .lf-clipboard-switch .lf-switch-knob .lf-switch-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; } .lf-clipboard-switch .lf-switch-knob .lf-switch-icon img { width: 100%; height: 100%; } /* Checked state */ .lf-clipboard-switch:has(input:checked) { background: linear-gradient(to right, rgba(58, 118, 214, 0.72), rgba(255, 255, 255, 0.08) 70%); border-color: rgba(90, 170, 255, 0.7); } .lf-clipboard-switch:has(input:checked):hover { background: linear-gradient(to right, rgba(74, 134, 228, 0.8), rgba(255, 255, 255, 0.14) 70%); border-color: rgba(124, 204, 255, 0.85); } .lf-clipboard-switch input:checked ~ .lf-switch-knob { left: calc(100% - 26px); } .lf-clipboard-switch input:checked ~ .lf-switch-knob .lf-switch-icon img { filter: none; } .lf-clipboard-switch input:checked ~ .lf-switch-labels .lf-text-clipspace { opacity: 1; color: #fff; padding-right: 20px; } .lf-clipboard-switch input:checked ~ .lf-switch-labels .lf-text-system { opacity: 0; } /* Disabled state for switch */ .lf-clipboard-switch.lf-disabled { cursor: not-allowed; opacity: 0.6; background: rgba(0, 0, 0, 0.18) !important; /* Override gradient */ border-color: rgba(255, 255, 255, 0.1) !important; transform: none !important; box-shadow: none !important; } .lf-clipboard-switch.lf-disabled .lf-switch-knob { background-color: rgba(255, 255, 255, 0.08) !important; } .lf-clipboard-switch.lf-disabled .lf-switch-labels { color: #777 !important; } .lf-painter-separator { width: 1px; height: 24px; background-color: rgba(255, 255, 255, 0.16); margin: 0 8px; } .lf-painter-container { background: transparent; border: 1px solid var(--lf-surface-border, rgba(255, 255, 255, 0.14)); border-radius: 6px; box-shadow: inset 0 0 10px var(--lf-surface-shadow, rgba(0, 0, 0, 0.12)); transition: border-color 0.3s ease; /* Dodano dla płynnej zmiany ramki */ } .lf-painter-container.lf-drag-over { border-color: #00ff00; /* Zielona ramka podczas przeciągania */ border-style: dashed; } .lf-painter-dialog { background: #404040; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); padding: 20px; color: #ffffff; } .lf-painter-dialog input { background: #303030; border: 1px solid #505050; border-radius: 4px; color: #ffffff; padding: 4px 8px; margin: 4px; width: 80px; } .lf-painter-dialog button { background: #505050; border: 1px solid #606060; border-radius: 4px; color: #ffffff; padding: 4px 12px; margin: 4px; cursor: pointer; } .lf-painter-dialog button:hover { background: #606060; } .lf-blend-opacity-slider { width: 100%; margin: 5px 0; display: none; } .lf-blend-mode-active .lf-blend-opacity-slider { display: block; } .lf-blend-mode-item { padding: 5px; cursor: pointer; position: relative; } .lf-blend-mode-item.lf-active { background-color: rgba(0,0,0,0.1); } .lf-blend-mode-item.lf-active { background-color: rgba(0,0,0,0.1); } .lf-painter-tooltip { position: fixed; display: none; background: #2B2B2B; color: #f0f0f0; border: 1px solid #444; border-top: 2px solid #4a90e2; border-radius: 6px; padding: 12px 18px; z-index: 9999; font-size: 12px; line-height: 1.5; width: auto; max-width: min(450px, calc(100vw - 30px)); box-shadow: 0 4px 15px rgba(0,0,0,0.3); pointer-events: none; transform-origin: top left; transition: transform 0.2s ease; will-change: transform; } .lf-painter-tooltip.lf-scale-down { transform: scale(0.9); transform-origin: top; } .lf-painter-tooltip.lf-scale-down-more { transform: scale(0.8); transform-origin: top; } .lf-painter-tooltip table { width: 100%; border-collapse: collapse; margin: 8px 0; } .lf-painter-tooltip table td { padding: 4px 8px; vertical-align: middle; transition: background-color 0.2s; } .lf-painter-tooltip table td:first-child { width: auto; white-space: nowrap; min-width: fit-content; } .lf-painter-tooltip table td:last-child { width: auto; } .lf-painter-tooltip table tr:nth-child(odd) td { background-color: rgba(255, 255, 255, 0.02); } .lf-painter-tooltip table tr:hover td { background-color: rgba(74, 144, 226, 0.15); } @media (max-width: 600px) { .lf-painter-tooltip { font-size: 11px; padding: 8px 12px; } .lf-painter-tooltip table td { padding: 2px 4px; } .lf-painter-tooltip kbd { padding: 1px 4px; font-size: 10px; } .lf-painter-tooltip table td:first-child { width: 40%; } .lf-painter-tooltip table td:last-child { width: 60%; } .lf-painter-tooltip h4 { font-size: 12px; margin-top: 8px; margin-bottom: 4px; } } @media (max-width: 400px) { .lf-painter-tooltip { font-size: 10px; padding: 6px 8px; } .lf-painter-tooltip table td { padding: 1px 3px; } .lf-painter-tooltip kbd { padding: 0px 3px; font-size: 9px; } .lf-painter-tooltip table td:first-child { width: 35%; } .lf-painter-tooltip table td:last-child { width: 65%; } .lf-painter-tooltip h4 { font-size: 11px; margin-top: 6px; margin-bottom: 3px; } } .lf-painter-tooltip::-webkit-scrollbar { width: 8px; } .lf-painter-tooltip::-webkit-scrollbar-track { background: #2a2a2a; border-radius: 4px; } .lf-painter-tooltip::-webkit-scrollbar-thumb { background: #555; border-radius: 4px; } .lf-painter-tooltip::-webkit-scrollbar-thumb:hover { background: #666; } .lf-painter-tooltip h4 { margin-top: 10px; margin-bottom: 6px; color: #4a90e2; border-bottom: 1px solid #4a90e2; padding-bottom: 4px; font-size: 14px; font-weight: 600; } .lf-painter-tooltip h4:first-child { margin-top: 0; } .lf-painter-tooltip ul { list-style: none; padding-left: 10px; margin: 0; } .lf-painter-tooltip kbd { background-color: #444; border: 1px solid #555; border-bottom-width: 2px; border-radius: 4px; padding: 2px 6px; font-family: monospace; font-size: 11px; color: #e0e0e0; box-shadow: 0 1px 1px rgba(0,0,0,0.15); margin: 0 1px; display: inline-block; vertical-align: middle; } .lf-painter-container.lf-has-focus { /* Używamy box-shadow, aby stworzyć efekt zewnętrznej ramki, która nie wpłynie na rozmiar ani pozycję elementu. */ box-shadow: 0 0 0 2px white; /* Możesz też zmienić kolor istniejącej ramki, ale box-shadow jest bardziej wyrazisty */ /* border-color: white; */ } .lf-painter-button.lf-matting-button { position: relative; transition: all 0.3s ease; overflow: hidden; } .lf-painter-button.lf-matting-button.lf-loading { padding-right: 36px; /* Make space for spinner */ cursor: wait; } .lf-painter-button.lf-matting-button .lf-matting-spinner { display: none; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 50%; border-top-color: #fff; will-change: transform; } .lf-painter-button.lf-matting-button.lf-loading .lf-matting-spinner { display: block; } .lf-painter-button.lf-matting-button .lf-matting-download-progress { display: none; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; overflow: hidden; background: rgba(255, 255, 255, 0.18); pointer-events: none; z-index: 1; } .lf-painter-button.lf-matting-button.lf-downloading .lf-matting-download-progress { display: block; } .lf-painter-button.lf-matting-button .lf-matting-download-progress-fill { display: block; width: 0; height: 100%; background: #39d353; box-shadow: 0 0 5px rgba(57, 211, 83, 0.85); transition: width 0.12s linear; } .lf-matting-settings-button { color: #d7d7d7; font-size: 17px; } .lf-matting-settings-button:hover { color: #fff; } .lf-matting-settings-backdrop { position: fixed; inset: 0; z-index: 1000000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, 0.72); } .lf-matting-settings-dialog { width: min(520px, 100%); max-height: min(680px, 100%); overflow: auto; color: #f2f2f2; background: #303030; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 9px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55); } .lf-matting-settings-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid #484848; } .lf-matting-settings-header h2 { margin: 0; font-size: 18px; font-weight: 600; } .lf-matting-settings-close { width: 30px; height: 30px; padding: 0; color: #d0d0d0; font-size: 24px; line-height: 1; cursor: pointer; background: transparent; border: 1px solid transparent; border-radius: 4px; } .lf-matting-settings-close:hover { color: #fff; background: #484848; border-color: #666; } .lf-matting-settings-body { display: flex; flex-direction: column; gap: 16px; padding: 18px; } .lf-matting-settings-row { display: flex; flex-direction: column; gap: 7px; } .lf-matting-settings-label { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 13px; font-weight: 600; } .lf-matting-tooltip-badge { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex: 0 0 auto; margin-left: 2px; color: rgba(255, 255, 255, 0.7); font-size: 11px; font-weight: 700; line-height: 1; cursor: help; user-select: none; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 50%; } .lf-matting-tooltip-badge:hover, .lf-matting-tooltip-badge:focus-visible { color: #d9ecff; outline: none; background: rgba(78, 161, 255, 0.18); border-color: rgba(78, 161, 255, 0.65); } .lf-painter-tooltip.lf-matting-tooltip { min-width: 220px; max-width: min(320px, calc(100vw - 24px)); padding: 8px 10px; color: #f2f2f2; font-size: 12px; font-weight: 400; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; background: rgba(34, 34, 38, 0.98); border: 1px solid #555; border-radius: 8px; z-index: 1000001; } .lf-matting-settings-select { width: 100%; min-height: 34px; padding: 6px 9px; color: #f4f4f4; cursor: pointer; background: #252525; border: 1px solid #5a5a5a; border-radius: 4px; } .lf-matting-settings-input { width: 100%; min-height: 34px; box-sizing: border-box; padding: 6px 9px; color: #f4f4f4; background: #252525; border: 1px solid #5a5a5a; border-radius: 4px; } .lf-matting-settings-token { display: flex; flex-direction: column; gap: 8px; } .lf-matting-settings-token-clear { display: flex; align-items: center; gap: 7px; color: #bdbdbd; font-size: 11px; } .lf-matting-settings-token-clear input { margin: 0; } .lf-matting-settings-select:focus, .lf-matting-settings-input:focus, .lf-matting-settings-threshold input:focus { outline: 2px solid #4b8fe8; outline-offset: 1px; } .lf-matting-settings-status { margin: 0; color: #bdbdbd; font-size: 11px; line-height: 1.4; } .lf-matting-model-details { display: flex; flex-direction: column; gap: 8px; margin-top: -7px; padding: 10px 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid #4b4b4b; border-radius: 4px; } .lf-matting-model-description { margin: 0; color: #d2d2d2; font-size: 12px; line-height: 1.45; } .lf-matting-model-links { display: flex; flex-wrap: wrap; gap: 12px; } .lf-matting-model-link { color: #76adff; font-size: 11px; text-decoration: none; } .lf-matting-model-link:hover { color: #a9ccff; text-decoration: underline; } .lf-matting-settings-threshold { display: flex; align-items: center; gap: 12px; } .lf-matting-settings-threshold input { flex: 1; accent-color: #4b8fe8; } .lf-matting-settings-threshold-value { min-width: 38px; color: #fff; font-family: monospace; text-align: right; } .lf-matting-settings-status { padding: 10px 12px; background: rgba(75, 143, 232, 0.1); border: 1px solid rgba(75, 143, 232, 0.28); border-radius: 4px; } .lf-matting-settings-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px 18px; border-top: 1px solid #484848; } .lf-matting-settings-actions button { min-height: 34px; padding: 6px 14px; color: #fff; cursor: pointer; border-radius: 4px; } .lf-matting-settings-secondary { background: #414141; border: 1px solid #5c5c5c; } .lf-matting-settings-primary { background: #3a76d6; border: 1px solid #2a6ac4; } .lf-matting-settings-actions button:hover { filter: brightness(1.12); } .lf-painter-modal-backdrop { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(0, 0, 0, 0.8); z-index: 999999; display: flex; align-items: center; justify-content: center; } .lf-painter-modal-content { width: 90vw; height: 90vh; background-color: #353535; border: 1px solid #222; border-radius: 8px; box-shadow: 0 5px 25px rgba(0,0,0,0.5); display: flex; flex-direction: column; position: relative; } .lf-painter-main-container { --lf-controls-surface: rgba(0, 0, 0, 0.2); --lf-layers-surface: rgba(0, 0, 0, 0.2); --lf-canvas-fill: rgba(96, 96, 96, 0.72); --lf-surface-border: rgba(255, 255, 255, 0.18); --lf-surface-shadow: rgba(0, 0, 0, 0.12); background: transparent; display: flex; flex-direction: column; height: 100%; flex-grow: 1; } .lf-painter-canvas-container { background: transparent; flex-grow: 1; position: relative; }