body {
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

.upload_limits_info {
    margin: 10px 0;
    padding: 10px;
    background-color: #333;
    border-radius: 8px;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 20px;
}

.upload_limits_info p {
    margin: 5px 0;
}

.block_1 {
    width: 400px;
    height: auto;
    border-radius: 20px;
    z-index: 2;
}

.block_2_upload {
    height: auto;
    width: 680px;
    z-index: 1;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    color: var(--text_color);
}

.block_2_content {
    width: 100%;
    height: auto;
    padding-left: 40px;
    padding-top: 20px;
    overflow: hidden;
}

.block_2_item {
    width: 100%;
    box-sizing: border-box;
    height: 40px;
    background-color: transparent;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

.block_2_item_ico {
    height: inherit;
    filter: invert(93%) sepia(99%) saturate(2%) hue-rotate(290deg) brightness(107%) contrast(100%);
    opacity: 0.6;
    margin-right: 4px;
}

.block_2_item_catetitle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: inherit;
    font-size: 14px;
    opacity: 0.6;
    width: 100px;
}

.block_2_item_catevar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: inherit;
    font-size: 14px;
}

.block_2_button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 60px;
    height: 560px;
}

.block_2_button:hover {
    cursor: pointer;
}

.block_2_button_ico {
    width: 60px;
    height: 60px;
    background-color: var(--text_color);
}

.block_2_button_ico:hover {
    cursor: pointer;
}

.block_1 h2 {
    font-size: 26px;
    margin: 20px;
    color: var(--text_color);
    font-family: 'DM Sans', sans-serif;
}

.block_1_upload {
    background-color: transparent;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    z-index: 1;
    margin-bottom: 5px;
}

.block_1_upload_inner {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
    gap: 15px;
}

.block_1_upload_inner > div {
    position: relative;
}

.upload_outer {
    display: flex;
    justify-content: center;
}

.upload_button {
    width: 35px;
    height: 35px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    cursor: pointer;
    filter: brightness(0) invert(1);
}

[data-theme="light"] .upload_button {
    filter: none;
}

.upload_button:hover {
    opacity: 1;
}

.dragupload_text {
    font-size: 18px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
    opacity: 0.8;
    text-align: center;
    margin-bottom: 10px;
}

.upload_h2 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 0px;
    color: var(--text_color);
    font-weight: 700;
}

.upload_h3_1 {
    font-size: 15px;
    font-weight: 400;
    color: var(--text_color);
    margin-bottom: 8px;
    text-align: left;
    width: 100%;
}

.upload_h3 {
    font-size: 15px;
    font-weight: 400;
    color: #d3d3d3;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}

.upload_h3_2 {
    font-size: 15px;
    font-weight: 400;
    color: var(--text_color);
    opacity: 0.9;
    text-align: left;
    width: 100%;
    margin: 0px;
    margin-top: -1px;
    margin-bottom: 2px;
    min-width: max-content;
    width: max-content;
    max-width: 90%;
}

.upload_h3::before,
.upload_h3::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #2a2a2a 15%, #2a2a2a 85%, transparent);
    transform: translateY(2px);
}

.upload_file_info_inner {
    display: flex;
    flex-direction: row;
    width: max-content;
    flex-wrap: nowrap;
    width: 100%;
}

.uploadfromurl_form {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    max-height: 40px;
}

.fromurl_input {
    width: 100%;
    max-height: 40px;
}

.fromurl_input.invalid {
    border: 1px solid #ff3a3a;
    background-color: rgba(255, 58, 58, 0.1);
}

.fromurl_input:focus {
    outline: none;
}

.fromurl_input::placeholder {
    color: #8a8a8a;
}

.uploadfromfile_form {
    display: flex;
}

.choosefile {
    font-size: 14px;
    border-radius: 8px;
    color: var(--text_color);
    width: 100%;
    height: 40px;
    padding: 10px 15px;
    background-color: #2a2a2a;
    font-family: 'DM Sans', sans-serif;
}

