/* General */
body,
html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f9f9f9;
    color: #333;
    height: 100%;
}

.page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    text-align: center;
}

.header {
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.logo {
    width: 60px;
    margin-bottom: 10px;
}

.logo-tengah {
    width: 120px;
    margin-bottom: 10px;
}

.app-title {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: #007bff;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.subtitle {
    margin-bottom: 20px;
    color: #555;
    font-size: 14px;
    max-width: 260px;
}

.btn-primary {
    background: #007bff;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

.btn-primary:hover {
    background: #0056b3;
}

.footer {
    padding: 10px;
    font-size: 12px;
    color: #888;
}

/* Scanner Page */
.scanner-title {
    font-size: 18px;
    margin: 0;
    color: #333;
}

.scanner-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.camera-box {
    position: relative;
    width: 90%;
    max-width: 400px;
    aspect-ratio: 1/1;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

#video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scan-frame {
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    border: 2px solid red;
    border-radius: 6px;
    box-sizing: border-box;
}

.btn-secondary {
    display: inline-block;
    margin: 10px auto;
    padding: 10px 16px;
    background: #f1f1f1;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
}

.camera-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}
.typing-input {
    width: 90%;
    max-width: 420px;
    padding: 14px 18px;
    font-size: 1.3rem;
    border: 2px solid #ccc;
    border-radius: 12px;
    outline: none;
    font-weight: 600;
    text-align: center;
    background: #fff;
    transition: 0.25s ease;
}

.typing-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 6px rgba(0, 123, 255, .45);
}

.typing-input::placeholder {
    color: #999;
    font-weight: 400;
    opacity: .7;
}