/*
=========================================
TOOLVERSE AI HUMAN WRITER
PREMIUM UI
=========================================
*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

.tv-human-wrap{
    width:100%;
    padding:40px 15px;
    display:flex;
    justify-content:center;
    align-items:center;
}

/*
=========================================
CARD
=========================================
*/

.tv-human-card{

    width:100%;
    max-width:950px;

    background:
    linear-gradient(
        145deg,
        #111827,
        #0f172a
    );

    border:1px solid rgba(255,255,255,0.08);

    border-radius:30px;

    padding:35px;

    position:relative;

    overflow:hidden;

    box-shadow:
    0 15px 50px rgba(0,0,0,0.45);

}

/*
=========================================
GLOW EFFECT
=========================================
*/

.tv-human-card::before{

    content:"";

    position:absolute;

    width:300px;
    height:300px;

    background:
    radial-gradient(
        circle,
        rgba(168,85,247,0.25),
        transparent 70%
    );

    top:-120px;
    right:-120px;

    z-index:0;
}

.tv-human-card > *{
    position:relative;
    z-index:1;
}

/*
=========================================
BADGE
=========================================
*/

.tv-badge{

    display:inline-flex;

    align-items:center;

    gap:8px;

    background:
    rgba(168,85,247,0.15);

    border:
    1px solid rgba(168,85,247,0.3);

    color:#d8b4fe;

    padding:8px 16px;

    border-radius:999px;

    font-size:13px;

    font-weight:600;

    margin-bottom:20px;

    letter-spacing:0.5px;
}

/*
=========================================
TITLE
=========================================
*/

.tv-human-card h2{

    font-size:42px;

    font-weight:800;

    line-height:1.2;

    color:#ffffff;

    margin-bottom:14px;
}

.tv-sub{

    color:#94a3b8;

    font-size:17px;

    line-height:1.7;

    margin-bottom:28px;
}

/*
=========================================
TOP BAR
=========================================
*/

.tv-top-bar{

    display:flex;

    flex-wrap:wrap;

    gap:15px;

    margin-bottom:18px;
}

.tv-counter{

    background:
    rgba(255,255,255,0.05);

    border:
    1px solid rgba(255,255,255,0.06);

    padding:10px 18px;

    border-radius:14px;

    color:#cbd5e1;

    font-size:14px;

    font-weight:500;
}

.tv-counter span{
    color:#ffffff;
    font-weight:700;
}

/*
=========================================
TEXTAREA
=========================================
*/

#tv-input,
#tv-output{

    width:100%;

    min-height:240px;

    background:
    rgba(17,24,39,0.9);

    border:
    1px solid rgba(255,255,255,0.08);

    border-radius:22px;

    padding:22px;

    color:#ffffff;

    font-size:16px;

    line-height:1.8;

    resize:none;

    outline:none;

    transition:0.3s;

    font-family:inherit;
}

#tv-input:focus,
#tv-output:focus{

    border-color:#a855f7;

    box-shadow:
    0 0 0 4px rgba(168,85,247,0.15);
}

#tv-input::placeholder,
#tv-output::placeholder{
    color:#64748b;
}

/*
=========================================
OPTIONS
=========================================
*/

.tv-options{

    display:flex;

    flex-wrap:wrap;

    gap:16px;

    margin-top:22px;

    margin-bottom:22px;
}

/*
=========================================
SELECT
=========================================
*/

#tv-tone{

    flex:1;

    min-width:220px;

    background:
    rgba(17,24,39,0.95);

    border:
    1px solid rgba(255,255,255,0.08);

    color:#ffffff;

    border-radius:18px;

    padding:16px 18px;

    outline:none;

    font-size:15px;

    transition:0.3s;

    cursor:pointer;
}

#tv-tone:focus{

    border-color:#a855f7;

    box-shadow:
    0 0 0 4px rgba(168,85,247,0.12);
}

/*
=========================================
BUTTONS
=========================================
*/

#tv-generate,
#tv-copy,
#tv-clear{

    border:none;

    outline:none;

    cursor:pointer;

    border-radius:18px;

    transition:0.3s ease;

    font-weight:700;

    font-size:15px;
}

