* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f7f9fc;
    padding: 20px;
}

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

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

h2, h3 {
    margin: 10px 0;
    color: #444;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 10px 20px;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #666;
    transition: all 0.2s;
}

.tab-btn.active {
    color: #4285f4;
    border-bottom: 3px solid #4285f4;
}

.tab-content {
    padding: 10px 0;
}

.hidden {
    display: none;
}

.video-container {
    position: relative;
    margin: 20px auto;
    max-width: 640px;
    height: 480px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

video, canvas {
    position: absolute;
    top: 0;
    left: 0;
}

/* Mirror effect for camera feed */
.mirror {
    transform: scaleX(-1);
}

.instruction-container {
    background-color: #f1f8ff;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.progress-container {
    width: 100%;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: #4285f4;
    transition: width 0.3s;
}

.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

button {
    padding: 10px 20px;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #3367d6;
}

button:disabled {
    background-color: #b7b7b7;
    cursor: not-allowed;
}

.captures h3 {
    margin-top: 20px;
    text-align: center;
}

.capture-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.capture-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.capture-item img {
    width: 100%;
    display: block;
}

.capture-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    font-size: 12px;
    text-align: center;
}

.result-container {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    background-color: #f7f7f7;
}

#verification-result {
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
}

.success {
    background-color: #d4edda;
    color: #155724;
}

.failure {
    background-color: #f8d7da;
    color: #721c24;
}