/* ================================
   WORKSPACE / APP TOOLS LAYOUT
================================ */

body{
background:#eef1f7;
}


/* page wrapper */
.tool-layout{
max-width:1400px;
margin:25px auto;
padding:0 18px;
}


/* main workspace card */
.tool-card{
background:#ffffff;
border-radius:18px;
box-shadow:0 15px 40px rgba(0,0,0,.08);
padding:22px;
}


/* header */
.tool-hero{
display:flex;
align-items:center;
justify-content:space-between;
gap:20px;
margin-bottom:18px;
flex-wrap:wrap;
}

.tool-hero h1{
font-size:30px;
font-weight:800;
color:#1f2937;
margin:0;
}

.tool-hero p{
color:#6b7280;
margin:0;
}


/* controls bar */
.tool-card .controls{
display:flex;
flex-wrap:wrap;
gap:10px;
align-items:center;
margin-bottom:18px;
padding:12px;
background:#f3f5fb;
border-radius:14px;
}


/* buttons */
.tool-btn{
background:#2563eb;
color:#fff;
border:none;
padding:10px 16px;
border-radius:10px;
font-weight:600;
cursor:pointer;
transition:.2s;
}

.tool-btn:hover{
background:#1d4ed8;
transform:translateY(-1px);
}


/* select */
.tool-card select{
padding:10px 12px;
border-radius:10px;
border:1px solid #d1d5db;
background:#fff;
font-weight:600;
}


/* editor layout */
.preview-wrap{
display:grid;
grid-template-columns:1fr 1fr;
gap:18px;
margin-top:10px;
}


/* editor box */
.preview-box{
display:flex;
flex-direction:column;
}

.preview-box textarea{
width:100%;
min-height:420px;
padding:16px;
border-radius:14px;
border:1px solid #dbe0ea;
font-size:15px;
line-height:1.6;
resize:vertical;
outline:none;
background:#fbfcff;
}

.preview-box textarea:focus{
border-color:#4f46e5;
box-shadow:0 0 0 3px rgba(79,70,229,.15);
}


/* counters */
.counter{
margin-top:6px;
font-size:13px;
color:#6b7280;
text-align:right;
}


/* mobile */
@media(max-width:900px){

.preview-wrap{
grid-template-columns:1fr;
}

.preview-box textarea{
min-height:300px;
}

.tool-hero{
flex-direction:column;
align-items:flex-start;
}

}







/* ================================
   FILE / PDF WORKSPACE UI
================================ */

/* Upload drop area */
.upload-box{
    margin-top:15px;
    background:#f8faff;
    border:2px dashed #c7d2fe;
    padding:45px 20px;
    text-align:center;
    border-radius:16px;
    font-weight:600;
    color:#374151;
    cursor:pointer;
    transition:.25s;
    position:relative;
}

.upload-box:hover{
    background:#eef2ff;
    border-color:#4f46e5;
    transform:translateY(-2px);
}

/* hide ugly file input */
.upload-box input[type="file"]{
    position:absolute;
    inset:0;
    opacity:0;
    cursor:pointer;
}


/* controls inputs */
.controls input,
.controls select{
    padding:10px 12px;
    border-radius:10px;
    border:1px solid #d1d5db;
    background:#fff;
    font-size:14px;
}


/* progress bar */
.progress{
    margin-top:18px;
    height:10px;
    background:#e5e7eb;
    border-radius:10px;
    overflow:hidden;
}

#progressBar{
    height:100%;
    width:0%;
    background:linear-gradient(90deg,#2563eb,#4f46e5);
    transition:width .3s;
}


/* preview pages grid */
.preview-grid{
    margin-top:22px;
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
    gap:16px;
}

.preview-grid canvas,
.preview-grid img{
    width:100%;
    height:200px;
    object-fit:contain;
    background:#ffffff;
    border-radius:12px;
    padding:8px;
    box-shadow:0 6px 18px rgba(0,0,0,.08);
}


/* action button */
#actionBtn{
    display:block;
    margin:25px auto 5px;
    padding:13px 26px;
    font-size:15px;
    border-radius:12px;
}


/* mobile */
@media(max-width:768px){

.preview-grid{
    grid-template-columns:repeat(2,1fr);
}

.upload-box{
    padding:35px 12px;
}

}






/* ================================
   RESUME BUILDER WORKSPACE
================================ */

/* split layout */
.tool-card{
    display:flex;
    gap:25px;
    flex-wrap:wrap;
}

/* left form */
.tool-card .controls{
    flex:1;
    min-width:320px;
    display:flex;
    flex-direction:column;
    gap:12px;
    background:#f3f5fb;
    padding:18px;
    border-radius:16px;
}

/* form inputs */
.controls input,
.controls textarea{
    width:100%;
    padding:12px 14px;
    border-radius:12px;
    border:1px solid #d1d5db;
    font-size:14px;
    background:#ffffff;
    resize:vertical;
    outline:none;
    transition:.2s;
}

.controls textarea{
    min-height:80px;
}

.controls input:focus,
.controls textarea:focus{
    border-color:#4f46e5;
    box-shadow:0 0 0 3px rgba(79,70,229,.15);
}

/* download button */
#downloadBtn{
    margin-top:10px;
    padding:12px;
    font-size:15px;
}


/* resume preview panel */
.resume-preview{
    flex:1;
    min-width:320px;
    background:#ffffff;
    padding:25px;
    border-radius:16px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    line-height:1.6;
}

/* header section */
.resume-header{
    display:flex;
    align-items:center;
    gap:18px;
    margin-bottom:20px;
}

.resume-header img{
    width:90px;
    height:90px;
    border-radius:50%;
    object-fit:cover;
    background:#e5e7eb;
}

.resume-header h2{
    margin:0;
    font-size:22px;
}

.resume-preview h3{
    margin-top:18px;
    margin-bottom:6px;
    font-size:16px;
    color:#2563eb;
}


/* mobile layout */
@media(max-width:900px){

.tool-card{
    flex-direction:column;
}

.resume-preview{
    margin-top:15px;
}

}