/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Import Section */
.import-section {
    margin-bottom: 30px;
}

.drop-zone {
    border: 3px dashed rgba(255,255,255,0.5);
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.drop-content {
    color: white;
}

.drop-content svg {
    margin-bottom: 20px;
    opacity: 0.8;
}

.drop-content p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.file-button {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.file-button:hover {
    background: #45a049;
}

/* Player Section */
.player-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.video-container {
    position: relative;
    margin-bottom: 20px;
}

#videoPlayer {
    width: 100%;
    max-height: 60vh;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Timeline */
.timeline-container {
    margin: 20px 0;
}

.timeline {
    position: relative;
    margin-bottom: 10px;
}

.timeline-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #ddd;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.timeline-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.timeline-markers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    pointer-events: none;
}

.start-marker,
.end-marker {
    position: absolute;
    top: -6px;
    width: 4px;
    height: 20px;
    background: #4CAF50;
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.end-marker {
    background: #f44336;
}

.start-marker.visible,
.end-marker.visible {
    opacity: 1;
}

.time-display {
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: #666;
}

/* Controls */
.controls-section {
    margin-top: 30px;
}

.time-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 600;
    color: #555;
}

.input-group input {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
}

.input-group button {
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.input-group button:hover {
    background: #5a6fd8;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.cut-button,
.reset-button {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cut-button {
    background: #4CAF50;
    color: white;
}

.cut-button:hover:not(:disabled) {
    background: #45a049;
    transform: translateY(-2px);
}

.cut-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.reset-button {
    background: #f44336;
    color: white;
}

.reset-button:hover {
    background: #da190b;
    transform: translateY(-2px);
}

/* Progress Section */
.progress-section {
    margin-top: 30px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

#progressText {
    font-size: 1.1rem;
    color: #666;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .time-inputs {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cut-button,
    .reset-button {
        width: 100%;
        max-width: 300px;
    }
}