:root{
    --file-container-bg:  #eeeeee;
    --file-bg:  #f8f8f8;
    --file-border-color: #606060;
    --file-rounded: 15px;
    --file-color: #2b2b2b;
    --table-border-color: #dbdbdb;
    --delete-button-bg: #f53636;
    --delete-button-color: #ffffff;
    --font-size: 0.875em;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --shadow: 0px 8px 15px -8px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.file-container {
    width: 100%;
    font-family: var(--font-family);
    margin-bottom: 30px;

    .file-upload {
        width: 100%;
        display: flex;
        background-color: var(--file-container-bg);
        border-radius: var(--file-rounded);
        transition: all 0.3s;

        &:hover {
            box-shadow: var(--shadow);
        }

        >div {
            width: 100%;
            background-color: var(--file-bg);
            padding: 60px;
            margin: 25px;
            border-radius: 10px;
            border: 1px dashed var(--file-border-color);
            text-align: center;
            cursor: pointer;

            >i {
                font-size: 3.125em;
                color: var(--file-color);
            }

            >p,
            span,
            div {
                font-size: var(--font-size);
                line-height: 30px;
                color: var(--file-color);
            }

            >div {
                width: max-content;
                padding: 0 10px;
                margin: 0 auto;
                border: 1px solid var(--file-border-color);
                border-radius: 8px;
            }
        }
    }

    >table {
        width: 100%;
        border-collapse: collapse;
        font-size: var(--font-size);
        margin-top: 20px;

        >thead {
            display: none;
        }

        & button {
            background-color: var(--delete-button-bg);
            width: 30px;
            height: 30px;
            border: none;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;

            &:hover {
                box-shadow: var(--shadow);
            }

            >i {
                color: var(--delete-button-color);
                font-size: 1.125em;
            }
        }
    }
}

.file-upload {
    position: relative;
    display: block;
    width: 100%;
    border: 2px dashed #ccc;
    text-align: center;
    padding: 20px;
    cursor: pointer;
}

.upload-container {
    margin-bottom: 10px;
}

.progress-bar-container {
    width: 100%;
    display: none; /* Hide by default */
    position: relative;
    height: 8px; /* Adjust as needed */
    background: #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%; /* Start from 0 */
    background: #4CAF50; /* Progress color */
    transition: width 0.5s linear !important;
}

.progress-text {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

/* Grid Layout */
.file-container tbody {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 10px;
}

/* Each Upload Block */
.main_upload_sec {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 300px;
}

/* Image Section */
.img_sec img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

/* Delete Button (Top Right) */
.on_img_btn {
    position: absolute;
    top: 8px;
    right: 8px;
}

.deleteBtn {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 6px 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
}

.deleteBtn:hover {
    background: rgba(255, 0, 0, 0.8);
}

/* Title Input (Bottom Left) */
.on_img_title {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: calc(100% - 16px);
}

.file-name-input {
    background: rgb(0 0 0 / 7%);
    color: white !important;
    border: 1px solid #fff !important;
    padding: 6px !important;
    font-size: 14px;
    width: 100% !important;
    border-radius: 6px !important;
    text-align: left;
    transition: 0.3s;
}


.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
    overflow: auto;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: block;
    margin-top: 5%;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    margin-bottom: 50px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
body.no-scroll {
    overflow: hidden;
}