/* Image Resize - Kawaii Bear Theme */
.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.back-link {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-light);
  text-decoration: none;
  transition: transform 0.15s;
}

.back-link:hover {
  transform: scale(1.03);
}

/* 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);
}

.privacy-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* 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-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-hint {
  font-size: 0.85rem !important;
  margin-top: 6px;
}

/* File list */
.file-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Result card */
.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: 14px 18px;
}

.result-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-input);
  flex-shrink: 0;
}

.result-info {
  flex: 1;
  min-width: 0;
}

.result-name {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Resize options panel */
.resize-options {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.resize-options label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.resize-options input[type="number"] {
  width: 80px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
}

.resize-options select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
}

/* Status badges */
.result-status {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-btn);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-pending {
  background: var(--surface-hover);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.status-processing {
  background: var(--surface-hover);
  color: var(--text-muted);
  border: 1px solid var(--border);
  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);
}

/* Preset buttons */
.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  margin-bottom: 8px;
}

.preset-btn {
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.preset-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

.preset-btn.preset-active {
  background: var(--primary-gradient);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Input row */
.input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.input-row label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 20px;
}

.input-row input[type="number"] {
  width: 90px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.lock-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.15s;
  flex-shrink: 0;
}

.lock-btn:hover {
  border-color: var(--primary-light);
}

.lock-btn.locked {
  background: var(--surface-hover);
  border-color: var(--primary);
}

/* Result summary */
.result-summary {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 0.85rem;
}

.summary-label {
  color: var(--text-muted);
  font-weight: 600;
}

.summary-value {
  color: var(--text);
  font-weight: 600;
}

.size-saved {
  color: var(--safe);
  font-weight: 700;
}

.summary-privacy {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  color: var(--safe);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Actions */
.file-actions {
  display: flex;
  gap: 8px;
  padding: 0 18px 14px;
}

.file-actions .btn {
  font-size: 0.85rem;
  padding: 10px 20px;
  min-height: 40px;
}

@media (max-width: 600px) {
  .header-left { gap: 6px; }
  .back-link { font-size: 1rem; }
  .site-logo { width: 48px; height: 48px; }
  .logo-link { font-size: 1rem; gap: 6px; }
  .drop-zone { padding: 36px 16px; }
  .resize-options { flex-direction: column; }
}
