﻿.excel-upload-wrapper {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    align-self: stretch;
    background-color: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
}


/* =========================
               Upload container box
            ========================= */
.upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #9e2f1f; /* exact dark brick red */
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .upload-button:hover {
        background-color: #862618;
    }

/* =========================
               Center upload box layout
            ========================= */
.excel-upload-box {
    border-radius: 8px;
    border: 1px solid rgba(34, 34, 33, 0.20);
    /* padding: 48px 24px; */
    /* text-align: center; */
    background: #fbfbfb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 636px;
    height: 292px;
    padding: 26px 26px 2px 26px;
}

    /* File icon above button */
    .excel-upload-box .upload-icon i {
        font-size: 50px;
        opacity: 0.5;
        color: #999;
    }

    /* Text below button */
    .excel-upload-box .upload-hint {
        margin-top: 10px;
        font-size: 12px;
        color: #6b7280;
    }

    /* Text selected file */
    .excel-upload-box .selected-file-name {
        margin-top: 10px;
        font-size: 13px;
        color: #344054;
        background: #f2f4f7;
        border-radius: 8px;
        padding: 8px 12px;
        display: inline-flex;
        align-items: center;
        word-break: break-all;
    }




.upload-click-wrapper {
    position: relative;
    display: inline-block;
}

/* Your visible button */
.upload-ui-button {
    background-color: #9e2f1f;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    cursor: pointer;
}

/* Real file input OVER the button */
.upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
/* =========================
               Error message box
            ========================= */
.upload-success {
    display: none;
    padding: 14px 16px;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    border: 1px solid #B9F8CF;
    background: #F0FDF4;
}

    .upload-success-title, .upload-success i {
        color: #00A63E;
        font-size: 20px;
        line-height: 21px; /* 150% */
    }

.upload-success-title {
    color: #00A63E;
    font-family: Lato;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 21px; /* 150% */
}

.upload-error {
    display: none;
    border: 1px solid #fecaca;
    background-color: #fff1f2;
    border-radius: 10px;
    padding: 14px 16px;
}


.upload-error-title {
    color: #5C5C5C;
    font-family: Lato;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 21px; /* 150% */
    display: flex;
    gap: 8px;
    align-items: center;
}

.upload-error .upload-error-title .error-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid #e7000b;
    border-radius: 50%;
    font-size: 14px;
    color: #e7000b;
}


.upload-error-sub {
    color: #fb2c36;
    font-family: Lato;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 19.5px; /* 150% */
}

/* =========================
               Footer buttons
            ========================= */
.upload-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    width: 100%;
}

.btn-cancel {
    background-color: #f5f5f5;
    border-radius: 10px;
    border: 1px solid rgba(34, 34, 33, 0.20);
    padding: 10px 20px;
    cursor: pointer;
    color: #333;
}

    .btn-cancel:hover {
        background-color: #eee;
    }
/*.btn-upload {
    background: #c58a7f;
    border: none;
    color: #ffffff;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}*/
.btn-upload {
    background-color: #a52a2a;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .btn-upload:hover {
        background: #b2776c;
    }

.upload-footer, .upload-header {
    display: flex;
    gap: 10px;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid rgba(34, 34, 33, 0.10);
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
    width: 100%;
}

.upload-header {
    justify-content: flex-start;
    color: #9A3324;
    font-family: Lato;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 27px; /* 112.5% */
}


.upload-footer {
    justify-content: flex-end;
}





.fileuploader-rf {
    position: absolute !important;
    top: -5px;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
}

.upload-footer.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #e0e0e0;
    border-top: 3px solid #3085d6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}