/* =========================================================
   SMARTTOOLKITS — IMAGE CONVERTER
   CSS PART 1 — BASE + HEADER + HERO
   ========================================================= */

/* ---------- ROOT ---------- */

:root {
    --bg-main: #070b14;
    --bg-secondary: #0b1120;
    --bg-card: rgba(15, 23, 42, 0.72);
    --bg-card-solid: #0f172a;

    --border: rgba(148, 163, 184, 0.14);
    --border-hover: rgba(59, 130, 246, 0.38);

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --blue: #3b82f6;
    --blue-light: #60a5fa;
    --cyan: #22d3ee;
    --purple: #8b5cf6;

    --gradient-primary: linear-gradient(
        135deg,
        #2563eb 0%,
        #3b82f6 45%,
        #8b5cf6 100%
    );

    --shadow-card:
        0 20px 60px rgba(0, 0, 0, 0.28);

    --shadow-glow:
        0 0 40px rgba(59, 130, 246, 0.12);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;

    --container-width: 1180px;
}


/* ---------- RESET ---------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(37, 99, 235, 0.10),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 25%,
            rgba(139, 92, 246, 0.08),
            transparent 28%
        ),
        var(--bg-main);

    color: var(--text-primary);
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}


/* ---------- COMMON CONTAINER ---------- */

