/* ==========================================================
   PDF Processing Project
   https://yadbegir.com/accesories/pdf-processing/
   Version : 1.0
==========================================================*/


/*==========================
    Font
==========================*/

@font-face{

    font-family:'Tanha';

    src:url('../../../../fonts/Tanha.woff2') format('woff2');

    font-weight:normal;

    font-style:normal;

}


/*==========================
    Root
==========================*/

:root{

    --main-color:#0d6efd;

    --success:#198754;

    --warning:#ffc107;

    --danger:#dc3545;

    --border:#dee2e6;

    --background:#f5f6f8;

    --card:#ffffff;

    --text:#212529;

    --radius:14px;

}


/*Body*/

html{ scroll-behavior:smooth;}

body{
    direction:rtl;
    background:var(--background);
    color:var(--text);
    font-family:'Tanha',sans-serif;
    font-size:15px;
    line-height:1.9;
}

.top-iframe { height: 175px; width: 99%; border: none;}
/*Links*/
a{    text-decoration:none;}
a:hover{    text-decoration:none;}

/* Main Container*/
.main-container{    max-width:1100px;    margin:30px auto;    padding:10px;}
/*Cards*/

.card{    border:none;    border-radius:var(--radius);    box-shadow:0 5px 18px rgba(0,0,0,.08);}
.card-header{    background:#fff;    border-bottom:1px solid var(--border);    font-size:18px;    font-weight:bold;    padding:15px 20px;}
.card-body{    padding:25px;}


/*    Upload Area*/

.upload-box{    border:2px dashed #cfd8dc;    border-radius:12px;    background:#fafafa;
    padding:25px 20px;    text-align:center;    cursor:pointer;    transition:.3s;}
.upload-box:hover{    border-color:var(--main-color);    background:#fff;}
.upload-icon{    font-size:42px;    margin-bottom:8px;    transition:.3s;}
.upload-box h4{    font-size:17px;    margin-bottom:6px;}
.upload-box p{    margin-bottom:4px;}
.upload-box input[type=file]{    display:none;}
.select-file-btn{    margin-top:8px;}
.upload-box.drag-over{    border-color:var(--main-color);   background:#edf5ff;}
.upload-box.drag-over .upload-icon{    transform:scale(1.1);}

.upload-action{

    text-align:center;

    margin-top:12px;

}

.upload-action input[type=file]{

    display:none;

}
@media(max-width:576px){

    .upload-box{
        display:none;
    }

}


/*    File Info
*/
.file-info{

    margin-top:16px;

    display:none;

    background:#f8fbff;

    border:1px solid #dbe8f7;

    border-radius:12px;

    padding:12px 15px;

}

.file-info::before{

    content:"✓ فایل با موفقیت دریافت شد";

    display:block;

    font-weight:bold;

    color:var(--success);

    margin-bottom:8px;

}

.file-info table{

    width:100%;
    margin-bottom:0;

}

.file-info td{

    padding:8px 10px;

    border-bottom:1px solid #e5edf5;

}

.file-info tr:last-child td{

    border-bottom:none;

}

.file-info td:first-child{

    width:160px;

    font-weight:bold;

    color:#555;

}

/*==========================
    Progress
==========================*/

.progress{

    height:24px;

    border-radius:20px;

    overflow:hidden;

    background:#e9ecef;

}

.progress-bar{

    font-size:13px;

    font-weight:bold;

}


/*==========================
    Status Box
==========================*/

.status-box{

    margin-top:20px;

    background:#eef5ff;

    border:1px solid #d2e3ff;

    border-radius:10px;

    padding:15px;

    min-height:55px;

}


/*==========================
    Output
==========================*/

.output-box{

    margin-top:25px;

    background:#fff;

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

    border-radius:10px;

    min-height:250px;

    max-height:500px;

    overflow:auto;

    padding:20px;

    white-space:pre-wrap;

}


/*==========================
    Buttons
==========================*/

.btn{

    border-radius:8px;

    min-width:130px;

}


/*==========================
    Footer
==========================*/

.footer{

    margin:35px 0;

    text-align:center;

    color:#888;

    font-size:13px;

}


/*==========================
    Utilities
==========================*/

.hidden{

    display:none !important;

}

.pointer{

    cursor:pointer;

}

.text-small{

    font-size:13px;

}

.text-large{

    font-size:18px;

}


/*==========================
    Responsive
==========================*/

@media(max-width:768px){

    .main-container{

        margin:15px;

        padding:0;

    }

    .card-body{

        padding:18px;

    }

    .file-info td:first-child{

        width:120px;

    }

}
/*==========================
    Drag & Drop
==========================*/

.upload-box{

    position:relative;

}

.upload-box.drag-over{

    border-color:var(--main-color);

    background:#edf5ff;

}

.upload-icon{

    font-size:64px;

    color:#0d6efd;

    margin-bottom:15px;

    transition:.3s;

}

.upload-box.drag-over .upload-icon{

    transform:scale(1.15);

}

.upload-box input[type=file]{

    display:none;

}

.select-file-btn{

    margin-top:15px;

}

@media(max-width:576px){

    .main-container{

        margin:10px;

        padding:0;

    }

    .card-body{

        padding:14px;

    }

    .upload-box{

        padding:20px 12px;

    }

    .upload-box h4{

        font-size:16px;

    }

    .upload-icon{

        font-size:38px;

    }

    .file-info{

        padding:10px;

    }

    .file-info td{

        padding:7px 6px;

        font-size:13px;

    }

    .file-info td:first-child{

        width:105px;

    }

    .btn{

        min-width:100px;

        width:100%;

    }

    #startBtn,
    #downloadWordBtn{

        width:100%;

        margin-top:8px;

    }

}

/*==========================
    File Name
==========================*/

#fileName{

    max-width:0;

    overflow:hidden;

    text-overflow:ellipsis;

    white-space:nowrap;

    word-break:break-all;

}
@media(max-width:576px){

    #fileName{

        max-width:180px;

        overflow:hidden;

        text-overflow:ellipsis;

        white-space:nowrap;

        display:inline-block;

        vertical-align:middle;

    }

}
.guide-link{

    display:inline-block;

    margin-top:6px;

    font-size:13px;

    color:var(--main-color);

    text-decoration:none;

}

