body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #89f7fe, #66a6ff);
    color: #000;
}
.container {
    margin: 20px auto;
    background: rgba(255,255,255,0.9);
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border-radius: 10px;
    max-width: 350px;
    width: 100%;
}
/* Form labels */
.container label {
    display: block;
    width: 90%;
    max-width: 320px;
    margin: 12px auto 4px;
    text-align: left;
    font-weight: 600;
}
/* Input fields */
input[type="tel"],
input[type="text"] {
    display: block;
    width: 90%;
    max-width: 320px;
    margin: 0 auto 8px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}
/* Buttons */
button {
    display: inline-block;
    margin: 8px 4px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}
#qrcode {
    margin-top: 20px;
    opacity: 0;
    transition: opacity 0.5s;
}
/* Fade-in on QR generation */
#qrcode.visible {
    opacity: 1;
}
/* Error message style */
.error-message {
    display: none;
    color: red;
    font-size: 0.9rem;
    margin: -5px 0 10px 0;
    text-align: left;
}
/* Button hover */
button:hover {
    background-color: #0056b3;
}
/* Dark mode styles */
body.dark {
    background: linear-gradient(135deg, #232526, #414345);
    color: #e0e0e0;
}
body.dark .container {
    background: rgba(44,44,44,0.9);
    color: #e0e0e0;
    box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}
/* Theme toggle spacing */
#themeToggle {
    margin-top: 10px;
}
/* Footer styling */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    background: rgba(255,255,255,0.9);
    text-align: center;
    font-size: 0.9rem;
    color: #000;
}
/* Dark mode footer */
body.dark .footer {
    background: rgba(44,44,44,0.9);
    color: #e0e0e0;
}
/* Guide section styling */
.guide {
    width: 90%;
    max-width: 350px;
    margin: 20px auto;
    background: rgba(255,255,255,0.8);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: left;
}
.guide h3 {
    margin-top: 0;
    font-size: 1.1rem;
}
.guide ol {
    padding-left: 20px;
}
.guide li {
    margin-bottom: 8px;
}
/* Dark mode guide */
body.dark .guide {
    background: rgba(44,44,44,0.8);
    color: #e0e0e0;
}

/* Header */
.header {
    width: 90%;
    max-width: 350px;
    margin: 20px auto 10px;
    padding: 15px;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    text-align: center;
    border-radius: 8px;
}
.header h1 {
    margin: 0 0 10px;
}
.header button {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 5px;
}

/* Guide Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-content {
    position: relative;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.2rem;
    cursor: pointer;
}
/* Dark mode modal */
body.dark .modal-content {
    background: #2c2c2c;
    color: #e0e0e0;
}