.tool-page {
    width: min(
        calc(100% - 40px),
        var(--container-width)
    );
    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.tool-header {
    position: sticky;
    top: 0;
    z-index: 100;

    width: 100%;

    background: rgba(7, 11, 20, 0.78);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.tool-header-container {
    width: min(
        calc(100% - 40px),
        var(--container-width)
    );

    min-height: 72px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/* ---------- BRAND ---------- */

.tool-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    color: var(--text-primary);

    font-size: 1rem;
    font-weight: 600;

    white-space: nowrap;
}

.tool-brand-mark {
    width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: var(--gradient-primary);

    color: #ffffff;

    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;

    box-shadow:
        0 8px 24px rgba(37, 99, 235, 0.28);
}

.tool-brand-name {
    letter-spacing: -0.01em;
}


/* ---------- NAVIGATION ---------- */

.tool-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-nav-link {
    position: relative;

    padding: 9px 13px;

    color: var(--text-muted);

    font-size: 0.88rem;
    font-weight: 500;

    border-radius: 9px;

    transition:
        color 0.25s ease,
        background 0.25s ease;
}

.tool-nav-link:hover {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.08);
}


/* =========================================================
   HERO
   ========================================================= */

.converter-hero {
    position: relative;

    padding: 82px 0 58px;

    text-align: center;
}

.converter-hero::before {
    content: "";

    position: absolute;
    top: 25px;
    left: 50%;

    width: 460px;
    height: 220px;

    transform: translateX(-50%);

    background:
        radial-gradient(
            ellipse,
            rgba(59, 130, 246, 0.14),
            transparent 68%
        );

    filter: blur(12px);

    pointer-events: none;
}

.converter-hero-content {
    position: relative;
    z-index: 1;

    max-width: 760px;
    margin: 0 auto;
}


/* ---------- HERO LABEL ---------- */

.tool-label {
    display: inline-flex;
    align-items: center;

    margin-bottom: 18px;
    padding: 7px 13px;

    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 999px;

    background: rgba(59, 130, 246, 0.08);

    color: var(--blue-light);

    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
}


/* ---------- HERO HEADING ---------- */

.converter-hero h1 {
    margin-bottom: 15px;

    color: var(--text-primary);

    font-size: clamp(2.35rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.converter-hero h1::after {
    content: "";

    display: block;

    width: 58px;
    height: 3px;

    margin: 18px auto 0;

    border-radius: 999px;

    background: var(--gradient-primary);
}


/* ---------- HERO DESCRIPTION ---------- */

.converter-hero p {
    max-width: 620px;
    margin: 0 auto;

    color: var(--text-secondary);

    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
}


/* ---------- CREATOR ---------- */

.tool-creator {
    margin-top: 20px;

    color: var(--text-muted);

    font-size: 0.82rem;
    font-weight: 400;
}

.tool-creator strong {
    color: var(--blue-light);
    font-weight: 600;
}


/* ---------- WORKSPACE BASE ---------- */

.converter-workspace {
    width: 100%;
    padding-bottom: 80px;
}
/* =========================================================
   CSS PART 2 — UPLOAD AREA
   ========================================================= */

.upload-area {
    width: 100%;
    margin-bottom: 28px;
}

.upload-card {
    position: relative;

    width: 100%;
    min-height: 300px;

    padding: 48px 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    border: 1px dashed rgba(96, 165, 250, 0.35);
    border-radius: var(--radius-xl);

    background:
        linear-gradient(
            145deg,
            rgba(15, 23, 42, 0.82),
            rgba(11, 17, 32, 0.72)
        );

    box-shadow: var(--shadow-card);

    cursor: pointer;
    overflow: hidden;

    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.upload-card::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(59, 130, 246, 0.09),
            transparent 45%
        );

    pointer-events: none;
}

.upload-card:hover {
    border-color: rgba(96, 165, 250, 0.65);

    background:
        linear-gradient(
            145deg,
            rgba(17, 29, 52, 0.9),
            rgba(12, 20, 38, 0.82)
        );

    transform: translateY(-2px);

    box-shadow:
        var(--shadow-card),
        var(--shadow-glow);
}

.upload-card:focus-within {
    border-color: var(--blue);
    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.12),
        var(--shadow-card);
}


/* ---------- UPLOAD ICON ---------- */

.upload-icon {
    position: relative;
    z-index: 1;

    width: 68px;
    height: 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 22px;

    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(37, 99, 235, 0.18),
            rgba(139, 92, 246, 0.12)
        );

    color: var(--blue-light);

    font-size: 1.55rem;

    box-shadow:
        0 12px 35px rgba(37, 99, 235, 0.12);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.upload-card:hover .upload-icon {
    transform: translateY(-3px);

    box-shadow:
        0 16px 40px rgba(37, 99, 235, 0.18);
}


/* ---------- UPLOAD TEXT ---------- */

.upload-card h2 {
    position: relative;
    z-index: 1;

    margin-bottom: 8px;

    color: var(--text-primary);

    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.upload-card p {
    position: relative;
    z-index: 1;

    max-width: 500px;
    margin-bottom: 22px;

    color: var(--text-muted);

    font-size: 0.9rem;
    line-height: 1.7;
}


/* ---------- SELECT BUTTON ---------- */

.upload-button {
    position: relative;
    z-index: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 22px;

    border-radius: 11px;

    background: var(--gradient-primary);

    color: #ffffff;

    font-size: 0.88rem;
    font-weight: 600;

    box-shadow:
        0 10px 28px rgba(37, 99, 235, 0.22);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.upload-card:hover .upload-button {
    transform: translateY(-1px);

    box-shadow:
        0 13px 32px rgba(37, 99, 235, 0.3);
}


/* ---------- SUPPORTED TYPES ---------- */

.upload-card small {
    position: relative;
    z-index: 1;

    display: block;

    margin-top: 18px;

    color: #64748b;

    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    line-height: 1.6;
}


/* =========================================================
   CONVERSION OPTIONS
   ========================================================= */

.conversion-options {
    width: 100%;

    margin-bottom: 28px;
    padding: 28px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: var(--bg-card);

    box-shadow: var(--shadow-card);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}


/* ---------- CONVERSION HEADING ---------- */

.conversion-heading {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-bottom: 24px;
}

.conversion-icon {
    flex: 0 0 auto;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 13px;

    background: rgba(59, 130, 246, 0.09);

    color: var(--blue-light);

    font-size: 1rem;
}

.conversion-heading h2 {
    margin-bottom: 3px;

    color: var(--text-primary);

    font-size: 1.08rem;
    font-weight: 600;
}

.conversion-heading p {
    color: var(--text-muted);

    font-size: 0.8rem;
}


/* ---------- FORMAT CONTROL ---------- */

.format-control {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.format-control label {
    color: var(--text-secondary);

    font-size: 0.8rem;
    font-weight: 500;
}

.format-control select {
    width: 100%;
    height: 50px;

    padding: 0 15px;

    border: 1px solid var(--border);
    border-radius: 11px;

    outline: none;

    background:
        rgba(7, 11, 20, 0.72);

    color: var(--text-primary);

    font-size: 0.88rem;
    font-weight: 500;

    cursor: pointer;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.format-control select:hover {
    border-color: rgba(96, 165, 250, 0.28);
}

.format-control select:focus {
    border-color: var(--blue);

    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.10);
}

.format-control select option {
    background: #0f172a;
    color: #f8fafc;
}
/* =========================================================
   CSS PART 3 — CONVERTER ACTION + RESULT
   ========================================================= */

/* ---------- CONVERTER ACTION ---------- */

.converter-action {
    display: flex;
    align-items: center;
    justify-content: center;

    margin: 32px 0;
}

.convert-button {
    min-width: 210px;
    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 0 24px;

    border-radius: 12px;

    background: var(--gradient-primary);

    color: #ffffff;

    font-size: 0.9rem;
    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 12px 32px rgba(37, 99, 235, 0.24);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease;
}

.convert-button:not(:disabled):hover {
    transform: translateY(-2px);

    box-shadow:
        0 16px 38px rgba(37, 99, 235, 0.34);
}

.convert-button:not(:disabled):active {
    transform: translateY(0);
}

.convert-button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    box-shadow: none;
}

.convert-button i {
    font-size: 0.85rem;
}


/* =========================================================
   CONVERSION RESULT
   ========================================================= */

.conversion-result {
    width: 100%;

    margin-bottom: 28px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: var(--bg-card);

    box-shadow: var(--shadow-card);

    overflow: hidden;

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}


/* ---------- RESULT HEADER ---------- */

.result-header {
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 20px 24px;

    border-bottom: 1px solid var(--border);
}

.result-label {
    display: block;

    margin-bottom: 4px;

    color: var(--blue-light);

    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.13em;
}

.result-header h2 {
    color: var(--text-primary);

    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}


/* ---------- RESULT STATUS ---------- */

.result-status {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 30px;
    padding: 0 11px;

    border: 1px solid rgba(34, 211, 238, 0.16);
    border-radius: 999px;

    background: rgba(34, 211, 238, 0.06);

    color: #67e8f9;

    font-size: 0.7rem;
    font-weight: 500;
}


/* ---------- RESULT CONTENT ---------- */

.result-content {
    padding: 24px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 22px;
}


/* ---------- RESULT PREVIEW ---------- */

.result-preview {
    position: relative;

    min-height: 300px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 22px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background:
        linear-gradient(
            135deg,
            rgba(7, 11, 20, 0.92),
            rgba(15, 23, 42, 0.82)
        );

    overflow: hidden;
}

.result-preview img {
    display: none;

    max-width: 100%;
    max-height: 420px;

    object-fit: contain;

    border-radius: 10px;

    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.3);
}

.result-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    color: var(--text-muted);
}

.result-placeholder i {
    margin-bottom: 12px;

    color: #475569;

    font-size: 2rem;
}

.result-placeholder p {
    font-size: 0.8rem;
}


/* ---------- RESULT DETAILS ---------- */

.result-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-info {
    min-height: 78px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 14px 16px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: rgba(7, 11, 20, 0.42);
}

.result-info span {
    margin-bottom: 4px;

    color: var(--text-muted);

    font-size: 0.68rem;
    font-weight: 500;
}

.result-info strong {
    color: var(--text-primary);

    font-size: 0.88rem;
    font-weight: 600;
}


/* ---------- DOWNLOAD BUTTON ---------- */

.download-button {
    grid-column: 1 / -1;

    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 0 20px;

    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 11px;

    background:
        rgba(59, 130, 246, 0.08);

    color: var(--blue-light);

    font-size: 0.86rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.download-button:not(:disabled):hover {
    background:
        rgba(59, 130, 246, 0.15);

    border-color:
        rgba(96, 165, 250, 0.35);

    transform: translateY(-1px);
}

.download-button:not(:disabled):active {
    transform: translateY(0);
}

.download-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.download-button i {
    font-size: 0.8rem;
}
/* =========================================================
   CSS PART 4 — ORIGINAL IMAGE + SETTINGS
   ========================================================= */

/* ---------- ORIGINAL IMAGE SECTION ---------- */

.original-image-section {
    width: 100%;

    margin-bottom: 28px;
    padding: 28px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: var(--bg-card);

    box-shadow: var(--shadow-card);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}


/* ---------- ORIGINAL IMAGE HEADER ---------- */

.original-image-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 22px;
}

.section-label {
    display: block;

    margin-bottom: 5px;

    color: var(--blue-light);

    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.13em;
}

.original-image-header h2 {
    color: var(--text-primary);

    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.image-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 29px;
    padding: 0 11px;

    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 999px;

    background: rgba(148, 163, 184, 0.06);

    color: var(--text-muted);

    font-size: 0.68rem;
    font-weight: 500;
}


/* ---------- ORIGINAL IMAGE CONTENT ---------- */

.original-image-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 22px;
}


