body {
    font-family: Arial, sans-serif;
    background-color: white;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 20px;
}

.logo {
    max-width: 200px;
    height: auto;
}

.screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    flex: 1;
}

.screen.active {
    display: flex;
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px;
}

button:hover {
    background-color: #0056b3;
}

#camera-instruction {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    max-width: 400px;
    line-height: 1.5;
}

#video {
    width: 100%;
    max-width: 400px;
    border: 1px solid #ccc;
}

#preview img {
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
}

.buttons {
    display: flex;
    gap: 10px;
}

.patient-data p {
    font-size: 18px;
    margin: 10px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 10px;
}

th, td {
    border: 1px solid #ddd;
    padding: 2px;
    text-align: left;
    font-size: 10px;
}

th {
    background-color: #f2f2f2;
}

button.edit {
    background-color: white;
    color: blue;
    border: none;
    padding: 5px;
    cursor: pointer;
    font-size: 16px;
}

button.delete {
    background-color: white;
    color: red;
    border: none;
    padding: 5px;
    cursor: pointer;
    font-size: 16px;
}

progress {
    width: 100%;
    max-width: 400px;
}

form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
}

label {
    margin-top: 10px;
    font-weight: bold;
}

input {
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 300px;
}

.popup-content p {
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 600px) {
    .logo {
        max-width: 150px;
    }
    button {
        font-size: 14px;
        padding: 8px 16px;
    }
}