/* Compress Image - Kawaii Bear Theme (same building blocks as the other ImgCub tools) */

[hidden] { display: none !important; }
/* Privacy notice */
.privacy-notice { display: flex; align-items: center; gap: 10px; background: rgba(0,230,118,0.08); border: 1px solid rgba(0,230,118,0.25); border-radius: var(--radius); padding: 14px 20px; margin-bottom: 18px; font-size: 0.9rem; font-weight: 600; color: var(--safe); word-break: break-word; overflow-wrap: break-word; }
.privacy-icon { font-size: 1.2rem; flex-shrink: 0; }

.tool-card h1 { margin-bottom: 6px; }
.tool-sub { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 18px; }

/* Easy options: task-first choices */
.easy-options { background: var(--surface-hover); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 12px; }
.opt-label { font-size: 0.9rem; font-weight: 800; color: var(--text); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 18px; min-height: 44px; font-family: inherit; font-size: 0.9rem; font-weight: 700; border: 2px solid var(--border); border-radius: var(--radius-btn); background: var(--surface); color: var(--text); cursor: pointer; transition: all 0.15s; line-height: 1.2; }
.chip small { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); }
.chip:hover { border-color: var(--primary-light); color: var(--primary); }
.chip.active { background: var(--primary-gradient); color: #fff; border-color: transparent; box-shadow: 0 0 10px var(--accent-glow); }
.chip.active small { color: rgba(255,255,255,0.9); }
.inline-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inline-row input[type="number"], .inline-row input[type="text"] { width: auto; max-width: 180px; padding: 10px 14px; font-family: inherit; }
.inline-row select { padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-input); background: var(--surface); color: var(--text); font-family: inherit; font-size: 0.9rem; }
.unit { font-weight: 700; color: var(--text-muted); }

.advanced { border-top: 1px dashed var(--border); padding-top: 10px; }
.advanced summary { cursor: pointer; font-size: 0.85rem; font-weight: 700; color: var(--primary); list-style: none; user-select: none; }
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary::before { content: '\25B8  '; }
.advanced[open] summary::before { content: '\25BE  '; }
.advanced-body { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.range-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.range-row label { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); min-width: 110px; }
.range-row input[type="range"] { flex: 1; min-width: 140px; accent-color: var(--primary); cursor: pointer; }
.range-val { font-size: 0.85rem; font-weight: 800; color: var(--text); min-width: 48px; text-align: right; }

/* Drop zone */
.drop-zone { border: 2px dashed var(--primary-light); border-radius: 28px; padding: 56px 20px; text-align: center; cursor: pointer; background: var(--surface); transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s; position: relative; }
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--primary-light); background: var(--surface-hover); transform: scale(1.02); box-shadow: 0 0 24px var(--accent-glow), var(--shadow-hover); }
.drop-zone.compact { padding: 22px 16px; }
.drop-zone.compact .drop-icon { font-size: 2rem; margin-bottom: 4px; }
.drop-icon { font-size: 3.5rem; margin-bottom: 12px; display: block; animation: bear-wave 2s ease-in-out infinite; }
@keyframes bear-wave { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.drop-zone p { color: var(--text-muted); font-size: 0.95rem; }
.drop-btn { margin-top: 14px; pointer-events: none; }
.drop-hint { font-size: 0.85rem !important; margin-top: 6px; }

/* Total summary */
.total-summary { margin-top: 16px; padding: 14px 18px; border-radius: var(--radius); background: rgba(112,184,112,0.1); border: 1px solid rgba(112,184,112,0.35); font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.total-summary .big-save { color: var(--safe); font-size: 1.15rem; font-weight: 800; }

/* File list */
.file-list { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.result-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.result-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.result-header { display: flex; align-items: center; gap: 14px; padding: 12px 16px; flex-wrap: wrap; }
.result-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-input); flex-shrink: 0; background: var(--surface-hover); }
.result-info { flex: 1; min-width: 140px; }
.result-name { font-size: 0.95rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-meta { font-size: 0.85rem; color: var(--text-muted); }
.result-meta b { color: var(--text); }
.size-saved { color: var(--safe); font-weight: 800; }
.size-note { color: var(--caution); font-weight: 700; }
.result-status { font-size: 0.8rem; font-weight: 700; padding: 6px 14px; border-radius: var(--radius-btn); flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; }
.status-pending, .status-working { background: var(--surface-hover); color: var(--text-muted); border: 1px solid var(--border); }
.status-working { animation: pulse-scan 1s ease infinite; }
@keyframes pulse-scan { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.status-done { background: rgba(0,230,118,0.1); color: var(--safe); border: 1px solid rgba(0,230,118,0.3); }
.status-error { background: rgba(248,113,113,0.1); color: var(--warning); border: 1px solid rgba(248,113,113,0.3); }
.result-actions { display: flex; gap: 8px; }
.result-actions .btn { font-size: 0.85rem; padding: 8px 18px; min-height: 40px; white-space: nowrap; }
@media (max-width: 600px) { .result-actions { width: 100%; justify-content: flex-end; } }
.error-msg { padding: 10px 16px; font-size: 0.8rem; color: var(--warning); border-top: 1px solid var(--border); }

/* Big action bar */
.action-bar-sticky { align-items: center; justify-content: center; margin-top: 16px; }
.btn-big { font-size: 1.05rem; padding: 16px 40px; min-height: 58px; }

@media (max-width: 600px) {
  .tool-card { padding: 20px 14px; }
  .drop-zone { padding: 36px 16px; }
  .chip { padding: 8px 14px; font-size: 0.85rem; }
  .btn-big { width: 100%; }
  .action-bar-sticky .btn { flex: 1 1 auto; }
  .range-row label { min-width: 0; width: 100%; }
}