/* ---------- ORIGINAL PREVIEW ---------- */

.original-preview {
    position: relative;

    min-height: 260px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background:
        linear-gradient(
            135deg,
            rgba(7, 11, 20, 0.92),
            rgba(15, 23, 42, 0.82)
        );

    overflow: hidden;
}

.original-preview img {
    display: none;

    max-width: 100%;
    max-height: 360px;

    object-fit: contain;

    border-radius: 10px;

    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.28);
}

.original-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    color: var(--text-muted);
}

.original-placeholder i {
    margin-bottom: 11px;

    color: #475569;

    font-size: 1.9rem;
}

.original-placeholder p {
    font-size: 0.8rem;
}


/* ---------- ORIGINAL IMAGE INFO ---------- */

.original-image-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    min-height: 76px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 14px 16px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: rgba(7, 11, 20, 0.42);
}

.info-item span {
    margin-bottom: 4px;

    color: var(--text-muted);

    font-size: 0.68rem;
    font-weight: 500;
}

.info-item strong {
    color: var(--text-primary);

    font-size: 0.88rem;
    font-weight: 600;
}


/* =========================================================
   CONVERSION SETTINGS
   ========================================================= */

.settings-section {
    width: 100%;

    margin-bottom: 28px;
    padding: 28px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: var(--bg-card);

    box-shadow: var(--shadow-card);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}


