
    :root {
        --bg: #05080f;
        --surface: #0c121d;
        --border: #1e2d42;
        --accent: #ff4757;
        /* Red/Pink theme for TXT2JPG */
        --text: #e2eaf5;
        --muted: #4a5f7a;
    }

   
    nav {
        height: 65px;
        background: white;
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 24px;
        z-index: 10;
    }

    .nav-left {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .file-input-label {
          background: rgb(43 25 236 / 11%);
    border: 1px dashed var(--primary-color);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    color: var(--primary-color);
    transition: 0.2s;
    }

    #file-upload {
        display: none;
    }

    .btn-jpg {
        background: var(--primary-color);
        border: none;
        padding: 10px 22px;
        border-radius: 8px;
        color: white;
        font-weight: 700;
        cursor: pointer;
        transition: 0.2s;
    }

    .btn-jpg:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
    }

    main {
        flex: 1;
        display: flex;
        overflow: hidden;
    }

    .editor-wrap {
        height: 500px;
        hyphenate-character: 500px;
        flex: 1;
        display: flex;
        flex-direction: column;
        border-right: 1px solid var(--border);
    }

    #text-input {
        flex: 1;
        background: #05080f;
        color: #a8c0e0;
        padding: 25px;
        font-family: 'Inter', sans-serif;
        font-size: 16px;
        border: none;
        outline: none;
        resize: none;
        line-height: 1.6;
    }

    .status-panel {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: var(--surface);
    }

    /* NEON RING LOADER (Red Version) */
    .state-loading {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .ring-wrap {
        position: relative;
        width: 100px;
        height: 100px;
    }

    .ring-outer {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        border: 4px solid var(--border);
        border-top-color: var(--accent);
        animation: spin 0.9s linear infinite;
    }

    .ring-inner {
        position: absolute;
        top: 15px;
        left: 15px;
        width: 70px;
        height: 70px;
        border-radius: 50%;
        border: 4px solid var(--border);
        border-bottom-color: #fff;
        animation: spin 1.4s linear infinite reverse;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

    #stateSuccess {
        display: none;
        text-align: center;
    }

    .check {
        font-size: 50px;
        color: var(--accent);
        margin-bottom: 10px;
    }
