/* Fancy Text Generator — invisible-character.net
 * Matches Figma exactly (node 2735:3652):
 *   - Background #ffffff, stroke #e2e0e0, placeholder #a0a2ab
 *   - Border-radius 8px, padding 12px 20px, Poppins 16px / line-height 24px
 *   - Two bordered panels side by side, 40px gap, equal height (~368px)
 *   - No header, no Paste/Clear buttons, no character counter — just the textarea
 *     and the scrollable results list with a copy icon per row.
 */

.fancy-tool-wrap {

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    margin: 30px 0;
    align-items: stretch;
}

.fancy-panel {
    border: 1px solid #e2e0e0;
    border-radius: 8px;
    background: #ffffff;
    height: 368px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FBFBFB;
    overflow: auto;
    padding: 16px;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #c5cbd6;
    border-radius: 999px;
}


::-webkit-scrollbar-button {
    display: none;
}

.fancy-panel--input {
    padding: 16px;
}

#output-placeholder {
    display: flex;
    align-items: start;
    height: 100%;
    font-size: 16px ;
    color: #A0A2AB;
}

/* ---------- textarea ---------- */

.fancy-textarea {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    resize: none;
    border: none;
    outline: none;
    background: transparent;
    font-family: "Poppins", inherit, sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #1a1f2c;
    padding: 12px 20px;
    background: white;
    margin: 0;
    border: 1px solid #E2E0E0;
    color: black;
    border-radius: 8px;
}

.fancy-textarea::placeholder {
    color: #a0a2ab;
    font-family: "Poppins", inherit, sans-serif;
    font-size: 16px;
    line-height: 24px;
}

/* ---------- results column ---------- */

.fancy-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
    /* overflow-y: auto; */
    padding: 0;
    /* scrollbar-width: thin; */
    /* scrollbar-color: #c5cbd6 transparent; */
    /* background: white; */
    /* border: 1px solid #E2E0E0; */
}

.fancy-results::-webkit-scrollbar {
    width: 6px;
}

.fancy-results::-webkit-scrollbar-thumb {
    background: #c5cbd6;
    border-radius: 8px;
}

.fancy-results::-webkit-scrollbar-track {
    background: transparent;
}

.fancy-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e2e0e0;
    min-width: 0;
    min-height: 80px;
    background: white;
    border-radius: 8px;
}

.fancy-row:last-child {
    border-bottom: none;
}

.fancy-out {
    flex: 1 1 auto;
    margin: 0;
    font-family: "Poppins", inherit, sans-serif;
    font-size: 20px;
    line-height: 24px;
    color: #1a1f2c;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
}

/* ---------- copy button ---------- */

.fancy-copy-btn {
    flex: 0 0 auto;
    position: relative;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.15s,
        color 0.15s,
        border-color 0.15s;
}

.fancy-copy-btn:hover {
    background: #f7f8fa;
    color: #1a1f2c;
    border-color: #e2e0e0;
}

.fancy-copy-btn.is-copied {
    color: #16a34a;
    border-color: #bbf7d0;
    background: #ecfdf5;
}

.fancy-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    background: #1a1f2c;
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition:
        opacity 0.15s,
        transform 0.15s;
}

.fancy-copy-btn:hover .fancy-tooltip,
.fancy-copy-btn.is-copied .fancy-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- responsive ---------- */

@media (max-width: 991px) {
    .fancy-tool-wrap {
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .fancy-tool-wrap {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 0;
    }

    .fancy-panel {
        height: auto;
    }
    .fancy-panel--input,.fancy-panel--results {
        min-height: 120px;
        padding: 12px 16px;
    }

    .fancy-panel--results {
        height: 420px;
        padding: 16px;
    }

    .fancy-textarea {
        font-size: 15px;
    }

    .fancy-out {
        font-size: 14px;
    }
}

@media screen and (max-width: 960px) {
    .website_container {
        max-width: 95% !important;
    }
}