/* ---------- SETTINGS HEADER ---------- */

.settings-header {
    margin-bottom: 24px;
}

.settings-header h2 {
    margin-bottom: 6px;

    color: var(--text-primary);

    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.settings-header p {
    color: var(--text-muted);

    font-size: 0.8rem;
    line-height: 1.7;
}


/* ---------- SETTINGS GRID ---------- */

.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}


/* ---------- SETTING CARD ---------- */

.setting-card {
    min-height: 125px;

    padding: 18px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: rgba(7, 11, 20, 0.38);

    transition:
        border-color 0.25s ease,
        background 0.25s ease;
}

.setting-card:hover {
    border-color: rgba(96, 165, 250, 0.2);

    background: rgba(7, 11, 20, 0.52);
}

.setting-card > label {
    display: block;

    margin-bottom: 13px;

    color: var(--text-secondary);

    font-size: 0.78rem;
    font-weight: 500;
}


/* ---------- RANGE CONTROL ---------- */

.range-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.range-control input[type="range"] {
    width: 100%;
    height: 5px;

    appearance: none;
    -webkit-appearance: none;

    border-radius: 999px;

    background: #1e293b;

    outline: none;

    cursor: pointer;
}

.range-control input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;

    width: 17px;
    height: 17px;

    border: 3px solid #0f172a;
    border-radius: 50%;

    background: var(--blue-light);

    box-shadow:
        0 0 0 1px rgba(96, 165, 250, 0.35);

    cursor: pointer;
}

.range-control input[type="range"]::-moz-range-thumb {
    width: 17px;
    height: 17px;

    border: 3px solid #0f172a;
    border-radius: 50%;

    background: var(--blue-light);

    box-shadow:
        0 0 0 1px rgba(96, 165, 250, 0.35);

    cursor: pointer;
}

.range-control input[type="range"]:focus {
    outline: none;
}

.range-control span {
    flex: 0 0 auto;

    min-width: 42px;

    color: var(--blue-light);

    font-size: 0.75rem;
    font-weight: 600;

    text-align: right;
}


/* ---------- COLOR CONTROL ---------- */

.color-control {
    display: flex;
    align-items: center;
    gap: 11px;
}

.color-control input[type="color"] {
    width: 42px;
    height: 42px;

    padding: 3px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: #0f172a;

    cursor: pointer;
}

.color-control span {
    color: var(--text-muted);

    font-size: 0.74rem;
}


/* ---------- CHECKBOX ---------- */

.checkbox-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.checkbox-card > label {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 7px;
}

.checkbox-card input[type="checkbox"] {
    width: 17px;
    height: 17px;

    accent-color: var(--blue);

    cursor: pointer;
}

.checkbox-card label span {
    color: var(--text-secondary);

    font-size: 0.78rem;
    font-weight: 500;
}

.checkbox-card p {
    padding-left: 27px;

    color: var(--text-muted);

    font-size: 0.68rem;
    line-height: 1.55;
}
/* =========================================================
   CSS PART 5 — TOOL INFORMATION + SUPPORTED FORMATS
   ========================================================= */

/* ---------- TOOL INFORMATION ---------- */

