/* ==========================================
   DMSGO V3
   style.css
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{

    --primary:#1E88E5;
    --primary-dark:#1565C0;

    --bg:#F7F7F5;
    --white:#FFFFFF;

    --text:#222;
    --muted:#777;

    --border:#E7E7E7;

    --radius:18px;

    --shadow:0 10px 30px rgba(0,0,0,.08);

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;

    background:var(--bg);

    color:var(--text);

}

.page{

    width:100%;

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:25px;

}

.card{

    width:100%;

    max-width:460px;

    background:#fff;

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    padding:30px;

}

.logo{

    width:80px;

    height:80px;

    border-radius:20px;

    background:var(--primary);

    color:#fff;

    font-size:22px;

    font-weight:700;

    display:flex;

    align-items:center;

    justify-content:center;

    margin:auto;

    margin-bottom:20px;

}

h1{

    font-size:28px;

    text-align:center;

    margin-bottom:10px;

}

.subtitle{

    text-align:center;

    color:var(--muted);

    font-size:14px;

    line-height:1.7;

    margin-bottom:30px;

}

.field{

    margin-bottom:22px;

}

label{

    display:block;

    margin-bottom:10px;

    font-weight:600;

    font-size:14px;

}

textarea{

    width:100%;

    min-height:120px;

    resize:vertical;

    border:1px solid var(--border);

    border-radius:14px;

    padding:16px;

    font-size:15px;

    font-family:'Poppins',sans-serif;

    transition:.25s;

    outline:none;

    background:#fff;

}

textarea:focus{

    border-color:var(--primary);

    box-shadow:0 0 0 3px rgba(30,136,229,.15);

}

button{

    width:100%;

    border:none;

    border-radius:15px;

    background:var(--primary);

    color:#fff;

    font-size:16px;

    font-weight:600;

    padding:18px;

    cursor:pointer;

    transition:.25s;

}

button:hover{

    background:var(--primary-dark);

}

button:disabled{

    opacity:.5;

    cursor:not-allowed;

}

#loading{

    position:fixed;

    inset:0;

    background:rgba(255,255,255,.95);

    display:none;

    justify-content:center;

    align-items:center;

    flex-direction:column;

    z-index:99999;

}

.loader{

    width:70px;

    height:70px;

    border-radius:50%;

    border:7px solid #ddd;

    border-top:7px solid var(--primary);

    animation:spin .9s linear infinite;

    margin-bottom:25px;

}

#loading h3{

    font-size:22px;

    margin-bottom:8px;

}

#loading p{

    color:var(--muted);

    font-size:14px;

}

@keyframes spin{

    from{

        transform:rotate(0deg);

    }

    to{

        transform:rotate(360deg);

    }

}

@media(max-width:480px){

    .page{

        padding:15px;

    }

    .card{

        padding:22px;

        border-radius:16px;

    }

    h1{

        font-size:24px;

    }

    textarea{

        min-height:110px;

    }

}

/* ==========================================
   RESULT PAGE
========================================== */

.section{

    background:#fff;

    border:1px solid #ececec;

    border-radius:16px;

    padding:20px;

    margin-bottom:18px;

}

.section h2{

    font-size:18px;

    margin-bottom:12px;

    color:#1E88E5;

}

.section p{

    line-height:1.8;

    color:#444;

}

.copy-card textarea{

    width:100%;

    min-height:120px;

    border:1px solid #ddd;

    border-radius:12px;

    padding:15px;

    resize:none;

    font-family:'Poppins',sans-serif;

    font-size:14px;

    background:#fafafa;

}

.copy-card textarea:focus{

    outline:none;

}

.result-header{

    margin-bottom:25px;

}