/* Upload Progress Modal Styling */
.stc-upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.stc-upload-modal.is-active {
    display: block;
}

.stc-upload-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.stc-upload-modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 500px;
    width: 90%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 2;
    overflow: hidden;
}

.stc-upload-modal-content {
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.stc-upload-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stc-upload-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #1e1e1e;
}

.stc-upload-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #757575;
    padding: 0;
}

.stc-upload-modal-close:hover {
    color: #1e1e1e;
}

.stc-upload-modal-body {
    padding: 20px;
    overflow-y: auto;
}

.stc-upload-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.stc-upload-status-icon {
    margin-bottom: 15px;
    width: 48px;
    height: 48px;
    /* Add icon styling as needed */
}

.stc-upload-status-message {
    font-size: 16px;
    font-weight: 500;
    color: #1e1e1e;
}

.stc-upload-progress {
    margin-bottom: 20px;
}

.stc-upload-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.stc-upload-progress-value {
    height: 100%;
    background-color: #0073aa;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.stc-upload-progress-text {
    text-align: right;
    font-size: 14px;
    color: #757575;
}

.stc-upload-details {
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.stc-upload-details-header {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
    font-weight: 500;
}

.stc-upload-count {
    font-weight: 600;
}

.stc-upload-items {
    max-height: 200px;
    overflow-y: auto;
}

.stc-upload-item {
    padding: 10px 15px;
    border-bottom: 1px solid #e5e5e5;
}

.stc-upload-item:last-child {
    border-bottom: none;
}

.stc-upload-item-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.stc-upload-item-name {
    font-size: 14px;
    color: #1e1e1e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.stc-upload-item-status {
    font-size: 14px;
    color: #757575;
}

.stc-upload-item-progress-bar {
    width: 100%;
    height: 4px;
    background-color: #e5e5e5;
    border-radius: 2px;
    overflow: hidden;
}

.stc-upload-item-progress-value {
    height: 100%;
    background-color: #0073aa;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.stc-upload-item.is-uploading .stc-upload-item-status {
    color: #0073aa;
}

.stc-upload-item.is-uploaded .stc-upload-item-status {
    color: #46b450;
}

.stc-upload-item.is-failed .stc-upload-item-status {
    color: #dc3232;
}

.stc-upload-error {
    background-color: #fef7f7;
    border: 1px solid #ffcbcb;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.stc-upload-error-icon {
    margin-right: 10px;
    color: #dc3232;
    font-size: 18px;
}

.stc-upload-error-message {
    color: #1e1e1e;
    font-size: 14px;
    line-height: 1.4;
}

.stc-upload-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px;
    border-top: 1px solid #e5e5e5;
    background-color: #f5f5f5;
}

.stc-upload-modal-footer button {
    margin-left: 10px;
    padding: 8px 16px;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #1e1e1e;
}

.stc-upload-modal-footer button:hover {
    background-color: #e5e5e5;
}

.stc-upload-continue {
    background-color: #0073aa !important;
    color: #fff !important;
    border-color: #006291 !important;
}

.stc-upload-continue:hover {
    background-color: #006291 !important;
}

.stc-upload-retry {
    background-color: #ffb900 !important;
    color: #fff !important;
    border-color: #e0a800 !important;
}

.stc-upload-retry:hover {
    background-color: #e0a800 !important;
}

.stc-upload-cancel, .stc-upload-modal-close {
    background-color: #f5f5f5;
    color: #555;
    border-color: #ccc;
}

.stc-upload-cancel:hover, .stc-upload-modal-close:hover {
    background-color: #e5e5e5;
}

/* Animation for progress highlight */
.stc-price-highlight {
    animation: highlight-price 0.5s ease;
}

@keyframes highlight-price {
    0% {
        background-color: rgba(0, 115, 170, 0.2);
    }
    100% {
        background-color: transparent;
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .stc-upload-modal-container {
        width: 95%;
    }
    
    .stc-upload-modal-title {
        font-size: 16px;
    }
    
    .stc-upload-status-message {
        font-size: 14px;
    }
    
    .stc-upload-modal-footer button {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .stc-upload-items {
        max-height: 150px;
    }
}