/*
=========================================
GENERATE BUTTON
=========================================
*/

#tv-generate{

    padding:16px 28px;

    background:
    linear-gradient(
        135deg,
        #7c3aed,
        #a855f7
    );

    color:#ffffff;

    min-width:210px;

    position:relative;

    overflow:hidden;
}

#tv-generate:hover{

    transform:
    translateY(-2px);

    box-shadow:
    0 10px 30px rgba(168,85,247,0.35);
}

#tv-generate:disabled{

    opacity:0.7;

    cursor:not-allowed;

    transform:none;
}

/*
=========================================
BOTTOM BUTTONS
=========================================
*/

.tv-bottom-buttons{

    display:flex;

    flex-wrap:wrap;

    gap:14px;

    margin-top:22px;
}

#tv-copy{

    background:
    linear-gradient(
        135deg,
        #0ea5e9,
        #38bdf8
    );

    color:#ffffff;

    padding:14px 22px;
}

#tv-copy:hover{

    transform:
    translateY(-2px);

    box-shadow:
    0 10px 25px rgba(14,165,233,0.28);
}

#tv-clear{

    background:
    rgba(255,255,255,0.06);

    border:
    1px solid rgba(255,255,255,0.08);

    color:#ffffff;

    padding:14px 22px;
}

#tv-clear:hover{

    background:
    rgba(255,255,255,0.1);
}

/*
=========================================
LOADER
=========================================
*/

.tv-loader{

    display:none;

    width:65px;
    height:65px;

    margin:25px auto;

    border-radius:50%;

    border:
    4px solid rgba(255,255,255,0.08);

    border-top:
    4px solid #a855f7;

    animation:tvspin 1s linear infinite;
}

@keyframes tvspin{

    100%{
        transform:rotate(360deg);
    }
}

/*
=========================================
TOAST
=========================================
*/

.tv-toast{

    position:fixed;

    bottom:30px;

    right:30px;

    background:#111827;

    color:#ffffff;

    padding:16px 22px;

    border-radius:16px;

    font-size:14px;

    font-weight:600;

    z-index:999999;

    opacity:0;

    transform:
    translateY(20px);

    transition:0.3s;

    box-shadow:
    0 10px 30px rgba(0,0,0,0.3);
}

.tv-show{

    opacity:1;

    transform:
    translateY(0);
}

.tv-success{

    border-left:
    4px solid #22c55e;
}

.tv-error{

    border-left:
    4px solid #ef4444;
}

/*
=========================================
SCROLLBAR
=========================================
*/

#tv-input::-webkit-scrollbar,
#tv-output::-webkit-scrollbar{
    width:10px;
}

#tv-input::-webkit-scrollbar-track,
#tv-output::-webkit-scrollbar-track{
    background:#111827;
}

#tv-input::-webkit-scrollbar-thumb,
#tv-output::-webkit-scrollbar-thumb{

    background:#7c3aed;

    border-radius:999px;
}

/*
=========================================
MOBILE
=========================================
*/

@media(max-width:768px){

    .tv-human-wrap{
        padding:25px 12px;
    }

    .tv-human-card{

        padding:22px;

        border-radius:24px;
    }

    .tv-human-card h2{

        font-size:30px;
    }

    .tv-sub{

        font-size:15px;
    }

    #tv-input,
    #tv-output{

        min-height:220px;

        padding:18px;

        font-size:15px;
    }

    .tv-options{
        flex-direction:column;
    }

    #tv-generate{
        width:100%;
    }

    #tv-tone{
        width:100%;
    }

    .tv-bottom-buttons{
        flex-direction:column;
    }

    #tv-copy,
    #tv-clear{
        width:100%;
    }

    .tv-toast{

        right:15px;
        left:15px;

        bottom:15px;
    }
}

/*
=========================================
SMALL MOBILE
=========================================
*/

@media(max-width:480px){

    .tv-human-card h2{

        font-size:26px;
    }

    .tv-counter{

        width:100%;
    }
}