/* Instant Convert UI */
.ic-page {
    font-size: 15px;
    color: #1f2937;
}

/* Friendly page header */
.ic-hero {
    background: linear-gradient(135deg, #1f4f8a 0%, #2a72d4 100%);
    color: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(31, 79, 138, .18);
}

.ic-hero .ic-back {
    margin: 0 0 6px;
    font-size: 13px;
}

.ic-hero .ic-back a {
    color: #dbeafe;
    text-decoration: none;
}

.ic-hero .ic-back a:hover {
    text-decoration: underline;
}

.ic-hero h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
}

.ic-hero-sub {
    margin: 6px 0 0;
    font-size: 15px;
    color: #eaf2fd;
}

.ic-banner {
    background: #eef6ff;
    border: 1px solid #b6d4f5;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 12px 0 18px;
    color: #1f4f8a;
}

/* Privacy reassurance banner */
.ic-privacy {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ic-privacy .ic-lock {
    font-size: 18px;
    line-height: 1;
    flex: 0 0 auto;
}

/* Primary call-to-action convert button */
.btn.ic-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(42, 114, 212, .35);
    transition: filter .12s ease, box-shadow .12s ease;
}

.btn.ic-cta:hover:not([disabled]) {
    filter: brightness(1.07);
    box-shadow: 0 2px 6px rgba(42, 114, 212, .45);
}

.btn.ic-cta:disabled {
    opacity: .6;
    cursor: not-allowed;
    box-shadow: none;
}

/* Spinner used in the button and the active step */
.ic-spin {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .55);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ic-spin 0.7s linear infinite;
}

.ic-spin-sm {
    width: 13px;
    height: 13px;
    border-width: 2px;
    border-color: rgba(31, 79, 138, .35);
    border-top-color: #1f4f8a;
}

@keyframes ic-spin {
    to { transform: rotate(360deg); }
}

/* Conversion phase stepper */
.ic-progress {
    margin: 16px 0;
    padding: 18px 16px 14px;
    border: 1px solid #d0d7de;
    border-radius: 10px;
    background: #fafbfc;
}

.ic-progress.is-failed {
    border-color: #f1aeb5;
    background: #fdf2f3;
}

.ic-progress.is-done {
    border-color: #aedcb9;
    background: #f3fbf5;
}

.ic-stepper {
    list-style: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    margin: 0;
    padding: 0;
}

.ic-step {
    position: relative;
    flex: 1 1 0;
    text-align: center;
    padding: 0 6px;
}

/* Connector line between steps */
.ic-step::before {
    content: "";
    position: absolute;
    top: 16px;
    left: -50%;
    width: 100%;
    height: 3px;
    background: #d8dee4;
    z-index: 0;
}

.ic-step:first-child::before {
    display: none;
}

.ic-step.ic-step-done::before {
    background: #2e9e54;
}

.ic-step-dot {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #c5ccd4;
    color: #6c757d;
    font-weight: 700;
    font-size: 14px;
}

.ic-step-label {
    display: block;
    margin-top: 7px;
    font-size: 13px;
    color: #6c757d;
}

.ic-step-pending .ic-step-dot { border-color: #c5ccd4; color: #9aa4ad; }

.ic-step-active .ic-step-dot {
    border-color: #1f4f8a;
    color: #1f4f8a;
    box-shadow: 0 0 0 4px rgba(31, 79, 138, .12);
}
.ic-step-active .ic-step-label { color: #1f4f8a; font-weight: 600; }

.ic-step-done .ic-step-dot { border-color: #2e9e54; background: #2e9e54; color: #fff; }
.ic-step-done .ic-step-label { color: #2e7d42; }

.ic-step-failed .ic-step-dot { border-color: #c0392b; background: #c0392b; color: #fff; }
.ic-step-failed .ic-step-label { color: #c0392b; font-weight: 600; }

@media (max-width: 560px) {
    .ic-step-label { font-size: 11px; }
    .ic-step-dot { width: 28px; height: 28px; font-size: 12px; }
    .ic-step::before { top: 13px; }
}

.ic-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.ic-tile {
    border: 1px solid #d9dbe7;
    border-radius: 8px;
    padding: 16px 18px;
    width: 280px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
    background: #fff;
}

.ic-tile-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.ic-tile-tag {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-radius: 10px;
    padding: 2px 8px;
    margin-bottom: 8px;
}

.ic-translate { background: #e6f4ea; color: #176b3a; }
.ic-generate { background: #fdecea; color: #9a3412; }

.ic-tile-flow { color: #444; font-size: 13px; margin-bottom: 12px; }

.ic-open {
    display: inline-block;
    background: #1f4f8a;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-weight: 600;
}

.ic-flow { color: #444; margin: 6px 0 14px; font-size: 14px; }
.ic-send { margin: 12px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ic-send label { font-weight: 600; }
.ic-file { color: #176b3a; font-size: 13px; }

/* Prominent "selected file" line with an in-place status badge that updates as phases stream in. */
.ic-chosen {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 4px 0 14px;
    padding: 10px 14px;
    background: #f3fbf5;
    border: 1px solid #cdeccf;
    border-radius: 8px;
}

.ic-chosen-label {
    font-weight: 600;
    color: #475569;
    font-size: 14px;
}

.ic-chosen-name {
    font-size: 17px;
    font-weight: 700;
    color: #14532d;
    word-break: break-all;
}

/* The phase badge sits to the right of the filename and animates between states in place. */
.ic-phase-badge {
    margin-left: auto;
    font-size: 12px;
    letter-spacing: .03em;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

/* "What's in the ZIP" list shown after a multi-artifact download. */
.ic-contents {
    margin: 12px 0;
    padding: 12px 16px;
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 8px;
}
.ic-contents > p { margin: 0 0 6px; font-weight: 600; }
.ic-contents ul { margin: 0; padding-left: 20px; }
.ic-contents li { margin: 3px 0; font-size: 13px; color: #333; }
.ic-size { color: #6c757d; font-size: 12px; }

/* Inline HTML report preview shown after a successful conversion (in-memory only). */
.ic-report {
    margin: 12px 0;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    width: 100%;
}
.ic-report-head {
    padding: 8px 14px;
    background: #f6f8fa;
    border-bottom: 1px solid #d0d7de;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.ic-report-frame {
    display: block;
    width: 100%;
    height: 75vh;
    min-height: 600px;
    border: 0;
    background: #fff;
}
