main{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.box-recive{
    width: 80%;
    padding: 20px;
     background-color: #ffffff;
     border: #1D1D1F 1px solid;
     border-radius: 10px;
}

.recive-top{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#upload{
    background-color: #e8e8ea;
    padding: 9px;
    border-radius: 7px;
    margin-right: 10px;
}

.recive-text{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 17px;
    margin-bottom: 20px;
}
   

.slide-wrapper {
    position: relative;
    width: 100%;
    height: 60px;
    background: #f1f1f1;
    border: 1px solid #e5e5e5;
    border-radius: 30px;
    overflow: hidden;
    user-select: none;
}

.slide-text {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 15px;
    pointer-events: none;
}

.slide-button {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #111;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    cursor: grab;
    touch-action: none;

    transition: background 0.2s;
}

.slide-button:active {
    cursor: grabbing;
}

.upload-pop{
    
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.short-box{
    width: 80%;
    height: 70%;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    overflow-y: auto;
    border: #1D1D1F 1px solid;
    color: #1D1D1F;
    scrollbar-width: thin;
    scrollbar-color: #1D1D1F #E3E2E7;
    scrollbar-behavior: smooth;
    
}

#fileList{
    background-color: #E3E2E7;
    width: 100%;
    height: 70%;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: none;
    padding: 10px;

}

.ect{
    width: 100%;
    display: flex;
    flex-direction: column;

}

.ect label{
    font-size: 15px;
    margin-bottom: 5px;
    margin-top: 20px;
}

.ect select{
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: #1D1D1F 1px solid;
    background-color: #E3E2E7;
}

.ect2{
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.ect2 label{
    font-size: 15px;
    margin-bottom: 5px;
}

.ect2 textarea{
    width: 100%;
    height: 100px;
    padding: 10px;
    border-radius: 5px;
    border: #1D1D1F 1px solid;
    background-color: #E3E2E7;
    outline: none;
}

.final{
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

#cancel{
    background-color: #f12323;
    padding: 10px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}
#upload-icon{
    background-color: #111;
    color: white;
    padding: 10px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}
#upload{
    background-color: #111;
    color: white;
    padding: 10px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}




/*  */

.file-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px;
    margin-bottom: 10px;

    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;

    box-sizing: border-box;
}

.file-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.preview-box {
    width: 58px;
    height: 58px;
    flex-shrink: 0;

    overflow: hidden;
    border-radius: 12px;

    background: #f5f5f5;

    display: flex;
    align-items: center;
    justify-content: center;
}

.file-preview {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;
}

.file-icon {
    font-size: 25px;
}

.file-info {
    min-width: 0;
}

.file-name {
    font-size: 14px;
    font-weight: 500;
    color: #111;

    max-width: 250px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    margin-top: 5px;

    font-size: 12px;
    color: #8a8a8a;
}

.remove-file {
    width: 32px;
    height: 32px;

    flex-shrink: 0;

    border: none;
    border-radius: 50%;

    background: #f3f3f3;
    color: #666;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.2s ease;
}

.remove-file:hover {
    background: #e8e8e8;
    color: #111;
}

.remove-file:active {
    transform: scale(0.9);
}



#progressArea {
    width: 100%;
    margin-top: 20px;
    padding: 16px;

    background: #f8f8f8;
    border: 1px solid #e8e8e8;
    border-radius: 18px;

    box-sizing: border-box;
}

.progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 500;
    color: #555;
}

#uploadPercent {
    color: #111;
    font-weight: 600;
}

#uploadFileName {
    width: 100%;

    margin-bottom: 12px;

    font-size: 13px;
    color: #777;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-bg {
    width: 100%;
    height: 7px;

    background: #e9e9e9;

    border-radius: 999px;

    overflow: hidden;
}

#progressBar {
    width: 0%;
    height: 100%;

    background: #111;

    border-radius: 999px;

    transition: width 0.35s ease;
}

.success-overlay {
    position: fixed;
    inset: 0;

    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.22);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.success-card {
    position: relative;

    width: min(430px, 100%);

    padding: 34px 28px 28px;

    background: #ffffff;

    border: 1px solid rgba(0, 0, 0, 0.08);

    border-radius: 26px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.14);

    text-align: center;

    animation: successPopIn 0.35s ease;
}

@keyframes successPopIn {

    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* Close */

.success-close {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 32px;
    height: 32px;

    border: none;
    border-radius: 50%;

    background: #f5f5f5;

    color: #555;

    font-size: 21px;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.success-close:hover {
    background: #ebebeb;
}

.success-close:active {
    transform: scale(0.9);
}


/* Success icon */

.success-icon {
    width: 64px;
    height: 64px;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: #f1f7f2;

    color: #198754;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;
    font-weight: 600;

    animation: checkIn 0.45s ease;
}

@keyframes checkIn {

    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}


.success-card h2 {
    margin: 0;

    font-size: 28px;
    line-height: 1.15;

    font-weight: 650;

    letter-spacing: -0.7px;

    color: #111;
}

.success-subtitle {
    margin: 10px 0 24px;

    font-size: 14px;
    line-height: 1.5;

    color: #777;
}


/* Code */

.code-box {
    padding: 18px;

    background: #f7f7f7;

    border: 1px solid #e9e9e9;

    border-radius: 17px;

    text-align: center;
}

.code-label {
    display: block;

    margin-bottom: 8px;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.8px;

    color: #999;
}

.transfer-code {
    font-size: 24px;

    font-weight: 650;

    letter-spacing: 2px;

    color: #111;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
}


/* Buttons */

.success-actions {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-top: 16px;
}

.copy-btn,
.share-btn {
    min-height: 48px;

    border-radius: 14px;

    font-size: 14px;
    font-weight: 550;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.copy-btn {
    border: 1px solid #111;

    background: #111;

    color: #fff;
}

.copy-btn:hover {
    background: #222;
}

.share-btn {
    border: 1px solid #ddd;

    background: #fff;

    color: #111;
}

.share-btn:hover {
    background: #f5f5f5;
}

.copy-btn:active,
.share-btn:active {
    transform: scale(0.97);
}


.success-info {
    margin: 18px 5px 0;

    font-size: 12px;
    line-height: 1.5;

    color: #999;
}

@media (max-width: 480px) {

    .success-overlay {
        align-items: flex-end;

        padding: 0;
    }

    .success-card {
        width: 100%;

        padding: 30px 20px 24px;

        border-radius: 26px 26px 0 0;

        animation: sheetUp 0.35s ease;
    }

    @keyframes sheetUp {

        from {
            opacity: 0;
            transform: translateY(100%);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }

    }

    .success-card h2 {
        font-size: 25px;
    }

    .transfer-code {
        font-size: 21px;
        letter-spacing: 1.5px;
    }

}

.copy-btn.copied {
    background: #198754;
    border-color: #198754;
}