* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.instructions {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.instructions ol {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 10px;
}

.camera-container {
    position: relative;
    width: 640px;
    height: 480px;
    margin: 0 auto 20px;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

#video, #canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#canvas {
    pointer-events: none;
}

.actions {
    text-align: center;
    margin-bottom: 30px;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    margin: 0 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.status {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.status ul {
    list-style-type: none;
}

.status li {
    padding: 10px;
    margin: 5px 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.status li.completed {
    background-color: #d4edda;
    color: #155724;
}

.status li.pending {
    background-color: #f8f9fa;
    color: #6c757d;
}

.status li.current {
    background-color: #cce7ff;
    color: #004085;
    font-weight: bold;
}

.result {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#capturedImage {
    max-width: 100%;
    border-radius: 4px;
    margin: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .camera-container {
        width: 100%;
        height: auto;
    }
    
    #video, #canvas {
        position: relative;
        width: 100%;
        height: auto;
    }
    
    .container {
        padding: 10px;
    }
}