/* Rotate Video Tool styles */

#videoContainer {
    display: none;
    flex-direction: column;
    gap: 24px;
    margin: 24px auto;
    max-width: 960px;
    align-items: center;
}

.video-preview-wrapper {
    background: #000;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.video-preview-wrapper video {
    max-width: 100%;
    max-height: 480px;
    background: #000;
    border-radius: 6px;
    transition: transform 0.25s ease;
    transform-origin: center center;
}

.video-preview-wrapper video.preview-rotate-90,
.video-preview-wrapper video.preview-rotate-270 {
    max-height: 320px;
}

.rotate-options {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    width: 100%;
    box-sizing: border-box;
}

.rotate-options .option-group {
    margin-bottom: 24px;
}

.rotate-options .option-group:last-of-type {
    margin-bottom: 16px;
}

.rotate-options label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.rotate-buttons,
.flip-toggle-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.rotate-btn,
.flip-toggle-btn {
    flex: 1 1 140px;
    padding: 14px 18px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
    transition: all 0.15s ease;
}

.rotate-btn:hover,
.flip-toggle-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.rotate-btn.active,
.flip-toggle-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

.rotate-btn i,
.flip-toggle-btn i {
    font-size: 1.05rem;
}

#processButton {
    width: 100%;
    margin-top: 8px;
}

#processingStatus {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

#downloadContainer {
    display: none;
    text-align: center;
    margin: 24px auto;
    max-width: 720px;
}

#downloadContainer video {
    width: 100%;
    max-height: 480px;
    background: #000;
    border-radius: 8px;
    margin: 16px 0;
}

@media (max-width: 600px) {
    .rotate-buttons,
    .flip-toggle-buttons { flex-direction: column; }
    .rotate-btn,
    .flip-toggle-btn { flex-basis: auto; }
}
