/* WhatsIssue AI Evidence Scanner */
.wies-wrap { max-width: 800px; margin: 0 auto; padding: 0 0 60px; color: #e8e8e8; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.wies-wrap * { box-sizing: border-box; }

/* HOW TO USE */
.wies-how-to { display: flex; gap: 16px; background: #1a1a2e; border: 1px solid #2a2a45; border-radius: 12px; padding: 20px; margin-bottom: 28px; }
.wies-how-icon { font-size: 28px; flex-shrink: 0; }
.wies-how-to strong { display: block; font-size: 15px; color: #fff; margin-bottom: 6px; }
.wies-how-to p { margin: 0; font-size: 14px; color: #b8b8b8; line-height: 1.6; }

/* UPLOAD ZONE */
.wies-upload-zone { border: 2px dashed #2a2a45; border-radius: 16px; background: #0d0d1a; transition: all 0.2s ease; cursor: pointer; }
.wies-upload-zone:hover, .wies-upload-zone.wies-drag-over { border-color: #ff4757; background: rgba(255,71,87,0.05); }
.wies-upload-inner { padding: 48px 24px; text-align: center; }
.wies-upload-icon { font-size: 56px; margin-bottom: 16px; }
.wies-upload-title { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.wies-upload-sub { font-size: 14px; color: #666; margin-bottom: 12px; }
.wies-upload-examples { font-size: 13px; color: #555; margin-bottom: 28px; }

/* BUTTONS */
.wies-btn { display: inline-block; padding: 14px 28px; border-radius: 8px; font-weight: 700; font-size: 15px; text-decoration: none; border: none; cursor: pointer; transition: all 0.2s ease; font-family: inherit; }
.wies-btn-upload { background: linear-gradient(135deg, #ff4757, #ff6b6b); color: #fff !important; box-shadow: 0 6px 20px rgba(255,71,87,0.35); }
.wies-btn-upload:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,71,87,0.45); color: #fff !important; }
.wies-btn-scan { background: linear-gradient(135deg, #ff4757, #ff6b6b); color: #fff !important; box-shadow: 0 6px 20px rgba(255,71,87,0.35); width: 100%; margin-bottom: 12px; }
.wies-btn-scan:hover { transform: translateY(-2px); color: #fff !important; }
.wies-btn-ghost { background: transparent; color: #888 !important; border: 1px solid #333; width: 100%; }
.wies-btn-ghost:hover { border-color: #666; color: #ccc !important; }
.wies-btn-action { background: linear-gradient(135deg, #ff4757, #ff6b6b); color: #fff !important; box-shadow: 0 6px 20px rgba(255,71,87,0.35); display: block; text-align: center; margin-bottom: 12px; }
.wies-btn-action:hover { transform: translateY(-2px); color: #fff !important; }

/* PREVIEW */
.wies-preview { margin-top: 20px; }
.wies-preview-inner { background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 12px; padding: 24px; }
.wies-preview-inner img { max-width: 100%; max-height: 300px; border-radius: 8px; display: block; margin: 0 auto 16px; }
.wies-preview-pdf { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; background: #0d0d1a; border-radius: 8px; padding: 16px; }
.wies-pdf-icon { font-size: 32px; }
.wies-preview-info { margin-bottom: 20px; }
.wies-file-name { font-size: 15px; color: #fff; font-weight: 600; margin-bottom: 4px; }
.wies-file-size { font-size: 13px; color: #666; }

/* LOADING */
.wies-loading { margin-top: 20px; }
.wies-loading-inner { background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 12px; padding: 36px 24px; text-align: center; }
.wies-spinner { width: 48px; height: 48px; border: 4px solid #2a2a2a; border-top-color: #ff4757; border-radius: 50%; animation: wies-spin 0.8s linear infinite; margin: 0 auto 20px; }
@keyframes wies-spin { to { transform: rotate(360deg); } }
.wies-loading-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 24px; }
.wies-loading-steps { display: flex; flex-direction: column; gap: 10px; max-width: 300px; margin: 0 auto; text-align: left; }
.wies-step { font-size: 14px; color: #555; padding: 8px 12px; border-radius: 6px; transition: all 0.3s ease; }
.wies-step-active { color: #ff4757; background: rgba(255,71,87,0.1); font-weight: 600; }
.wies-step-done { color: #2ecc71; }

/* RESULTS */
.wies-results { margin-top: 20px; }
.wies-results-header { background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 12px 12px 0 0; padding: 24px; }
.wies-results-title { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.wies-results-summary { font-size: 15px; color: #b8b8b8; line-height: 1.6; }

/* Savings banner */
.wies-savings-banner { background: linear-gradient(135deg, rgba(255,71,87,0.15), rgba(255,71,87,0.05)); border: 1px solid rgba(255,71,87,0.3); border-top: none; padding: 24px; text-align: center; }
.wies-savings-amount { font-size: 48px; font-weight: 900; color: #ff4757; line-height: 1; }
.wies-savings-label { font-size: 14px; color: #999; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Issue cards */
.wies-issue { background: #1a1a1a; border: 1px solid #2a2a2a; border-top: none; padding: 20px 24px; }
.wies-issue:last-of-type { border-radius: 0; }
.wies-issue-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.wies-issue-title { font-size: 16px; font-weight: 700; color: #fff; flex: 1; }
.wies-issue-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.wies-issue-amount { font-size: 18px; font-weight: 800; color: #fff; }
.wies-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.wies-badge-high   { background: rgba(255,71,87,0.2);   color: #ff4757; }
.wies-badge-medium { background: rgba(255,196,0,0.2);   color: #ffc400; }
.wies-badge-low    { background: rgba(46,204,113,0.2);  color: #2ecc71; }
.wies-issue-desc { font-size: 14px; color: #999; line-height: 1.6; margin-bottom: 10px; }
.wies-issue-action { font-size: 14px; color: #b8b8b8; background: #111; border-left: 3px solid #ff4757; padding: 10px 14px; border-radius: 0 6px 6px 0; }
.wies-issue-action strong { color: #ff4757; }

/* Clean bill */
.wies-clean { background: #1a1a1a; border: 1px solid #2a2a2a; border-top: none; padding: 36px 24px; text-align: center; }
.wies-clean-icon { font-size: 48px; margin-bottom: 12px; }
.wies-clean-title { font-size: 20px; font-weight: 700; color: #2ecc71; margin-bottom: 8px; }
.wies-clean-text { font-size: 14px; color: #999; max-width: 500px; margin: 0 auto; line-height: 1.6; }

/* Actions */
.wies-actions { background: #1a1a1a; border: 1px solid #2a2a2a; border-top: none; padding: 24px; }

/* Guide */
.wies-results-guide { background: #0d0d1a; border: 1px solid #1a1a2e; border-top: none; border-radius: 0 0 12px 12px; padding: 20px 24px; font-size: 13px; color: #666; }
.wies-results-guide strong { color: #888; display: block; margin-bottom: 10px; }
.wies-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.wies-legend .wies-badge { margin-right: 4px; }
.wies-results-guide p { margin: 0; }

/* Error */
.wies-error, .wies-limit { background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 12px; padding: 36px 24px; text-align: center; margin-top: 20px; }
.wies-error-icon, .wies-limit-icon { font-size: 48px; margin-bottom: 12px; }
.wies-error-msg { font-size: 16px; color: #ffc400; margin-bottom: 20px; line-height: 1.6; }
.wies-limit-title { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.wies-limit-text { font-size: 14px; color: #999; margin-bottom: 24px; line-height: 1.6; }

/* Responsive */
@media (max-width: 600px) {
    .wies-upload-inner { padding: 32px 16px; }
    .wies-savings-amount { font-size: 36px; }
    .wies-issue-header { flex-direction: column; }
    .wies-issue-right { flex-direction: row; align-items: center; }
    .wies-legend { flex-direction: column; gap: 6px; }
}
