/**
 * @Filename : paraphrase.css
 * Sistem Parafrase Perpustakaan
 */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Poppins', sans-serif;
    background:#eef3f8;
}

/* ==========================================================
   PAGE
========================================================== */
.lp-page{
    width:100%;
    padding:25px 20px 60px;
    background:linear-gradient(135deg,#eef5ff 0%,#f7fbff 100%);
    min-height:100vh;
}

.lp-wrapper{
    width:100%;
    max-width:980px;
    margin:0 auto;
    padding:0 20px;
}

/* ==========================================================
   LOGIN
========================================================== */
#lpLogin,
#lpWorkspace{
    width:100%;
}

/* ==========================================================
   CARD
========================================================== */
.lp-card{
    max-width:950px;
    margin:-10px auto 0;
    background:#fff;
    border-radius:28px;
    padding:50px;
    box-shadow:0 15px 45px rgba(0,0,0,.08);
    border:1px solid #edf2f7;
}

/* ==========================================================
   HEADER
========================================================== */
.lp-header{
    text-align:center;
    margin-bottom:15px;
}

.lp-logo{
    width: 210px;
    max-width: 100%;
    margin-bottom: 20px;
}

.lp-header h2{
    font-size:36px;
    font-weight:800;
    margin:0;
    line-height:1.2;
    color:#04a380;
    letter-spacing:-1px;
}

.lp-header p{
    font-size:25px;
    font-weight:600;
    color:#64748b;

}

/* ==========================================================
   MEMBER BOX
========================================================== */
.lp-member-box{
    background:#f8fbff;
    border:1px solid #dbeafe;
    border-radius:18px;
    padding:30px;
}

.lp-info{
    text-align:center;
    font-size:15px;
    color:#64748b;
    line-height:1.8;
    margin-bottom:30px;
}

/* ==========================================================
   FORM
========================================================== */
.lp-form-group{
    margin-bottom:24px;
}

.lp-form-group label{
    display:block;
    margin-bottom:10px;
    font-size:15px;
    font-weight:600;
    color:#1f2937;
}

.lp-input{
    width:100%;
    height:56px;
    border:1px solid #cbd5e1;
    border-radius:14px;
    background:#ffffff;
    padding:0 18px;
    font-size:15px;
    outline:none;
    transition:.25s;
}

.lp-input:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 4px rgba(37,99,235,.15);
}

/* ==========================================================
   PASSWORD
========================================================== */
.lp-password-group{
    position:relative;
}

.lp-password-group .lp-input{
    padding-right:58px;
}

.lp-password-toggle{
    position:absolute;
    top:50%;
    right:12px;
    transform:translateY(-50%);
    width:40px;
    height:40px;
    border:none;
    background:none;
    cursor:pointer;
    color:#64748b;
}

.lp-password-toggle:hover{
    color:#2563eb;
}

/* ==========================================================
   BUTTON
========================================================== */
.lp-btn{
    width:100%;
    height:56px;
    border:none;
    border-radius:14px;
    background:#2563eb;
    color:#ffffff;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
    transition:.25s;
}

.lp-btn:hover{
    background:#1d4ed8;
}

/* ==========================================================
   FOOTER
========================================================== */
.lp-footer{
    margin-top:25px;
    text-align:center;
    font-size:13px;
    color:#94a3b8;
}

/* ==========================================================
   RESPONSIVE
========================================================== */
@media (max-width:768px){
    .lp-wrapper{
        padding:0 15px;
    }

    .lp-card{
        padding:25px;
    }

    .lp-member-box{
        padding:20px;
    }

    .lp-logo{
        width:90px;
    }

    .lp-header h2{
        font-size:22px;
    }
}

/* ==========================================================
   FIX OPAC TITLE
========================================================== */
.page-title,
.page-title h1,
.page-title h2,
.page-title h3,
.simply-title,
.simply-title h1,
.simply-title h2,
.simply-title h3,
.content-title,
.content-title h1,
.content-title h2,
.content-title h3{
    color:#1f2937 !important;
}

/* ==========================================================
   MEMBER RESULT
========================================================== */
.lp-member-result{
    margin-top:30px;
}

.lp-member-card{
    background:#f8fbff;
    border:1px solid #dbeafe;
    border-radius:18px;
    padding:28px;
}

.lp-member-title{
    font-size:20px;
    font-weight:700;
    color:#2563eb;
    margin-bottom:25px;
    padding-bottom:15px;
    border-bottom:1px solid #dbeafe;
}

.lp-member-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.lp-item{
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:18px;
}

.lp-item span{
    display:block;
    font-size:13px;
    color:#64748b;
    margin-bottom:8px;
}

.lp-item strong{
    display:block;
    font-size:16px;
    color:#111827;
    font-weight:700;
}

.lp-status-active{
    color:#16a34a !important;
}

