/* Components for Anispace */

/* File Upload Components */
.upload-section input[type="file"] {
    display: none;
}

.upload-section label {
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    cursor: pointer;
    margin: 15px 0;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.upload-section label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.upload-section label:active {
    transform: translateY(0);
}

/* Upload Button */
#generateButton {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    width: 100%;
}

#generateButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

#generateButton:active {
    transform: translateY(0);
}

#generateButton:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* File Status Indicators */
.file-status {
    display: flex;
    align-items: center;
    margin: 10px 0;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.file-status.success {
    border-left: 4px solid #51cf66;
    color: #51cf66;
}

.file-status.error {
    border-left: 4px solid #ff6b6b;
    color: #ff6b6b;
}

.file-status.loading {
    border-left: 4px solid #00d4ff;
    color: #00d4ff;
}

.file-status-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Animation Controls */
.animation-controls {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.animation-controls.show {
    display: block;
}

.control-group {
    margin: 15px 0;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.control-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #333;
    outline: none;
    -webkit-appearance: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #ff00c7);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 212, 255, 0.3);
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #ff00c7);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 212, 255, 0.3);
}

/* Control Value Displays */
.control-group span {
    display: inline-block;
    min-width: 50px;
    text-align: right;
    color: #00d4ff;
    font-weight: 600;
    margin-left: 10px;
}

/* Play/Pause Button */
.play-pause-btn {
    background: linear-gradient(135deg, #00d4ff 0%, #ff00c7 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    margin-top: 15px;
    width: 100%;
}

.play-pause-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 12px;
    background: #333;
    border-radius: 6px;
    margin: 15px 0;
    overflow: visible;
    position: relative;
    cursor: pointer;
    padding: 4px 0;
}

.progress-container.dragging {
    cursor: grabbing;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #ff00c7);
    width: 0%;
    border-radius: 6px;
    pointer-events: none;
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #00d4ff, #ff00c7);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.4);
    transition: all 0.05s ease;
    z-index: 10;
}

.progress-handle:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.6);
}

.progress-handle:active,
.progress-handle.dragging {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 6px 16px rgba(0, 212, 255, 0.8);
    transition: none;
}

/* Drag and Drop Area */
.drag-drop-area {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin: 20px 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.drag-drop-area.dragover {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    transform: scale(1.02);
}

.drag-drop-area p {
    color: #b0b0b0;
    font-size: 1.1rem;
    margin: 0;
}

.drag-drop-area .icon {
    font-size: 3rem;
    color: #666;
    margin-bottom: 15px;
    display: block;
}

/* Canvas Styling */
#canvas {
    max-width: 100%;
    max-height: 100%;
    border-radius: 15px;
    background: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Loading animation improvements */
.loading.show {
    display: block;
}