/* ========================================= */
/* TOOL PAGE */
/* ========================================= */

.tool-page {

    width: 100%;
    min-height: 100vh;

    display: grid;
    grid-template-columns: 420px 1fr;

    gap: 32px;

    padding:

        120px
        40px
        40px
        40px;
}

/* ========================================= */
/* PANELS */
/* ========================================= */

.tool-left-panel,
.tool-right-panel {

    background: rgba(10, 10, 20, 0.72);

    border: 1px solid rgba(255,255,255,0.06);

    border-radius: 24px;

    backdrop-filter: blur(18px);

    padding: 28px;
}

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

.tool-header {

    margin-bottom: 32px;
}

.tool-badge {

    display: inline-flex;

    padding: 6px 12px;

    border-radius: 999px;

    background: rgba(0,255,255,0.12);

    border: 1px solid rgba(0,255,255,0.18);

    color: #6ff;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1px;

    margin-bottom: 18px;
}

.tool-header h1 {

    font-size: 42px;
    font-weight: 800;

    line-height: 1.1;

    margin-bottom: 12px;
}

.tool-header p {

    color: rgba(255,255,255,0.72);

    line-height: 1.7;
}

/* ========================================= */
/* UPLOAD ZONE */
/* ========================================= */

.upload-zone {

    position: relative;

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

    border-radius: 22px;

    border: 2px dashed rgba(0,255,255,0.18);

    background:
        linear-gradient(
            180deg,
            rgba(0,255,255,0.03),
            rgba(255,0,255,0.03)
        );

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

    cursor: pointer;

    transition: 0.3s ease;

    overflow: hidden;

    margin-bottom: 24px;
}

.upload-zone:hover {

    border-color: rgba(0,255,255,0.45);

    transform: translateY(-2px);
}

.upload-zone.dragover {

    border-color: #00ffff;

    background:
        linear-gradient(
            180deg,
            rgba(0,255,255,0.12),
            rgba(255,0,255,0.12)
        );
}

.upload-content {

    text-align: center;

    pointer-events: none;
}

.upload-icon {

    font-size: 48px;

    margin-bottom: 14px;

    color: #00ffff;
}

.upload-content h2 {

    font-size: 24px;
    font-weight: 700;

    margin-bottom: 8px;
}

.upload-content p {

    color: rgba(255,255,255,0.6);

    margin-bottom: 12px;
}

.upload-limit {

    font-size: 13px;

    color: rgba(255,255,255,0.4);
}

/* ========================================= */
/* PREVIEW */
/* ========================================= */

.preview-box {

    width: 100%;

    border-radius: 18px;

    overflow: hidden;

    margin-bottom: 28px;

    border: 1px solid rgba(255,255,255,0.08);
}

.preview-box img {

    width: 100%;

    display: block;
}

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

.tool-settings {

    margin-top: 10px;
}

.tool-settings h3 {

    font-size: 20px;
    font-weight: 700;

    margin-bottom: 22px;
}

.setting-group {

    margin-bottom: 22px;
}

.setting-group label {

    display: block;

    margin-bottom: 10px;

    font-weight: 600;

    color: rgba(255,255,255,0.92);
}

/* ========================================= */
/* RANGE */
/* ========================================= */

.range-wrapper {

    display: flex;
    align-items: center;

    gap: 14px;
}

.range-wrapper input[type="range"] {

    width: 100%;
}

.range-wrapper span {

    min-width: 42px;

    text-align: right;

    color: #00ffff;

    font-weight: 700;
}

/* ========================================= */
/* SELECT */
/* ========================================= */

select {

    width: 100%;

    background: rgba(255,255,255,0.04);

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 12px;

    padding: 14px;

    color: white;

    outline: none;
}

select option {

    background: #111;
}

/* ========================================= */
/* TOGGLES */
/* ========================================= */

.toggle-group {

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

.toggle-group input {

    width: 22px;
    height: 22px;
}

/* ========================================= */
/* BUTTON */
/* ========================================= */

.generate-btn {

    width: 100%;

    border: none;

    border-radius: 18px;

    padding: 18px;

    background:
        linear-gradient(
            90deg,
            #00ffff,
            #ff00ff
        );

    color: black;

    font-size: 16px;
    font-weight: 800;

    cursor: pointer;

    transition: 0.3s ease;

    margin-top: 12px;
}

.generate-btn:hover {

    transform: translateY(-2px);

    opacity: 0.92;
}

/* ========================================= */
/* RIGHT PANEL */
/* ========================================= */

.result-status {

    margin-bottom: 24px;
}

.result-status span {

    color: rgba(255,255,255,0.72);
}

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

.result-container {

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

    border-radius: 22px;

    border: 1px solid rgba(255,255,255,0.08);

    background: rgba(255,255,255,0.02);

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

    overflow: hidden;

    position: relative;
}

.result-placeholder {

    text-align: center;

    color: rgba(255,255,255,0.32);
}

#resultImage {

    width: 100%;
    height: 100%;

    object-fit: contain;
}

/* ========================================= */
/* DOWNLOAD */
/* ========================================= */

.download-btn {

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

    margin-top: 24px;

    width: 100%;

    padding: 18px;

    border-radius: 18px;

    background: rgba(0,255,255,0.08);

    border: 1px solid rgba(0,255,255,0.22);

    color: #00ffff;

    text-decoration: none;

    font-weight: 700;

    transition: 0.3s ease;
}

.download-btn:hover {

    background: rgba(0,255,255,0.16);
}

/* ========================================= */
/* HELPERS */
/* ========================================= */

.hidden {

    display: none !important;
}

/* ========================================= */
/* RESPONSIVE */
/* ========================================= */

@media (max-width: 1200px) {

    .tool-page {

        grid-template-columns: 1fr;

        padding:

            120px
            20px
            20px
            20px;
    }

    .result-container {

        min-height: 400px;
    }
}

@media (max-width: 768px) {

    .tool-header h1 {

        font-size: 32px;
    }

    .tool-left-panel,
    .tool-right-panel {

        padding: 22px;
    }

    .upload-zone {

        min-height: 220px;
    }
}