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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
    color: #333;
}

/* Container */
.container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* Typography */
h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

/* Form styles */
.form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form input {
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form input:focus {
    outline: none;
    border-color: #3498db;
}

.form button {
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form button:hover {
    background-color: #2980b9;
}

.form button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

/* Loading state */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-size: 18px;
    color: #7f8c8d;
}

/* Control sections */
.control-section {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.control-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* Status controls */
.status-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.status-controls button {
    flex: 1;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.status-controls button.start {
    background-color: #27ae60;
    color: white;
    border-color: #27ae60;
}

.status-controls button.start:hover {
    background-color: #219a52;
}

.status-controls button.stop {
    background-color: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.status-controls button.stop:hover {
    background-color: #c0392b;
}

/* Status display */
.status-display {
    padding: 10px;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    text-align: center;
    font-weight: bold;
}

.status-display.started {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.status-display.stopped {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Speed controls */
.speed-control {
    margin-bottom: 15px;
}

.speed-control label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.speed-control input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.speed-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.speed-control input[type="range"]::-webkit-slider-thumb:hover {
    background: #2980b9;
}

.speed-control input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

.speed-control input[type="range"]::-moz-range-thumb:hover {
    background: #2980b9;
}

.speed-value {
    text-align: center;
    font-size: 14px;
    color: #6c757d;
    margin-top: 5px;
}

/* Utility classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-0 {
    margin-top: 0;
}

/* Responsive design */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 15px;
    }
    
    .status-controls {
        flex-direction: column;
    }
}