/* Image flipper page styles. Theme tokens only. */

.image-flipper .tool-title {
    margin-bottom: 0.25rem;
}

.image-flipper .tool-intro {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

/* --- Drop zone --------------------------------------------------------- */

.if-drop {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 7rem;
    padding: 1.25rem;
    border: 2px dashed var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--muted);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.if-drop:hover,
.if-drop:focus-within,
.if-drop.is-dragging {
    border-color: var(--accent);
    background: var(--accent-weak);
}

.if-file {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.if-drop-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    pointer-events: none;
}

.if-drop-text strong {
    color: var(--text);
    font-size: 1.05rem;
}

/* --- Stage: controls + canvas ----------------------------------------- */

.if-stage {
    margin-top: 1.5rem;
}

.if-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.if-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Pressed flip toggle: lift it with the accent so the active state is obvious. */
.if-toggle.is-on {
    border-color: var(--accent);
    background: var(--accent-weak);
    color: var(--accent);
}

.if-download {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.if-reset {
    margin-left: auto;
}

@media (max-width: 560px) {
    .if-reset {
        margin-left: 0;
    }
}

/* --- Canvas ----------------------------------------------------------- */

.if-canvas-wrap {
    display: flex;
    justify-content: center;
}

.if-canvas {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    display: block;
}
