/*!
 * Hey Color 2.0.0
 * Uma ferramenta da HeyForge para o Adobe After Effects.
 * Desenvolvido por Neto Salazar.
 * HeyForge - ferramentas feitas por quem vive de movimento, para quem vive de movimento.
 * (c) 2026 HeyForge. Todos os direitos reservados.
 */
:root { --bg:#232323; --bg-soft:#363636; --text:#dedee0; --text-dim:#adadad; --border:#515151; --accent:#3b6bff; --shadow:rgba(0,0,0,.55); color-scheme:dark; font-family:"Segoe UI",Arial,sans-serif; font-size:13px; }
* { box-sizing:border-box; }
* { scrollbar-width:none; -ms-overflow-style:none; }
*::-webkit-scrollbar { display:none; width:0; height:0; }
html { min-height:100%; background:var(--bg); }
body { margin:0; padding:0; min-height:100vh; background:var(--bg); color:var(--text); overflow-x:hidden; user-select:none; }
button,input { font:inherit; }
button { color:inherit; border:0; padding:0; cursor:pointer; background:transparent; -webkit-tap-highlight-color:transparent; }
button:focus-visible,a:focus-visible,input:focus-visible { outline:2px solid var(--text); outline-offset:-2px; }
button:disabled { cursor:default; opacity:.45; }
[hidden] { display:none!important; }
.panel { --unit:0.4px; width:100%; padding:10px 26px; position:relative; }
.topbar { display:flex; align-items:center; justify-content:space-between; min-height:30px; height:30px; }
.brand { display:flex; align-items:center; min-width:0; gap:8px; overflow:hidden; }
.logo { width:30px; height:30px; min-width:30px; min-height:30px; }
.wordmark { font-family:"Segoe UI",-apple-system,Roboto,Arial,sans-serif; font-size:14px; font-weight:700; line-height:1; color:var(--text); white-space:nowrap; min-width:0; overflow:hidden; text-overflow:ellipsis; }
.wordmark span { color:var(--accent); }
.icon-button { display:flex; justify-content:center; align-items:center; flex:none; border-radius:6px; color:var(--text-dim); width:28px; height:28px; min-width:28px; min-height:28px; }
.icon-button svg { display:block; width:14px; height:14px; pointer-events:none; }
.icon-button { transition:color .15s ease; }
.icon-button:not(:disabled):hover { color:var(--accent); }
.icon-button:active { transform:translateY(1px); }
.settings { width:28px; height:28px; }
.settings svg { width:16px; height:16px; transition:transform .2s ease; transform-origin:50% 50%; }
.settings:hover svg,.settings[aria-expanded="true"] svg { transform:rotate(45deg); }
.settings[aria-expanded="true"] { color:var(--accent); }
.toolbar { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:4px; margin-bottom:6px; min-height:22px; }
.profile-select { height:22px; min-height:22px; width:43.34%; min-width:90px; max-width:160px; display:flex; align-items:center; justify-content:space-between; gap:8px; padding:0 7px; background:var(--bg-soft); color:var(--text-dim); border-radius:3px; font-family:"Segoe UI",Arial,sans-serif; font-weight:400; font-size:12px; text-align:left; }
#profile-name { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.profile-select .chevron { width:8px; height:5px; min-width:8px; min-height:5px; flex:none; }
.profile-actions { display:flex; align-items:center; gap:6px; }
.profile-actions .icon-button,.profile-actions .delete { width:22px; height:22px; }
.profile-actions .eyedropper svg { width:14px; height:14px; }
.palette { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:clamp(3px,.833vw,6.645px); width:100%; }
.swatch { display:block; position:relative; width:100%; padding-top:100%; background:var(--color); border-radius:clamp(3px,1vw,8px); }
.swatch:hover { box-shadow:inset 0 0 0 2px #ffffff35; }
.swatch:disabled { opacity:1; cursor:wait; }
.swatch.empty { background:var(--bg-soft); }
.swatch.empty:after { content:'+'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:var(--text-dim); font-size:clamp(20px,5vw,40px); }
.floating { position:fixed; z-index:50; background:var(--bg-soft); border:1px solid var(--border); box-shadow:0 8px 24px var(--shadow); overflow-y:auto; }
.settings-menu { width:187.5px; max-width:calc(100vw - 8px); border-radius:10px; padding:6px; line-height:1.45; }
.settings-menu__label { font-size:10px; color:var(--text-dim); letter-spacing:.6px; text-transform:uppercase; padding:4px 6px; margin-top:2px; }
.settings-menu__item { display:flex; flex-direction:row; align-items:center; width:100%; font-size:12.5px; color:var(--text); min-height:30px; padding:5px 6px; border-radius:7px; cursor:pointer; text-align:left; text-decoration:none; }
.settings-menu__item:hover { background-color:var(--bg); }
.settings-menu__item--lang[aria-pressed="true"] { background:var(--accent); color:#fff; font-weight:bold; }
.settings-menu__item--plugins,.settings-menu__item--plugins:hover { background:var(--accent); color:#fff; }
.settings-menu__item-icon { display:flex; align-items:center; justify-content:center; width:14px; height:14px; margin-right:8px; flex:none; }
.settings-menu__item-icon svg { width:100%; height:100%; }
.flag-badge { font-size:9px; font-weight:bold; color:var(--text-dim); background:var(--bg); border:1px solid var(--border); border-radius:4px; padding:2px 5px; margin-right:8px; display:flex; align-items:center; }
[aria-pressed="true"] .flag-badge { color:#fff; background:var(--accent); border-color:var(--accent); }
.settings-menu__divider { height:1px; background:var(--border); margin:6px 0; }
.settings-menu__about { padding:2px 6px 4px; }
.settings-menu__about-title { font-size:11.5px; color:var(--text); font-weight:bold; display:inline; }
.settings-menu__about-version { font-size:10px; color:var(--text-dim); display:inline; margin-left:4px; }
.settings-menu__about-desc,.settings-menu__about-credit { font-size:10.5px; color:var(--text-dim); margin-top:2px; }
.profile-menu,.color-menu { border-radius:7px; padding:4px; min-width:150px; max-width:calc(100vw - 8px); }
.profile-menu button,.color-menu button { display:block; width:100%; padding:7px 8px; border-radius:4px; text-align:left; font-size:12px; }
.profile-menu button:hover,.color-menu button:not(:disabled):hover { background:var(--bg); }
.color-menu button[data-danger] { color:#ff6767; }
.settings-menu__item--danger { color:#ff6767; }
.wipe-text { margin:0 0 14px; font-size:12px; line-height:1.5; color:#ccc; }
.modal-actions--single { justify-content:center; }
.modal-actions button.danger { display:flex; align-items:center; justify-content:center; gap:7px; background:#c0392b; color:#fff; border:0; border-radius:6px; padding:8px 18px; font-size:12px; font-weight:600; cursor:pointer; }
.modal-actions button.danger:hover { background:#d8452f; }
.profile-menu [aria-selected="true"] { background:var(--accent); color:#fff; }
.modal { position:fixed; inset:0; z-index:100; background:#0007; display:flex; align-items:center; justify-content:center; padding:8px; }
#dialog { width:100%; max-width:290px; max-height:calc(100vh - 16px); overflow:auto; background:var(--bg-soft); border:1px solid var(--border); border-radius:8px; padding:14px; }
h1 { font-size:14px; margin:0 0 10px; }
#dialog-description { font-size:12px; margin:0 0 10px; line-height:1.45; overflow-wrap:anywhere; }
#dialog-input { width:100%; background:var(--bg); color:var(--text); border:1px solid var(--border); border-radius:4px; padding:7px; user-select:text; }
.dialog-actions { display:flex; justify-content:flex-end; gap:6px; margin-top:12px; }
.dialog-actions button { padding:6px 10px; border-radius:5px; }
#confirm { background:var(--accent); color:white; }
.toast { position:fixed; left:8px; right:8px; bottom:8px; z-index:110; padding:8px 10px; border-radius:6px; background:var(--bg-soft); border:1px solid var(--border); box-shadow:0 3px 15px var(--shadow); color:var(--text); font-size:11px; line-height:1.4; pointer-events:none; }
.toast.error { border-color:#bc5454; }
#dialog.color-dialog { max-width:244px; padding:12px; border-radius:10px; }
.color-dialog h1 { font-size:12px; font-weight:500; margin-bottom:10px; }
.color-sv { height:120px; position:relative; border-radius:7px; background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,transparent); cursor:crosshair; touch-action:none; }
#color-cursor { position:absolute; width:12px; height:12px; border:2px solid #fff; box-shadow:0 0 0 1px #0008; border-radius:50%; transform:translate(-50%,-50%); pointer-events:none; }
.color-hue-row { display:flex; align-items:center; gap:10px; margin:12px 0; }
#color-hue { -webkit-appearance:none; appearance:none; flex:1; min-width:0; height:10px; margin:0; padding:0; border:0; border-radius:8px; background:linear-gradient(to right,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00); cursor:pointer; }
#color-hue::-webkit-slider-thumb { -webkit-appearance:none; width:13px; height:13px; border:2px solid #fff; border-radius:50%; background:transparent; box-shadow:0 0 0 1px #0007; }
#color-preview { width:20px; height:20px; border-radius:4px; border:1px solid #ffffff45; flex:none; }
.color-hex-row { display:flex; align-items:center; padding:0 9px; gap:7px; height:29px; border-radius:5px; background:var(--bg); color:var(--text-dim); }
#color-editor input:not([type="range"]) { width:100%; min-width:0; border:0; border-radius:4px; background:var(--bg); color:var(--text); font-size:11px; user-select:text; }
#color-hex { height:100%; padding:0; text-transform:uppercase; }
.color-rgb-row { display:flex; gap:9px; margin-top:9px; }
.color-rgb-row label { flex:1; min-width:0; text-align:center; }
.color-rgb-row input { height:23px; padding:3px; text-align:center; -moz-appearance:textfield; }
.color-rgb-row input::-webkit-inner-spin-button,.color-rgb-row input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.color-rgb-row span { display:block; font-size:9px; color:var(--text-dim); margin-top:4px; }
#color-error { font-size:11px; line-height:1.4; color:var(--text); margin:9px 0 0; }
#color-editor input[aria-invalid="true"] { outline:1px solid #d96060; }
.color-dialog .dialog-actions { margin-top:10px; font-size:11px; }

.trash-icon {
  overflow: visible;
}

.trash-icon__lid,
.trash-icon__body {
  transform-box: view-box;
}

.trash-icon__lid {
  transform-origin: 80px 170px;
}

.trash-icon.is-animating .trash-icon__lid {
  animation: trashLidPop 0.6s ease;
}

.trash-icon.is-animating .trash-icon__body {
  animation: trashBodyShake 0.6s ease;
}

@keyframes trashLidPop {
  0%   { transform: rotate(0deg); }
  30%  { transform: rotate(-22deg); }
  60%  { transform: rotate(6deg); }
  100% { transform: rotate(0deg); }
}

@keyframes trashBodyShake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-21px); }
  40%      { transform: translateX(21px); }
  60%      { transform: translateX(-13px); }
  80%      { transform: translateX(13px); }
}
