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

body{

    background:#f5f7fb;

    font-family:'Segoe UI',sans-serif;

}

/* ===========================
   NAVBAR
=========================== */

.navbar{

    background:white;

}

/* ===========================
   MAIN CARD
=========================== */

.converter-card{

    max-width:1200px;

    margin:auto;

    background:white;

    border-radius:25px;

    padding:40px;

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

}

/* ===========================
   TITLE
=========================== */

h1{

    font-size:46px;

    font-weight:700;

    color:#2563eb;

}

/* ===========================
   SUMMARY
=========================== */

.summary-card{

    display:flex;

    justify-content:space-between;

    align-items:center;

    background:#f8fafc;

    border:1px solid #e5e7eb;

    border-radius:15px;

    padding:20px 25px;

    margin-bottom:20px;

    font-size:18px;

}

/* ===========================
   FILE LIST
=========================== */

#fileListContainer .card{

    border:none;

    border-radius:15px;

    margin-bottom:12px;

    box-shadow:0 2px 10px rgba(0,0,0,.05);

}

#fileListContainer .card-body{

    padding:18px 25px;

}

.file-row-name{

    font-size:18px;

    font-weight:600;

}

.file-row-name i{

    color:#16a34a;

    margin-right:10px;

    font-size:24px;

}

#excelPreviewContainer{

    max-height:700px;

    overflow:auto;

}

#excelPreviewContainer table{

    width:100%;

    border-collapse:collapse;

    font-size:14px;

}

#excelPreviewContainer th,
#excelPreviewContainer td{

    border:1px solid #ddd;

    padding:8px;

    white-space:nowrap;

}

#excelPreviewContainer th{

    background:#f5f5f5;

    position:sticky;

    top:0;

}

.dark-mode #excelPreviewContainer th{

    background:#374151;

    color:white;

}

.dark-mode #excelPreviewContainer td{

    color:white;

}

/* ===================================
   UPLOAD AREA
=================================== */

.upload-area {

    background: #eff6ff;

    border: 2px dashed #2563eb;

    border-radius: 20px;

    padding: 50px 30px;

    text-align: center;

    cursor: pointer;

    transition: all .3s ease;

}

.upload-area:hover {

    background: #dbeafe;

    border-color: #1d4ed8;

}

.upload-area.dragover {

    background: #bfdbfe;

    border-color: #1e40af;

    transform: scale(1.02);

}

.upload-icon {

    font-size: 70px;

    color: #2563eb;

    margin-bottom: 20px;

}

.upload-area h3 {

    color: #1d4ed8;

    font-size: 1.7rem;

    font-weight: 700;

    margin-bottom: 10px;

}

.upload-area p {

    color: #475569;

    margin-bottom: 8px;

}

.upload-area .btn-primary {

    background: #2563eb;

    border: none;

    border-radius: 10px;

    padding: 12px 30px;

    font-weight: 600;

}

.upload-area .btn-primary:hover {

    background: #1d4ed8;

}

.upload-area .btn-outline-primary {

    border: 2px solid #2563eb;

    color: #2563eb;

    border-radius: 10px;

    padding: 12px 30px;

    font-weight: 600;

}

.upload-area .btn-outline-primary:hover {

    background: #2563eb;

    color: #ffffff;

}

/* ===========================
   TOOL SECTION
=========================== */

.tool-section{

    margin-top:25px;

    padding:25px;

    border:1px solid #e5e7eb;

    border-radius:15px;

    background:white;

}

.tool-section h4{

    margin-bottom:20px;

    font-weight:700;

    color:#1f2937;

}

.form-check{

    margin-bottom:12px;

}

/* ===========================
   BUTTONS
=========================== */

.btn-primary{

    background:linear-gradient(
        90deg,
        #16a34a,
        #22c55e
    );

    border:none;

}

.btn-primary:hover{

    opacity:.9;

}

.btn-secondary{

    border-radius:12px;

}
/* ===========================
   PROGRESS BAR
=========================== */

#progressContainer {
    margin-top: 30px;
}

#progressContainer .progress {
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
}

#progressBar {
    font-weight: 600;
    font-size: 14px;
    transition: width 0.4s ease;
}

.progress-bar-animated {
    animation-duration: 1s;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.dark-mode .progress {
    background-color: #444;
}



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

.result-summary{

    margin-top:20px;

    padding:15px;

    background:#f8fafc;

    border:1px solid #e5e7eb;

    border-radius:15px;

    text-align:center;

    font-size:16px;

    font-weight:600;

}

#resultFilesContainer .card{

    border:none;

    border-radius:15px;

    margin-bottom:12px;

    box-shadow:0 2px 10px rgba(0,0,0,.05);

}

#resultFilesContainer .card-body{

    padding:18px 25px;

}

/* ===========================
   PREVIEW MODAL
=========================== */

.modal-content{

    border:none;

    border-radius:20px;

}

.modal-header{

    border-bottom:1px solid #e5e7eb;

}

#pdfPreviewFrame{

    width:100%;

    height:750px;

    border:none;

}

/* ===========================
   DARK MODE
=========================== */

.dark-mode{

    background:#111827;

    color:white;

}

.dark-mode .converter-card{

    background:#1f2937;

    color:white;

}

.dark-mode .summary-card{

    background:#374151;

    border-color:#4b5563;

}

.dark-mode .upload-area{

    background:#374151;

    border-color:#22c55e;

}

.dark-mode .tool-section{

    background:#374151;

    border-color:#4b5563;

}

.dark-mode .tool-section h4{

    color:white;

}

.dark-mode .result-summary{

    background:#374151;

    border-color:#4b5563;

}

.dark-mode .card{

    background:#374151;

    color:white;

}

.dark-mode .modal-content{

    background:#1f2937;

    color:white;

}

/* ===========================
   MOBILE
=========================== */

@media(max-width:768px){

    .converter-card{

        padding:20px;
        margin-bottom: 70px;

    }

    h1{

        font-size:34px;

    }

    .summary-card{

        flex-direction:column;

        gap:10px;

        text-align:center;

    }

    .upload-area{

        padding:40px 15px;

    }

    #pdfPreviewFrame{

        height:500px;

    }

}

