body {
    font-family: 'Sarabun', Arial, sans-serif;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
}
h2 {
    color: #007bff;
}
table {
    background: #fff;
    border-collapse: collapse;
    margin-bottom: 20px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
table th, table td {
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    text-align: left;
}
table th {
    background: #007bff;
    color: #fff;
}
a {
    color: #007bff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
form label {
    margin-right: 8px;
}
form select, form input[type="text"], form input[type="password"] {
    padding: 4px 8px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
}
button:hover {
    background: #0056b3;
}
p {
    margin: 8px 0;
}

/* เพิ่มสไตล์เฉพาะสำหรับแสดงขั้นตอนการสแกน */
.scan-steps {
    margin: 20px 0;
}
.step {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 12px;
    border-radius: 5px;
    background-color: #f8f9fa;
    border-left: 5px solid #6c757d;
    transition: all 0.3s ease;
}
.step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #6c757d;
    color: white;
    font-weight: bold;
    margin-right: 15px;
    transition: all 0.3s ease;
}
.step-content {
    flex: 1;
}
.step-title {
    font-weight: bold;
    margin-bottom: 2px;
}
.format-info {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}
.step.active {
    background-color: #e8f4ff;
    border-left-color: #007bff;
}
.step.active .step-number {
    background-color: #007bff;
}
.step.completed {
    background-color: #e8f8e8;
    border-left-color: #28a745;
}
.step.completed .step-number {
    background-color: #28a745;
}
.input-invalid {
    border-color: #dc3545 !important;
    background-color: #fff8f8 !important;
    animation: shake 0.5s linear;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}
