/* tools/ai-image-detector/ic.css - premium look for the team's ImageCheck AI screen (Streamlit layout kept:
   tabs, upload / URL, preview on the left, analysis on the right). Everything is inside .ic. */

.ic .ic-desc { margin: -6px 0 18px; font-size: 15.5px; color: #5b6b82; }
.ic .ic-tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 16px; background: #f1f5f9; border: 1px solid #e2e8f0; margin-bottom: 16px; }
.ic .ic-tab { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 11px 18px; border-radius: 12px; font: 700 14.5px 'Poppins', sans-serif; color: #5b6b82; cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.ic .ic-tab.active { background: #fff; color: #0f2a4a; box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 8px 16px -10px rgba(15, 42, 74, .45); }
.ic .ic-tab i { color: #0d9488; }

.ic .ic-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 240px; padding: 28px; text-align: center; border-radius: 20px; cursor: pointer;
    border: 2px dashed #b9cfe0; background: radial-gradient(500px 220px at 50% 0%, rgba(20, 184, 166, .08), transparent 70%), #f8fbfe; color: #5b6b82; font-size: 14px; transition: border-color .2s, background .2s, box-shadow .2s; }
.ic .ic-drop:hover, .ic .ic-drop:focus-visible { border-color: #5eead4; box-shadow: 0 0 0 5px rgba(20, 184, 166, .1); outline: none; }
.ic .ic-drop.dragging { border-color: #14b8a6; background: #ecfdf9; }
.ic .ic-drop strong { color: #0f172a; font-size: 17px; }
.ic .ic-drop-ic { width: 70px; height: 70px; border-radius: 21px; display: grid; place-items: center; font-size: 28px; color: #fff; margin-bottom: 6px;
    background: linear-gradient(135deg, #0f2a4a, #1d4f80); box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 16px 28px -12px rgba(15, 42, 74, .8); }
.ic .ic-drop-btn { margin-top: 8px; padding: 10px 18px; border-radius: 12px; background: #fff; border: 1px solid #e2e8f0; color: #0f2a4a; font-weight: 700; box-shadow: 0 6px 14px -10px rgba(15, 42, 74, .6); }

.ic .ic-url label { display: block; font-weight: 700; color: #0f172a; margin-bottom: 8px; font-size: 14.5px; }
.ic .ic-url-row { display: flex; gap: 10px; }
.ic .ic-url input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid #e2e8f0; background: #f8fafc; font: 400 15px 'Poppins', sans-serif; color: #0f172a; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.ic .ic-url input:focus { border-color: #14b8a6; background: #fff; box-shadow: 0 0 0 4px rgba(20, 184, 166, .14); }

.ic .ic-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 14px; font: 700 15px 'Poppins', sans-serif; cursor: pointer; color: #fff; transition: transform .2s, box-shadow .2s, opacity .2s; white-space: nowrap; }
.ic .ic-btn--primary { width: 100%; background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); box-shadow: 0 14px 26px -14px rgba(13, 148, 136, .9); }
.ic .ic-btn--dark { background: linear-gradient(135deg, #0f2a4a 0%, #16406b 100%); box-shadow: 0 12px 24px -14px rgba(15, 42, 74, .9); }
.ic .ic-btn:hover:not(:disabled) { transform: translateY(-2px); }
.ic .ic-btn:disabled { opacity: .55; cursor: wait; }

.ic .ic-msg { margin: 12px 0 0; padding: 12px 16px; border-radius: 13px; font-size: 14.5px; font-weight: 600; line-height: 1.55; }
.ic .ic-msg--error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.ic .ic-msg--success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.ic .ic-msg--info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

.ic .ic-work { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 28px; margin-top: 26px; padding-top: 26px; border-top: 1px solid #edf2f7; }
.ic .ic-col h3 { margin: 0 0 12px; font-size: 19px; font-weight: 800; color: #0f172a; }
.ic .ic-frame { border-radius: 20px; overflow: hidden; background: #0b1f3a; border: 1px solid #e2e8f0; box-shadow: 0 24px 40px -26px rgba(15, 42, 74, .6); display: grid; place-items: center; }
.ic .ic-frame img { display: block; max-width: 100%; max-height: 520px; width: auto; height: auto; object-fit: contain; }
.ic .ic-name { margin: 10px 0 4px; font-size: 13px; color: #5b6b82; word-break: break-all; }
.ic .ic-link { border: 0; background: none; padding: 4px 0; color: #0d9488; font: 700 14px 'Poppins', sans-serif; cursor: pointer; }
.ic .ic-link:hover { text-decoration: underline; }

.ic .ic-loading { display: flex; flex-direction: column; align-items: center; padding: 44px 10px; text-align: center; color: #334155; }
.ic .ic-loading p { font-weight: 600; margin: 14px 0 12px; }
.ic .ic-spinner { width: 52px; height: 52px; border-radius: 50%; border: 4px solid #e6eef7; border-top-color: #0f2a4a; border-right-color: #14b8a6; animation: icSpin .85s linear infinite; }
@keyframes icSpin { to { transform: rotate(360deg); } }
.ic .ic-track { width: min(360px, 90%); height: 8px; border-radius: 8px; background: #e8eef6; overflow: hidden; }
.ic .ic-track span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(.05); border-radius: 8px; background: linear-gradient(90deg, #0f2a4a, #14b8a6); transition: transform .4s ease; }

.ic .ic-result { margin-top: 18px; }
.ic .ic-result h4 { margin: 0 0 12px; font-size: 17px; font-weight: 800; color: #0f172a; }
.ic .ic-verdict { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 18px; margin-bottom: 18px; border: 1px solid; }
.ic .ic-verdict > i { width: 50px; height: 50px; border-radius: 15px; flex: none; display: grid; place-items: center; font-size: 21px; color: #fff; }
.ic .ic-verdict b { display: block; font-size: 18px; margin-bottom: 2px; }
.ic .ic-verdict span { font-size: 14.5px; line-height: 1.5; }
.ic .ic-verdict.is-ai { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.ic .ic-verdict.is-ai > i { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 12px 22px -12px rgba(217, 119, 6, .9); }
.ic .ic-verdict.is-human { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.ic .ic-verdict.is-human > i { background: linear-gradient(135deg, #14b8a6, #0d9488); box-shadow: 0 12px 22px -12px rgba(13, 148, 136, .9); }
.ic .ic-score { margin-bottom: 16px; }
.ic .ic-score-top { display: flex; justify-content: space-between; font-size: 15px; color: #0f172a; margin-bottom: 7px; }
.ic .ic-score-top span { font-weight: 700; font-variant-numeric: tabular-nums; color: #0f2a4a; }
.ic .ic-bar { height: 12px; border-radius: 12px; background: #edf2f7; overflow: hidden; }
.ic .ic-bar span { display: block; height: 100%; width: 0; border-radius: 12px; transition: width 1s cubic-bezier(.22, .8, .24, 1); }
.ic .ic-bar--ai span { background: linear-gradient(90deg, #f59e0b, #d97706); }
.ic .ic-bar--human span { background: linear-gradient(90deg, #14b8a6, #0ea5e9); }
.ic .ic-caption { margin: 6px 0 0; font-size: 13px; color: #64748b; line-height: 1.55; }

.ic .ic-howto { margin-top: 26px; padding-top: 22px; border-top: 1px solid #edf2f7; }
.ic .ic-howto h3, .ic .ic-about h3 { margin: 0 0 14px; font-size: 19px; font-weight: 800; color: #0f172a; }
.ic .ic-howto ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ic .ic-howto li { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 16px; background: #f6f9fc; border: 1px solid #e8eef6; font-size: 14.5px; color: #334155; line-height: 1.5; }
.ic .ic-howto li span { width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #0f2a4a, #1d4f80); }
.ic .ic-about { margin-top: 24px; padding: 20px 22px; border-radius: 18px; background: linear-gradient(135deg, #f8fbff, #f0fdfa); border: 1px solid #e3eef5; }
.ic .ic-about p { margin: 0; font-size: 15px; line-height: 1.75; color: #334155; }

.ic-about-band { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 30px; align-items: center; padding: 36px 4%; border-radius: 28px; background: #fff; border: 1px solid #e8eef6;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 10px 24px -12px rgba(15, 42, 74, .22), 0 34px 60px -28px rgba(15, 42, 74, .30); }
.ic-about-band h2 { margin: 14px 0 10px; font-size: clamp(24px, 2.2vw, 32px); font-weight: 800; color: #0f172a; }
.ic-about-band p { margin: 0; font-size: 16px; line-height: 1.8; color: #334155; }
.ic-note { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 20px; background: #fffbeb; border: 1px solid #fde68a; }
.ic-note i { color: #d97706; font-size: 22px; margin-top: 2px; }
.ic-note p { font-size: 15px; color: #78350f; }

@media (max-width: 900px) {
    .ic .ic-work, .ic-about-band { grid-template-columns: 1fr; }
    .ic .ic-howto ol { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .ic .ic-url-row { flex-direction: column; }
    .ic .ic-tabs { display: flex; }
    .ic .ic-tab { flex: 1; justify-content: center; padding: 11px 8px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { .ic * { animation: none !important; transition: none !important; } }