.tool-information {
    width: 100%;

    margin-bottom: 28px;
    padding: 34px 28px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: var(--bg-card);

    box-shadow: var(--shadow-card);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}


/* ---------- INFORMATION HEADER ---------- */

.information-header {
    max-width: 680px;

    margin: 0 auto 28px;

    text-align: center;
}

.information-header h2 {
    margin-bottom: 8px;

    color: var(--text-primary);

    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.information-header p {
    color: var(--text-muted);

    font-size: 0.82rem;
    line-height: 1.75;
}


/* ---------- INFORMATION GRID ---------- */

.information-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}


/* ---------- INFORMATION CARD ---------- */

.information-card {
    padding: 22px 20px;

    border: 1px solid var(--border);
    border-radius: 15px;

    background: rgba(7, 11, 20, 0.4);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.information-card:hover {
    transform: translateY(-3px);

    border-color:
        rgba(96, 165, 250, 0.22);

    background:
        rgba(15, 23, 42, 0.58);
}


/* ---------- INFORMATION ICON ---------- */

.information-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 17px;

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            rgba(37, 99, 235, 0.14),
            rgba(139, 92, 246, 0.10)
        );

    color: var(--blue-light);

    font-size: 0.95rem;
}

.information-card h3 {
    margin-bottom: 7px;

    color: var(--text-primary);

    font-size: 0.92rem;
    font-weight: 600;
}

.information-card p {
    color: var(--text-muted);

    font-size: 0.75rem;
    line-height: 1.7;
}


/* =========================================================
   SUPPORTED FORMATS
   ========================================================= */

.supported-formats {
    width: 100%;

    margin-bottom: 28px;
    padding: 30px 28px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: var(--bg-card);

    box-shadow: var(--shadow-card);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}


/* ---------- SUPPORTED HEADER ---------- */

.supported-header {
    margin-bottom: 22px;

    text-align: center;
}

.supported-header h2 {
    color: var(--text-primary);

    font-size: 1.18rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}


/* ---------- FORMAT LIST ---------- */

.format-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.format-item {
    min-width: 70px;

    padding: 9px 15px;

    border: 1px solid rgba(96, 165, 250, 0.14);
    border-radius: 10px;

    background:
        rgba(59, 130, 246, 0.055);

    color: var(--text-secondary);

    font-size: 0.72rem;
    font-weight: 600;

    text-align: center;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.format-item:hover {
    color: var(--blue-light);

    background:
        rgba(59, 130, 246, 0.10);

    border-color:
        rgba(96, 165, 250, 0.28);

    transform: translateY(-2px);
}
/* =========================================================
   CSS PART 6 — HOW TO USE + FOOTER + RESPONSIVE
   ========================================================= */


/* =========================================================
   HOW TO USE
   ========================================================= */

.how-to-section {
    width: 100%;

    margin-bottom: 30px;
    padding: 34px 28px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: var(--bg-card);

    box-shadow: var(--shadow-card);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}


/* ---------- HOW TO HEADER ---------- */

.how-to-header {
    margin-bottom: 30px;

    text-align: center;
}

.how-to-header h2 {
    color: var(--text-primary);

    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}


/* ---------- HOW TO GRID ---------- */

.how-to-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}


/* ---------- HOW TO STEP ---------- */

.how-to-step {
    position: relative;

    min-height: 190px;

    padding: 24px 20px;

    border: 1px solid var(--border);
    border-radius: 15px;

    background: rgba(7, 11, 20, 0.4);

    text-align: center;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.how-to-step:hover {
    transform: translateY(-3px);

    border-color:
        rgba(96, 165, 250, 0.22);

    background:
        rgba(15, 23, 42, 0.58);
}


/* ---------- STEP NUMBER ---------- */

.step-number {
    position: absolute;
    top: 13px;
    right: 15px;

    color: rgba(96, 165, 250, 0.18);

    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}


/* ---------- STEP ICON ---------- */

.step-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 5px auto 16px;

    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            rgba(37, 99, 235, 0.14),
            rgba(139, 92, 246, 0.10)
        );

    color: var(--blue-light);

    font-size: 0.95rem;
}

.how-to-step h3 {
    margin-bottom: 7px;

    color: var(--text-primary);

    font-size: 0.92rem;
    font-weight: 600;
}

.how-to-step p {
    color: var(--text-muted);

    font-size: 0.75rem;
    line-height: 1.65;
}


/* =========================================================
   FOOTER
   ========================================================= */

