/* ==========================================
   ToolNova - Word a PDF
   ========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    font-family:"Poppins",sans-serif;

    background:linear-gradient(135deg,#eef4ff,#f8fbff);

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:40px;

    color:#222;

}

.container{

    width:100%;

    max-width:760px;

}

.card{

    background:#fff;

    border-radius:22px;

    padding:45px;

    box-shadow:0 20px 60px rgba(0,0,0,.08);

    transition:.3s;

}

.card:hover{

    transform:translateY(-4px);

}

.card h1{

    text-align:center;

    font-size:36px;

    color:#2563eb;

    margin-bottom:10px;

}

.subtitle{

    text-align:center;

    color:#6b7280;

    margin-bottom:35px;

    font-size:16px;

}

/* ===========================
   Drag & Drop
=========================== */

#dropZone{

    border:3px dashed #3b82f6;

    border-radius:18px;

    background:#f9fbff;

    padding:60px 30px;

    text-align:center;

    cursor:pointer;

    transition:.35s;

}

#dropZone:hover{

    border-color:#2563eb;

    background:#edf5ff;

}

#dropZone.dragover{

    border-color:#1d4ed8;

    background:#dbeafe;

    transform:scale(1.02);

}

.uploadIcon{

    font-size:70px;

    margin-bottom:20px;

}

#dropZone h2{

    font-size:27px;

    margin-bottom:10px;

    color:#111827;

}

#dropZone p{

    color:#6b7280;

}

/* ===========================
   Información del archivo
=========================== */

.fileInfo{

    margin-top:25px;

    padding:18px;

    border-radius:15px;

    background:#f4f7fc;

    border-left:5px solid #2563eb;

    display:none;

}

.fileInfo h3{

    color:#111827;

    margin-bottom:8px;

    word-break:break-word;

}

.fileInfo p{

    color:#6b7280;

}

/* ===========================
   Barra de progreso
=========================== */

.progressContainer{

    display:none;

    margin-top:25px;

    width:100%;

    height:12px;

    background:#e5e7eb;

    border-radius:30px;

    overflow:hidden;

}

.progressBar{

    width:0%;

    height:100%;

    background:linear-gradient(90deg,#2563eb,#06b6d4);

    transition:width .35s;

}

/* ===========================
   Botón
=========================== */

#convertBtn{

    width:100%;

    margin-top:30px;

    border:none;

    padding:17px;

    border-radius:14px;

    background:#2563eb;

    color:#fff;

    font-size:18px;

    font-weight:600;

    cursor:pointer;

    transition:.3s;

}

#convertBtn:hover{

    background:#1d4ed8;

    transform:translateY(-2px);

}

#convertBtn:disabled{

    cursor:not-allowed;

    opacity:.7;

}

/* ===========================
   Mensajes
=========================== */

.message{

    display:none;

    margin-top:20px;

    padding:15px;

    border-radius:12px;

    font-weight:600;

    text-align:center;

}

.message.success{

    background:#dcfce7;

    color:#15803d;

}

.message.error{

    background:#fee2e2;

    color:#dc2626;

}

/* ===========================
   Animación
=========================== */

@keyframes fadeIn{

    from{

        opacity:0;

        transform:translateY(12px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.fileInfo,
.message{

    animation:fadeIn .35s ease;

}

/* ===========================
   Responsive
=========================== */

@media(max-width:768px){

    body{

        padding:20px;

    }

    .card{

        padding:28px;

    }

    .card h1{

        font-size:30px;

    }

    .uploadIcon{

        font-size:55px;

    }

    #dropZone{

        padding:40px 20px;

    }

    #dropZone h2{

        font-size:22px;

    }

}