.guide-link:hover{

    text-decoration:underline;

}
/*==========================
    User Guide
==========================*/

.user-guide{

    background:#fff;

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

    border-radius:var(--radius);

    box-shadow:0 4px 15px rgba(0,0,0,.05);

    padding:30px;

}

.guide-header{

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

    padding-bottom:18px;

    margin-bottom:25px;

}

.guide-header h2{

    font-size:23px;

    font-weight:bold;

}

.guide-section{

    margin-bottom:32px;

}

.guide-section h3{

    font-size:19px;

    font-weight:bold;

    margin-bottom:14px;

    color:#343a40;

}

.guide-section h4{

    font-size:16px;

    font-weight:bold;

    margin-top:20px;

    margin-bottom:8px;

}

.guide-section p{

    margin-bottom:12px;

}

.guide-section ul,
.guide-section ol{

    padding-right:25px;

    margin-bottom:15px;

}

.guide-section li{

    margin-bottom:7px;

}

.guide-note{

    display:flex;

    gap:8px;

    align-items:flex-start;

    background:#eef7ff;

    border-right:4px solid var(--main-color);

    border-radius:8px;

    padding:13px 15px;

    margin-top:18px;

}

.guide-warning{

    display:flex;

    gap:8px;

    align-items:flex-start;

    background:#fff8e6;

    border-right:4px solid var(--warning);

    border-radius:8px;

    padding:13px 15px;

    margin-top:18px;

}

@media(max-width:576px){

    .user-guide{

        padding:20px 16px;

    }

    .guide-header h2{

        font-size:20px;

    }

    .guide-section h3{

        font-size:17px;

    }

}