* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #222;
}

.container {
    width: 95%;
    max-width: 900px;
    margin: 30px auto;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 25px;
}

.camera-wrapper {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: auto;
    overflow: hidden;
    background: #000;
    border-radius: 10px;
}

.camera-wrapper video {
    display: block;
    width: 100%;
    height: auto;
}

.camera-wrapper canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

button,
.controls a {
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    background: #333;
    color: white;
    text-decoration: none;
    font-size: 15px;
}

button:hover,
.controls a:hover {
    opacity: 0.85;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form {
    max-width: 500px;
    margin: 25px auto;
}

.form label {
    display: block;
    margin-bottom: 8px;
}

.form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 7px;
    font-size: 16px;
}

#status {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
    min-height: 24px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

a {
    color: #333;
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
        margin-top: 10px;
    }

    h1 {
        font-size: 22px;
    }
}