.tool-footer {
    width: 100%;

    border-top: 1px solid var(--border);

    background:
        rgba(5, 8, 15, 0.72);
}

.tool-footer-content {
    width: min(
        calc(100% - 40px),
        var(--container-width)
    );

    margin: 0 auto;
    padding: 34px 0 28px;

    text-align: center;
}


/* ---------- FOOTER BRAND ---------- */

.tool-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 11px;
}

.tool-footer-brand .tool-brand-mark {
    width: 34px;
    height: 34px;

    border-radius: 10px;

    font-size: 0.74rem;
}

.tool-footer-brand .tool-brand-name {
    color: var(--text-primary);

    font-size: 0.92rem;
    font-weight: 600;
}

.tool-footer-content > p {
    margin-bottom: 22px;

    color: var(--text-muted);

    font-size: 0.75rem;
}


/* ---------- FOOTER CREDIT ---------- */

.tool-footer-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;

    padding-top: 18px;

    border-top: 1px solid rgba(148, 163, 184, 0.08);

    color: #64748b;

    font-size: 0.68rem;
}

.tool-footer-credit span:last-child {
    color: var(--blue-light);
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 900px) {

    .converter-hero {
        padding: 70px 0 48px;
    }

    .result-content {
        grid-template-columns: 1fr;
    }

    .result-details {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .download-button {
        grid-column: auto;
    }

    .original-image-content {
        grid-template-columns: 1fr;
    }

    .original-image-info {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .settings-grid {
        grid-template-columns: 1fr 1fr;
    }

    .checkbox-card {
        grid-column: 1 / -1;
    }

    .information-grid,
    .how-to-grid {
        grid-template-columns: 1fr 1fr;
    }

    .how-to-step:last-child {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .tool-page {
        width: min(
            calc(100% - 24px),
            var(--container-width)
        );
    }

    .tool-header-container {
        width: min(
            calc(100% - 24px),
            var(--container-width)
        );

        min-height: 64px;
    }

    .tool-navigation {
        gap: 2px;
    }

    .tool-nav-link {
        padding: 8px 9px;

        font-size: 0.74rem;
    }

    .tool-brand {
        gap: 8px;

        font-size: 0.86rem;
    }

    .tool-brand-mark {
        width: 34px;
        height: 34px;

        border-radius: 9px;
    }

    .converter-hero {
        padding: 56px 0 38px;
    }

    .converter-hero h1 {
        font-size: 2.25rem;
    }

    .converter-hero p {
        font-size: 0.86rem;
    }

    .converter-workspace {
        padding-bottom: 55px;
    }

    .upload-card {
        min-height: 270px;

        padding: 38px 20px;
    }

    .upload-card h2 {
        font-size: 1.1rem;
    }

    .upload-card p {
        font-size: 0.8rem;
    }

    .conversion-options,
    .original-image-section,
    .settings-section,
    .tool-information,
    .supported-formats,
    .how-to-section {
        padding: 23px 18px;
    }

    .result-header,
    .original-image-header {
        padding: 18px;

        align-items: flex-start;
    }

    .result-header h2,
    .original-image-header h2 {
        font-size: 0.98rem;
    }

    .result-content {
        padding: 18px;
    }

    .result-preview {
        min-height: 240px;
        padding: 16px;
    }

    .result-details {
        grid-template-columns: 1fr;
    }

    .original-image-info {
        grid-template-columns: 1fr;
    }

    .settings-grid,
    .information-grid,
    .how-to-grid {
        grid-template-columns: 1fr;
    }

    .checkbox-card {
        grid-column: auto;
    }

    .how-to-step:last-child {
        grid-column: auto;
    }

    .information-header h2,
    .supported-header h2,
    .how-to-header h2 {
        font-size: 1.12rem;
    }

    .tool-footer-content {
        width: min(
            calc(100% - 24px),
            var(--container-width)
        );

        padding: 28px 0 24px;
    }

    .tool-footer-credit {
        flex-direction: column;
        gap: 5px;
    }
}


/* =========================================================
   RESPONSIVE — SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .tool-navigation {
        display: none;
    }

    .converter-hero h1 {
        font-size: 2rem;
    }

    .tool-creator {
        font-size: 0.74rem;
    }

    .upload-card {
        min-height: 250px;
    }

    .upload-icon {
        width: 60px;
        height: 60px;

        margin-bottom: 18px;
    }

    .upload-card small {
        font-size: 0.62rem;
    }

    .convert-button {
        width: 100%;
    }
}