﻿/*Preview design*/
iframe {
    width: 100%;
    height: 500px;
}  
.preview-section {
    width: 1200px;
    margin: 0 auto;
    /* background: rgba(21, 32, 53, 0.9); */
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    margin-bottom: 50px;
    backdrop-filter: blur(24px);
    box-shadow: 0 32px 80px #fff7ed, 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    display: none;
}

.preview {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    padding: 1.5rem;
}

.ptabs {
    display: flex;
    border-bottom: 1px solid rgba(196,168,130,.1);
    flex-shrink: 0;
    overflow-x: auto;
}

.ptab {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .65rem 1.1rem;
    cursor: pointer;
    white-space: nowrap;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--tan);
    border-bottom: 2px solid transparent;
    transition: all .2s;
    border-right: 1px solid rgba(196,168,130,.08);
}

    .ptab:hover {
        color: var(--cream);
    }

    .ptab.active {
        color: var(--orange);
        border-bottom-color: var(--orange);
        background: rgba(232,99,26,.08);
    }

.ts {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(196,168,130,.2);
    flex-shrink: 0;
}

    .ts.done {
        background: var(--ok);
    }

    .ts.busy {
        background: var(--amber);
        animation: pulse .9s ease infinite;
    }

    .ts.err {
        background: var(--err);
    }

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 1.2rem;
    border-bottom: 1px solid rgba(196,168,130,.08);
    flex-shrink: 0;
}

.tlbl {
    font-size: .7rem;
    color: #818181;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.tbtn {
    background: rgba(232,99,26,.1);
    border: 1px solid rgba(232,99,26,.22);
    color: var(--orange);
    padding: .3rem .75rem;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'DM Sans',sans-serif;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: all .2s;
}

    .tbtn:hover:not(:disabled) {
        background: var(--orange);
        color: #fff;
    }

    .tbtn:disabled {
        opacity: .3;
        cursor: not-allowed;
    }

    .tbtn.pri {
        background: var(--orange);
        color: #fff;
    }

        .tbtn.pri:hover {
            background: var(--amber);
        }

    .tbtn.layout-btn {
        border-color: rgba(212,136,43,.4);
        color: var(--amber);
    }

        .tbtn.layout-btn:hover:not(:disabled) {
            background: var(--amber);
            color: #fff;
        }

        .tbtn.layout-btn.locked {
            background: rgba(212,136,43,.15);
            border-color: rgba(212,136,43,.5);
        }

.pbwrap {
    height: 3px;
    background: rgba(196,168,130,.08);
    flex-shrink: 0;
}

.pb {
    height: 100%;
    background: linear-gradient(90deg,var(--orange),var(--amber));
    width: 0%;
    transition: width .4s;
}

.ifwrap {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.pif {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
    min-height: 600px;
    overflow: auto;
}

.empty { /*position:absolute;*/
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    color: #818181;
}

    .empty .ei {
        font-size: 3rem;
        opacity: .25;
    }

    .empty h3 {
        font-family: 'Playfair Display',serif;
        font-size: 1.3rem;
        opacity: .4;
    }

    .empty p {
        font-size: .8rem;
        opacity: .5;
        text-align: center;
        max-width: 260px;
        line-height: 1.6;
    }

.sover {
    position: absolute;
    inset: 0;
    background: rgba(26,12,4,.88);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    backdrop-filter: blur(4px);
}

    .sover.show {
        display: flex;
    }

.gospin {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(232,99,26,.2);
    border-top-color: var(--orange);
    animation: spin .8s linear infinite;
}

.goname {
    font-family: 'Playfair Display',serif;
    font-size: 1.1rem;
    color: var(--cream);
}

.gostep {
    font-size: .78rem;
    color: var(--tan);
}

.gochars {
    font-size: .65rem;
    color: rgba(232,99,26,.6);
    font-family: monospace;
}

.sbar {
    padding: .5rem 1.2rem;
    border-top: 1px solid rgba(196,168,130,.08);
    background: black;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

.sdot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(196,168,130,.3);
    flex-shrink: 0;
}

    .sdot.go {
        background: var(--orange);
        animation: pulse .9s ease infinite;
    }

    .sdot.ok {
        background: var(--ok);
    }

    .sdot.err {
        background: var(--err);
    }

.smsg {
    font-size: .72rem;
    color: white;
    font-family: 'Courier New',monospace;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