.choosefile::file-selector-button {
    background-color: #2a2a2a;
    color: var(--text_color);
    outline: none;
    box-shadow: none;
    border-radius: 8px;
    height: 38px;
    margin-left: 2px;
    margin-right: 10px;
    font-family: 'DM Sans', sans-serif;
    transition: background-color 0.3s ease;
}

.choosefile::file-selector-button:hover {
    cursor: pointer;
    background-color: #3a3a3a;
}

.upload_submit {
    width: 100px;
    height: 40px;
    padding: 0 20px;
    text-align: center;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    color: var(--text_color);
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    cursor: pointer;
    margin-left: 10px;
}

.upload_submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.upload_submit.bcbd {
    color: white;
    box-shadow: 0 4px 15px rgba(109, 58, 255, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: transparent;
}

.upload_submit.bcbd::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-purple));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.upload_submit.bcbd:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(109, 58, 255, 0.4);
}

.upload_submit.bcbd:disabled {
    color: white;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.5;
}

.upload_submit.bcbd:disabled::before {
    opacity: 0.3;
}

.upload_status_container {
    position: relative;
    z-index: 2;
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
    border-radius: 8px;
    box-sizing: border-box;
    display: none;
}

.has-files .upload_status_container {
    display: block;
}

.upload_status_container::-webkit-scrollbar {
    width: 8px;
}

.upload_status_container::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 4px;
}

.upload_status_container::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 4px;
}

.upload_status_container::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

#upload_status_blocks {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    overflow-y: auto;
}

.block_3_upload {
    background-color: var(--blockonblock_background);
    padding: 8px;
    border-radius: 8px;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
    height: 50px;
    margin-bottom: 6px;
}

.block_3_upload:first-child {
    margin-top: 0;
}

.upload_thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background-color: #1c1b1b;
    overflow: hidden;
    flex-shrink: 0;
}

.upload_thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload_file_info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upload_status_header {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.upload_progress {
    width: 100%;
    height: 6px;
    background-color: #1c1b1b;
    border-radius: 2px;
    overflow: hidden;
    margin: 0;
    position: relative;
}

[data-theme="light"] .upload_progress {
    background-color: white;
}

.progress_bar {
    width: 0;
    height: 100%;
    background-color: #007bff;
    transition: width 0.3s ease-in-out;
}

.upload_status_text {
    color: #8a8a8a;
    font-size: 14px;
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

.file_size {
    color: #8a8a8a;
    min-width: max-content;
    max-width: max-content;
    margin-left: 19px;
    margin-top: -1px;
}

.upload_percentage {
    color: var(--text_color);
}

#continue_button {
    width: 200px;
    height: 40px;
    margin-left: auto;
}

#continue_button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#continue_button:not(:disabled) {
    opacity: 1;
}

#continue_button:not(:disabled):hover {
    background-color: #444;
}

.no_files_block {
    display: none;
}

.upload_thumbnail.video::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: linear-gradient(90deg, transparent 0%, transparent 50%, white 50%, white 100%);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    width: 12px;
    height: 16px;
}

.uploaded_file_item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background-color: #2a2a2a;
    border-radius: 8px;
    margin-bottom: 20px;
}

.file_preview {
    flex-shrink: 0;
    width: 200px;
    border-radius: 4px;
    overflow: hidden;
}

.file_preview img,
.file_preview video {
    width: 100%;
    height: auto;
    display: block;
}

.file_details {
    flex-grow: 1;
}

.file_details p {
    margin: 8px 0;
    color: var(--text_color);
    font-family: 'DM Sans', sans-serif;
}

.error_message {
    padding: 20px;
    background-color: rgba(255, 0, 0, 0.1);
    color: #ff3a3a;
    border-radius: 8px;
    margin: 20px 0;
    font-family: 'DM Sans', sans-serif;
}

.uploadfromfile_form.inside_drag {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 80%;
}

.uploadfromfile_form.inside_drag .choosefile {
    width: 200px;
    text-align: center;
}

.uploadfromfile_form.inside_drag .choosefile::file-selector-button {
    display: none;
}

