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

body{

    background:#f5f7fb;

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

}

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

.navbar{

    background:white;

}

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

.converter-card{

    max-width:1100px;

    margin:auto;

    background:white;

    border-radius:20px;

    padding:40px;

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

}

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

h1{

    font-size:44px;

    font-weight:700;

    color:#7c3aed;

}

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

.summary-card{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 25px;

    margin-bottom:20px;

    border-radius:15px;

    background:#f8fafc;

    border:1px solid #e5e7eb;

    font-size:18px;

}

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

#fileListContainer .card{

    border:none;

    border-radius:15px;

    margin-bottom:12px;

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

}

#fileListContainer .card-body{

    padding:18px 25px;

}

.file-row-name{

    font-size:17px;

    font-weight:600;

}

.file-row-name i{

    color:#7c3aed;

    margin-right:10px;

}

.settings-card{

    margin-top:25px;

    background:white;

    border:1px solid #e5e7eb;

    border-radius:15px;

    padding:25px;

}

.progress{

    height:28px;

    border-radius:50px;

}

.progress-bar{

    font-weight:600;

}

.result-header{

    background:#f8fafc;

    border:1px solid #e5e7eb;

    border-radius:12px;

    padding:15px;

    margin-bottom:15px;

}

.result-summary{

    margin-top:20px;

    text-align:center;

    font-size:18px;

    font-weight:600;

}

#croppedFilesContainer .card{

    border:none;

    border-radius:12px;

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

}

#croppedFilesContainer .card-body{

    padding:18px 25px;

}

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

.dark-mode{
    background:#111827;
    color:white;
}

.dark-mode .navbar{
    background:#1f2937 !important;
}

.dark-mode .converter-card{
    background:#1f2937;
    color:white;
}

.dark-mode h1{
    color:white;
}

.dark-mode .text-muted{
    color:#d1d5db !important;
}

.dark-mode .summary-card{
    background:#374151;
    border-color:#4b5563;
}

.dark-mode .upload-area{
    background:#374151;
    border-color:#60a5fa;
}


.dark-mode .form-check-label{
    color:white;
}

.dark-mode .result-header{
    background:#374151;
    border-color:#4b5563;
}

.dark-mode .result-summary{
    color:white;
}

.dark-mode .card{
    background:#374151;
    color:white;
}

.dark-mode .modal-content{
    background:#1f2937;
    color:white;
}

.dark-mode .btn-outline-dark{
    color:white;
    border-color:white;
}

.dark-mode .btn-outline-dark:hover{
    background:white;
    color:#111827;
}

.dark-mode .tool-section{
    background:#374151;
    border:1px solid #4b5563;
    color:white;
}
/* ===========================
   PREVIEW MODAL
=========================== */

#previewFrame{

    width:100%;

    height:700px;

    border:none;

}


/* Result Cards */

#croppedFilesContainer .card{

    border-radius:14px;

    margin-bottom:15px;

}

#croppedFilesContainer .card-body{

    padding:15px;

}

.result-summary{

    font-size:15px;

}
/* ===================================
   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-radius:15px;

    border:1px solid #e5e7eb;

    background:white;

}

.tool-section h4{

    margin-bottom:20px;

    font-weight:700;

    color:#111827;

}

/* ===========================
   FORM CHECK
=========================== */

.form-check{

    margin-bottom:12px;

}

.form-check-label{

    font-size:16px;

}

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

.btn-primary{

    border:none;

    background:linear-gradient(
            90deg,
            #7c3aed,
            #9333ea
    );

    padding:12px 30px;

    border-radius:12px;

}

.btn-primary:hover{

    opacity:.9;

}

/* ===================================
   TABLET (768px - 991px)
=================================== */

@media (max-width:991px){

    .converter-card{
        padding:30px;
        margin-bottom:70px;
    }

    h1{
        font-size:38px;
        text-align:center;
    }

    .summary-card{
        font-size:16px;
        padding:16px 20px;
    }

    .upload-area{
        padding:40px 20px;
    }

    .upload-icon{
        font-size:60px;
    }

    .upload-area h3{
        font-size:22px;
    }

    .tool-section{
        padding:20px;
    }

    .tool-section h4{
        font-size:22px;
    }

    #fileListContainer .card-body{
        padding:16px;
    }

    .btn-primary{
        max-width:none;
    }
}

/* ===================================
   MOBILE (576px - 767px)
=================================== */

@media (max-width:767px){

    .container{
        padding-left:15px;
        padding-right:15px;
    }

    .converter-card{
        padding:20px 15px;
        border-radius:18px;
        margin-bottom:70px;
    }

    h1{
        font-size:30px;
        text-align:center;
    }

    .summary-card{
        flex-direction:column;
        gap:10px;
        text-align:center;
        font-size:15px;
        padding:15px;
    }

    .upload-area{
        padding:30px 15px;
        border-radius:16px;
    }

    .upload-icon{
        font-size:50px;
    }

    .upload-area h3{
        font-size:20px;
    }

    .upload-area p{
        font-size:14px;
    }

    .upload-area .btn{
        width:100%;
    }

    .tool-section{
        padding:18px;
        border-radius:14px;
    }

    .tool-section h4{
        font-size:20px;
        margin-bottom:15px;
    }

    .form-check-label{
        font-size:15px;
    }

    /* Upload File Card */

    #fileListContainer .card{
        border-radius:14px;
    }

    #fileListContainer .card-body{
        padding:15px;
        text-align:center;
    }

    .file-row-name{
        font-size:15px;
        margin-bottom:8px;
        word-break:break-word;
    }

   
}

/* ===================================
   SMALL MOBILE (320px - 575px)
=================================== */

@media (max-width:575px){

    .converter-card{
        padding:15px 12px;
        margin-bottom:70px;
    }

    h1{
        font-size:26px;
    }

    .summary-card{
        font-size:14px;
        padding:12px;
    }

    .upload-area{
        padding:25px 10px;
    }

    .upload-icon{
        font-size:42px;
    }

    .upload-area h3{
        font-size:18px;
    }

    .upload-area p{
        font-size:13px;
    }

    .tool-section{
        padding:15px;
    }

    .tool-section h4{
        font-size:18px;
    }

    .form-check-label{
        font-size:14px;
    }

    .file-row-name{
        font-size:14px;
    }

    .btn-primary{
        font-size:14px;
    }
}