/* ==========================================================
   RESPONSIVE
========================================================== */
@media (max-width:768px){
    .lp-member-grid{
        grid-template-columns:1fr;
    }
}

/* ==========================================================
   PARAPHRASE FORM
========================================================== */
.lp-paraphrase-box{
    margin-top:35px;
}

/* ==========================================================
   TWO COLUMN
========================================================== */
.lp-editor-wrapper{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:25px;
    margin-bottom:30px;
}

/* ==========================================================
   CARD
========================================================== */

.lp-editor-card{

    display:flex;

    flex-direction:column;

    background:#f8fbff;

    border:1px solid #dbeafe;

    border-radius:18px;

    padding:28px;

    min-height:430px;

}

/* ==========================================================
   TITLE
========================================================== */

.lp-editor-title{

    font-size:18px;

    font-weight:700;

    color:#2563eb;

    margin-bottom:18px;

}

/* ==========================================================
   TEXTAREA
========================================================== */

.lp-textarea{

    flex:1;

    width:100%;

    min-height:300px;

    resize:none;

    border:1px solid #cbd5e1;

    border-radius:14px;

    background:#ffffff;

    padding:18px;

    font-family:"Poppins",sans-serif;

    font-size:15px;

    line-height:1.8;

    color:#1f2937;

    outline:none;

    transition:.25s;

}

.lp-textarea:focus{

    border-color:#2563eb;

    box-shadow:0 0 0 4px rgba(37,99,235,.15);

}

.lp-textarea[readonly]{

    background:#f9fafb;

}

/* ==========================================================
   FOOTER
========================================================== */

.lp-editor-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:18px;

    padding-top:15px;

    border-top:1px solid #e5e7eb;

    font-size:14px;

    color:#64748b;

}

/* ==========================================================
   LINK BUTTON
========================================================== */

.lp-link-btn{

    border:none;

    background:none;

    color:#2563eb;

    font-size:14px;

    font-weight:600;

    cursor:pointer;

    transition:.25s;

}

.lp-link-btn:hover{

    color:#1d4ed8;

    text-decoration:underline;

}

/* ==========================================================
   ACTION
========================================================== */

.lp-action{

    margin-top:10px;

}

.lp-action .lp-btn{

    width:100%;

    height:58px;

}

/* ==========================================================
   QUOTA
========================================================== */

.lp-quota{

    margin-top:18px;

    text-align:center;

    font-size:15px;

    color:#64748b;

}

.lp-quota strong{

    color:#111827;

    font-weight:700;

}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width:900px){

    .lp-editor-wrapper{

        grid-template-columns:1fr;

    }

    .lp-editor-card{

        min-height:auto;

    }

    .lp-textarea{

        min-height:220px;

    }

}

@media (max-width:768px){

    .lp-editor-card{

        padding:20px;

    }

    .lp-editor-title{

        font-size:17px;

    }

}

/* ==========================================================
   PARAPHRASE STATUS
========================================================== */

.lp-status{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:14px;
    font-weight:600;
    transition:all .25s ease;
}

/* ------------------------------------------
   BELUM DIPROSES
------------------------------------------ */

.lp-status-idle{
    color:#64748b;
}

/* ------------------------------------------
   LOADING
------------------------------------------ */

.lp-status-loading{
    color:#f59e0b;
}

.lp-status-loading::before{
    content:"";
    width:10px;
    height:10px;
    border-radius:50%;
    background:#f59e0b;
    animation:lpPulse .9s infinite;
}

/* ------------------------------------------
   SUCCESS
------------------------------------------ */

.lp-status-success{
    color:#16a34a;
}

.lp-status-success::before{
    content:"✓";
    font-weight:700;
}

/* ------------------------------------------
   ERROR
------------------------------------------ */

.lp-status-error{
    color:#dc2626;
}

.lp-status-error::before{
    content:"✕";
    font-weight:700;
}

/* ==========================================================
   COPY BUTTON
========================================================== */

#copyResult:disabled{
    opacity:.45;
    cursor:not-allowed;
    pointer-events:none;
}

#copyResult:not(:disabled){
    opacity:1;
}

/* ==========================================================
   RESET BUTTON
========================================================== */

#resetOriginal:disabled{
    opacity:.45;
    cursor:not-allowed;
    pointer-events:none;
}

/* ==========================================================
   LOADING TEXTAREA
========================================================== */

.lp-textarea:disabled{
    background:#f8fafc;
    color:#64748b;
    cursor:wait;
}

/* ==========================================================
   ANIMATION
========================================================== */

@keyframes lpPulse{

    0%{
        transform:scale(.75);
        opacity:.5;
    }

    50%{
        transform:scale(1.25);
        opacity:1;
    }

    100%{
        transform:scale(.75);
        opacity:.5;
    }

}