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

body{
    background:#f5f7fb;
    font-family:'Segoe UI',sans-serif;
}

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

.converter-card{
    border:none;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

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

h1{

    font-size:60px;

    font-weight:700;

    color:#4f46e5;

}


/* ===================================
   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;

}

/* ===========================
   SETTINGS CARD
=========================== */

.settings-card{

    border:1px solid #e5e7eb;

    border-radius:15px;

    padding:25px;

    background:#ffffff;

}

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

.result-card{

    border-radius:15px;

}

/* ===========================
   RESULT TABLE HEADER
=========================== */

.result-header{

    background:#f8fafc;

    border-radius:12px;

    padding:15px;

    font-weight:600;

}

/* ===========================
   IMAGE FILE ROW
=========================== */

.image-row{

    border-radius:15px;

    transition:.2s;

}

.image-row:hover{

    transform:translateY(-2px);

}

/* ===========================
   FILE NAME
=========================== */


/* ===========================
   FILE SIZE
=========================== */

.file-size{

    color:#6b7280;

    font-size:15px;

}

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

.btn-primary{

    background:linear-gradient(
        90deg,
        #2563eb,
        #7c3aed
    );

    border:none;

}

.btn-primary:hover{

    opacity:.9;

}

.btn-lg{

    border-radius:10px;

}

.btn-success{

    font-weight:600;

}



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

.progress{

    height:25px;

    border-radius:50px;

}

.progress-bar{

    font-weight:600;

}

/* ===========================
   IMAGE PREVIEW
=========================== */

#resultPreviewImage{

    max-width:100%;

    max-height:75vh;

    border-radius:12px;

    box-shadow:0 5px 20px rgba(0,0,0,.15);

}

/* ===========================
   FILE LIST CARD
=========================== */
#fileList .card{

    border:none;

    border-radius:15px;

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

    margin-bottom:10px;

}

#fileList .card-body{

    padding:15px 25px;

}

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

#summaryCard{

    border-radius:12px;

}

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

.dark-mode{

    background:#111827;

    color:#f9fafb;

}

.dark-mode .converter-card{

    background:#1f2937;

    color:#f9fafb;

}

.dark-mode .settings-card{

    background:#374151;

    border-color:#4b5563;

}

.dark-mode .upload-area{

    background:#374151;

    border-color:#60a5fa;

}

.dark-mode .card{

    background:#374151;

    color:#f9fafb;

}

.dark-mode .form-control,
.dark-mode .form-select{

    background:#1f2937;

    color:white;

    border-color:#4b5563;

}

.dark-mode .modal-content{

    background:#1f2937;

    color:white;

}

.file-name{

    font-size:18px;

    font-weight:600;

}

#imageDownloads .card-body{

    padding:15px 25px;

}

#imageDownloads .btn{

    min-width:110px;

}


.result-header{

    background:#f8fafc;

    border-radius:12px;

}

.upload-area .btn-lg{

    padding:10px 20px;

    font-size:16px;

}
.upload-area h3{

    font-size:20px;

    font-weight:600;

    margin-bottom:5px;

}

.upload-area{

    width:80%;

    margin:auto;

}

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

@media (max-width:991px){

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

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

    .upload-area{
        width:100%;
        padding:35px 20px;
        min-height:auto;
    }

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

    .settings-card{
        padding:20px;
    }

    .file-name{
        font-size:16px;
    }

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

    #imageDownloads .card-body{
        padding:15px;
    }

    .result-header{
        display: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:100px;
    }

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

    .upload-area{
        width:100%;
        padding:30px 15px;
        min-height:auto;
        border-radius:16px;
    }

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

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

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

    .upload-area .btn-lg{
        width:100%;
        font-size:16px;
    }

    .settings-card{
        padding:18px;
        border-radius:14px;
    }

    /* Upload Cards */

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

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

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

    .file-size{
        font-size:13px;
        margin-bottom:12px;
    }

    #fileList .btn{
        width:100%;
        margin-bottom:10px;
    }

    /* Result Cards */

    .result-header{
        display:none;
    }

    #imageDownloads .card{
        border-radius:14px;
        margin-bottom:15px;
    }

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

    .result-file-name{
        font-size:15px;
        font-weight:700;
        margin-bottom:12px;
        word-break:break-word;
    }

    .result-info{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:10px;
        margin-bottom:15px;
        font-size:13px;
    }

    .result-actions{
        display:flex;
        flex-direction:column;
        gap:10px;
    }

    .result-actions .btn{
        width:100%;
    }

    #resultPreviewImage{
        max-height:50vh;
    }
}

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

@media (max-width:575px){

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

    h1{
        font-size:26px;
    }

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

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

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

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

    .settings-card{
        padding:15px;
    }

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

    .file-size{
        font-size:12px;
    }

    .result-info{
        grid-template-columns:1fr;
        text-align:center;
    }

    .result-actions .btn{
        font-size:14px;
    }

    #resultPreviewImage{
        max-height:40vh;
    }
}

/* ===========================
   FREEZE UI
=========================== */

.converting{

    pointer-events:none;

    opacity:.65;

}

/* ===========================
   HIDE DURING CONVERSION
=========================== */

.hide-during-conversion{

    display:none !important;

}

/* ===========================
   DISABLED BUTTON
=========================== */

button:disabled{

    cursor:not-allowed;

    opacity:.7;

}