.uploadfromfile_form.inside_drag .choosefile {
    position: relative;
    overflow: hidden;
    padding: 0;
    text-align: center;
    cursor: pointer;
}

.uploadfromfile_form.inside_drag .choosefile::before {
    content: "Select Files";
    display: inline-block;
    background-color: #333;
    color: var(--text_color);
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: center;
}

.uploadfromfile_form.inside_drag .choosefile:hover::before {
    background-color: #444;
}

.uploadfromfile_form.inside_drag .upload_submit {
    width: 200px;
    margin-top: 10px;
}

.upload_outer_container {
    border-radius: 8px;
    width: 50%;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;;
}

.upload_outer_container_1 {
    width: 60%;
}

.upload_outer_container_inner1 {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.draghere {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.select_files_button {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    margin-top: 0px;
    width: 150px;
    display: flex;
    justify-content: center;
}

.select_files_button:hover {
    background-color: #444;
}

.block_1_upload_inner.dragover {
    background-color: #454545;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.block_1_upload_inner.dragover .dragupload_text {
    color: #ffffff;
}

.active {
    color: var(--text_color);
}

.continue_button_upload {
    margin-top: 14px;
}

@media (max-width: 767px) {
    .block_1_upload_inner {
        flex-direction: column;
    }

    .upload_outer_container_1,
    .block_1_upload_inner > .or_separator {
        display: none !important;
    }

    .upload_outer_container {
        width: 100%;
        height: min-content;
        margin-bottom: 6px;
        background-color: transparent !important;
    }

    .upload_outer_container.standard_input {
        background-color: transparent !important;
    }

    .select_files_button {
        width: 100%;
        background-color: rgb(54, 53, 61, 0.8) !important;
    }

    .select_files_button:hover {
        background-color: rgb(64, 63, 71, 0.8) !important;
    }

    .continue_button_upload {
        margin-top: 0px;
    }

    .uploadfromurl_form {
        flex-direction: row;
    }

    .uploadfromfile_form {
        flex-direction: column;
    }

    .upload_status_container {
        max-height: 300px;
    }

    .block_1_upload_inner {
        margin-top: -12px;
    }

    .block_3_upload {
        flex-direction: row;
        align-items: center;
        text-align: center;
    }

    .upload_h3_2 {
        min-width: none;
    }

    .upload_thumbnail {
        margin-bottom: 10px;
    }

    .upload_file_info {
        width: 100%;
        margin-bottom: 0px;
        margin-left: -10px;
    }

    .upload_status_text {
        min-width: 50px;
        max-width: 50px;
        justify-content: center;
    }

    .filename_container h3 {
        max-width: calc(100% - 30px);
        overflow-x: visible;
    }

    .file_extension {
        font-size: 12px;
        margin-right: -4px;
    }

    .upload_h2 {
        font-size: 22px;
    }

    .upload_h3 {
        font-size: 14px;
    }

    .dragupload_text {
        font-size: 18px;
    }

    .upload_button {
        width: 60px;
        height: 60px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .block_2_upload {
        width: 90%;
        max-width: 600px;
    }
}

@media (max-width: 767px) and (min-width: 480px) {
    .block_3_upload {
        flex-direction: row;
    }

    .upload_thumbnail {
        margin-bottom: 0;
        margin-right: 10px;
    }
}

.file-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.upload_thumbnail.file-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #333;
}

.error_message_text {
    color: #ff3a3a;
    font-size: 12px;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.block_3_upload.has-error .progress_bar {
    background-color: #ff3a3a;
}

.block_3_upload.has-error .upload_percentage {
    color: #ff3a3a;
}

.or_separator {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    color: #8a8a8a;
    font-size: 14px;
    font-weight: 400;
    margin: 0 30px;
    position: relative;
}

.or_separator::before,
.or_separator::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, #525252 15%, #767676 85%, transparent);
}

.or_separator::before {
    top: 5px;
}

.or_separator::after {
    bottom: 5px;
}

.or_separator span {
    padding: 0;
    z-index: 1;
}