* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 30px;
    max-width: 900px;
    width: 100%;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    font-weight: bold;
    color: white;
    transition: all 0.3s ease;
}

.step.active {
    background: #4CAF50;
}

.step.completed {
    background: #2196F3;
}

.step-content {
    display: none;
    text-align: center;
}

.step-content.active {
    display: block;
}

.video-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

#video-feed {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 100%;
    height: auto;
    display: block;
}

.face-overlay {
    position: absolute;
    border: 3px solid #4CAF50;
    border-radius: 10px;
    background: rgba(76, 175, 80, 0.1);
    display: none;
    pointer-events: none;
    box-sizing: border-box;
}

.guidance-text {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.6;
}

.guidance-text h3 {
    color: #333;
    margin-bottom: 10px;
}

.guidance-text .angle-instruction {
    color: #666;
    font-weight: 500;
}

.status-message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.status-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 18px;
}

input[type="text"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 18px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: #2196F3;
}

button {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 10px;
}

.start-btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
}

.capture-btn {
    background: linear-gradient(45deg, #2196F3, #1976D2);
    color: white;
}

.next-btn {
    background: linear-gradient(45deg, #9C27B0, #7B1FA2);
    color: white;
}

.back-btn {
    background: linear-gradient(45deg, #FF9800, #F57C00);
    color: white;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.captured-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.captured-image {
    text-align: center;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: #f8f9fa;
}

.captured-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.captured-image h4 {
    color: #333;
    margin-bottom: 5px;
}

.captured-image .status {
    font-size: 14px;
    font-weight: 600;
}

.captured-image .status.success {
    color: #4CAF50;
}

.captured-image .status.pending {
    color: #FF9800;
}

.navigation {
    text-align: center;
    margin-top: 30px;
}

.navigation a {
    color: #2196F3;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid #2196F3;
    transition: all 0.3s ease;
    display: inline-block;
}

.navigation a:hover {
    background: #2196F3;
    color: white;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    margin: 20px 0;
    overflow: hidden;
}

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

