.main-content {
    display: flex;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.image-translate-container {
    width: 35%;
}

.video-preview-container {
    width: 60%;
    min-height: 700px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 0 20px;
}

.preview-tab {
    padding: 15px 20px;
    border: none;
    background: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
}

.preview-tab.active {
    color: #2196F3;
    font-weight: 500;
}

.preview-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2196F3;
}

.preview-content {
    padding: 20px;
    height: calc(100% - 52px);
}

.preview-panel {
    display: none;
    height: 100%;
}

.preview-panel.active {
    display: block;
}

.preview-panel video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f5f5;
    border-radius: 4px;
    max-width: 600px;
    max-height: 600px;
}

.select-style {
    display: flex;
    margin-bottom:10px;
    p {
        width:100px;
    }
}
select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
}

.language-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: white;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 16px;
    cursor: pointer;
    font-size: 24px;
    transition: background 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.5);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.translate-btn {
    width: 100%;
    padding: 15px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.translate-btn:hover {
    background-color: #1976D2;
}

.upload-area {
    margin-bottom: 10px;
}

.upload-box {
    width: 100%;
    height: 150px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-placeholder {
    display: flex;
    
}

.upload-placeholder img {
    width: 64px;
    height: 64px;
}

.upload-placeholder p {
    color: #666;
    font-size: 14px;
    margin-left: 10px;
}

.language-options {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.language-btn {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.language-btn.active {
    border-color: #2196F3;
    background-color: #E3F2FD;
}

.language-btn span {
    font-size: 16px;
    font-weight: 500;
}

.preview-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.translate-btn {
    width: 100%;
    padding: 15px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.translate-btn:hover {
    background-color: #1976D2;
}
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 1px 10%;
}

.toolbar-left {
    display: flex;
    gap: 20px;
}

.toolbar-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
}

.toolbar-btn.active {
    color: #2196F3;
    font-weight: 500;
}

.toolbar-btn.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2196F3;
}

.cost-notice {
    text-align: center;
    color: #666;
    font-size: 12px;
}

.progress-overlay {
    position: absolute;
    top: 150px;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.progress-container {
    text-align: center;
}

.progress-circle {
    position: relative;
    width: 200px;
    height: 200px;
    display: inline-block;
}

.progress-circle-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-number {
    font-size: 36px;
    font-weight: bold;
    color: #2196F3;
    text-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
    margin-bottom: 8px;
}

.progress-text {
    color: #fff;
    font-size: 16px;
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.3s;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    stroke-dasharray: 565.48; /* 2 * π * 90 */
    stroke-dashoffset: 565.48;
}

@keyframes glowing {
    0% { box-shadow: 0 0 5px #2196F3; }
    50% { box-shadow: 0 0 20px #2196F3; }
    100% { box-shadow: 0 0 5px #2196F3; }
}

.progress-circle::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    animation: glowing 2s infinite;
    opacity: 0.5;
}
