/* Animation Section Styles */
.animation-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.animation-section h2 {
    color: #2196F3;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.zoom-settings {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.animation-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.animation-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.gif-controls, .mp4-controls {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.gif-controls {
    border-left: 4px solid #4CAF50;
}

.mp4-controls {
    border-left: 4px solid #2196F3;
}

.animation-button {
    background: #2196F3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s, transform 0.1s;
    width: 100%;
    margin: 5px 0;
}

.gif-controls .animation-button {
    background: #4CAF50;
}

.gif-controls .animation-button:hover {
    background: #388E3C;
}

.mp4-controls .animation-button {
    background: #2196F3;
}

.mp4-controls .animation-button:hover {
    background: #1976D2;
}

#generateAnimationBtn {
    background: #9C27B0;
    margin-bottom: 10px;
}

#generateAnimationBtn:hover {
    background: #7B1FA2;
}

.animation-button:hover {
    background: #1976D2;
}

.animation-button:active {
    transform: translateY(1px);
}

.animation-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.animation-progress {
    background: #e9ecef;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

#animationProgress {
    background: #2196F3;
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

#animationProgressText {
    text-align: center;
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
}

/* Input Styles */
.zoom-settings input[type="range"] {
    width: 100%;
    margin: 10px 0;
}

.zoom-settings select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

/* Value Display */
#durationValue,
#zoomValue {
    display: inline-block;
    min-width: 40px;
    text-align: right;
    color: #666;
    font-size: 0.9em;
    margin-left: 10px;
}

/* Animation Selector */
.animation-selector-group {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

.animation-selector-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.animation-selector-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
}

.animation-selector-group select:focus {
    border-color: #2196F3;
    outline: none;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .animation-buttons {
        flex-direction: column;
    }
    
    .animation-button {
        width: 100%;
    }
}
