body {
    background: #f8f5ee;
    font-family: 'Inter', 'Sarabun', 'Noto Sans Thai', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.header {
    background: none;
    color: #222;
    padding: 2rem 0 1rem 0;
    text-align: center;
    font-weight: 700;
    font-size: 2.5rem;
}

@media (max-width: 600px) {
    .header {
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 2px 12px rgba(44,62,80,0.08);
        margin: 1rem;
        padding: 0.7rem 0.5rem;
        font-size: 1rem;
        max-width: 98vw;
    }
    .header h1 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
        word-break: break-word;
        line-height: 1.2;
        max-width: 95vw;
    }
    .header p {
        font-size: 0.85rem;
        line-height: 1.2;
        max-width: 95vw;
    }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-box {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(44,62,80,0.08);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: box-shadow 0.2s;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
}

.dashboard-box:hover {
    box-shadow: 0 8px 32px rgba(44,62,80,0.16);
}

.dashboard-box .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.toggle-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.06);
    padding: 1rem 2rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem auto;
    width: fit-content;
}

.toggle-container label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #222;
}

.toggle-container input[type="radio"] {
    accent-color: #3498db;
    margin-right: 0.5rem;
}

.stats-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.stats {
    background: #f4f4f4;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #222;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(44,62,80,0.06);
}

.stats.currently-in {
    background: #d4f7df;
    color: #27ae60;
}

.stats.total-attended {
    background: #ececec;
    color: #888;
}

.btn, button.btn {
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin: 0.5rem 0;
    transition: background 0.2s;
}

.btn:hover, button.btn:hover {
    background: #217dbb;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    .toggle-container {
        flex-direction: column;
        gap: 1rem;
    }
}

.scanner-container {
    max-width: 500px;
    margin: 2rem auto;
    background: #f8f5ee;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(44,62,80,0.08);
    padding: 2rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 600px) {
    .scanner-container {
        max-width: 98vw;
        margin: 1rem auto;
        padding: 1rem 0.5rem;
        border-radius: 14px;
    }
    .batch-list, .status-box {
        max-width: 100%;
        padding: 0.7rem 0.5rem;
        font-size: 0.98rem;
    }
    #qr-reader {
        max-width: 100vw !important;
        min-width: 0 !important;
    }
    form, input, select, button {
        font-size: 1rem;
    }
}

.batch-list, .status-box {
    background: #fffaf3;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.06);
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    width: 100%;
    max-width: 400px;
}

#batch-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

#batch-list li {
    background: #f8f5ee;
    border-radius: 12px;
    margin: 0.3rem 0;
    padding: 0.5rem 1rem;
    box-shadow: 0 1px 4px rgba(44,62,80,0.04);
    text-align: center;
}

form, input, select, button {
    border-radius: 12px !important;
}

input, select {
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    margin: 0.3rem 0;
    background: #fffaf3;
}

button, .btn {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.06);
} 