/* -----------------------------------
   Main Upload Box
----------------------------------- */

.cfu-upload-field {
    margin: 0 0 20px 0;
    padding: 20px;
    border: 2px dashed #0073aa;
    border-radius: 10px;
    background-color: #f9f9f9;
    background-color: #f9f9f9;
    text-align: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.cfu-upload-field:hover {
    background-color: #f0f8ff;
    border-color: #005177;
}


/* -----------------------------------
   Upload Label
----------------------------------- */

.cfu-upload-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
}


/* -----------------------------------
   File Upload Container
----------------------------------- */

#cfu_file_container {
    width: 100%;
    margin: 0;
    padding: 0;
}


/* -----------------------------------
   File Upload Rows
----------------------------------- */

#cfu_file_container .cfu-file-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin: 0 0 10px 0;
    padding: 0;
    box-sizing: border-box;
}


/* -----------------------------------
   File Input
----------------------------------- */

#cfu_file_container .cfu_file_input {
    display: inline-block;
    margin: 0;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    text-align: left;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

#cfu_file_container .cfu_file_input:hover {
    background-color: #0073aa;
    color: #fff;
    border-color: #005177;
}

/* -----------------------------------
   Remove Button
----------------------------------- */

#cfu_file_container .cfu_remove_file {
    display: inline-block;
    margin: 0 0 0 10px;
    padding: 6px 12px;
    font-size: 12px;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    color: #555;
    border-radius: 5px;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

#cfu_file_container .cfu_remove_file:hover {
    background-color: #d9534f;
    border-color: #d43f3a;
    color: #fff;
}

/* -----------------------------------
   File Status List
----------------------------------- */

#cfu_file_list {
    width: 100%;
    margin-top: 15px;
    text-align: left;
    box-sizing: border-box;
}

.cfu-file-item {
    font-size: 14px;
    color: #555;
    padding: 6px 10px;
    border-radius: 5px;
    background-color: #f1f1f1;
    margin-bottom: 5px;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.cfu-file-item.success {
    background-color: #d4edda;
    color: #155724;
}

.cfu-file-item.error {
    background-color: #f8d7da;
    color: #721c24;
}


/* -----------------------------------
   Mobile
----------------------------------- */

@media screen and (max-width: 480px) {

    .cfu-upload-field {
        padding: 15px;
    }

    #cfu_file_container .cfu-file-row {
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    #cfu_file_container .cfu_file_input {
        max-width: 100%;
    }

    #cfu_file_container .cfu_remove_file {
        flex-shrink: 0;
    }
}

