* {
    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;
    padding: 20px;
    color: #333;
    position: relative;
}

/* Stop Time Widget */
.stop-time-widget {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 150px;
    text-align: center;
    transition: all 0.3s ease;
}

.stop-time-label {
    font-size: 0.85em;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stop-time-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
    font-family: 'Courier New', monospace;
}

.stop-time-widget.blinking {
    animation: blink 1s infinite;
    background: #ff6b6b;
}

.stop-time-widget.blinking .stop-time-label {
    color: white;
}

.stop-time-widget.blinking .stop-time-value {
    color: white;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
}

header h1 {
    font-size: 2.5em;
    color: #667eea;
    margin-bottom: 10px;
}

.section {
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8em;
}

/* Stop Time Controls Styles */
.stop-time-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.stop-time-controls label {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.minutes-input {
    width: 150px;
    padding: 12px 20px;
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    color: #667eea;
    font-family: 'Courier New', monospace;
    transition: border-color 0.3s;
}

.minutes-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.minutes-input:disabled {
    background: #f0f0f0;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Upload Styles */
.upload-container {
    text-align: center;
}

.file-info {
    margin-top: 15px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    color: #333;
    font-size: 0.9em;
}

.upload-progress {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 25px;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 12px;
}

#progress-text {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9em;
}

/* Content Display Styles */
.content-display {
    background: white;
    padding: 25px;
    border-radius: 10px;
    line-height: 1.8;
    font-size: 1.1em;
    color: #333;
    max-height: 600px;
    overflow-y: auto;
    border: 2px solid #e0e0e0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Button Styles */
.btn {
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(108, 117, 125, 0.4);
}

.btn-stop {
    background: #dc3545;
    color: white;
}

.btn-stop:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .stop-time-controls {
        gap: 15px;
    }
    
    .minutes-input {
        width: 100%;
        max-width: 200px;
    }
    
    .btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .content-display {
        max-height: 400px;
        font-size: 1em;
    }
    
    .stop-time-widget {
        top: 10px;
        right: 10px;
        padding: 10px 15px;
        min-width: 120px;
    }
    
    .stop-time-value {
        font-size: 1.2em;
    }
}
