* { box-sizing: border-box; }
body {
    font-family: -apple-system, "Segoe UI", Roboto, "Noto Sans Bengali", Arial, sans-serif;
    background: #f4f6f8;
    margin: 0;
    color: #1f2937;
}
.topbar {
    background: #1e293b;
    color: #fff;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar h1 { font-size: 18px; margin: 0; font-weight: 600; }
.topbar a { color: #cbd5e1; text-decoration: none; font-size: 14px; }
.topbar a:hover { color: #fff; }

.container { max-width: 1150px; margin: 24px auto; padding: 0 16px; }

.card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filters .field { display: flex; flex-direction: column; gap: 4px; }
.filters label { font-size: 12px; color: #6b7280; }
.filters input, .filters select {
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}
.btn {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.btn:hover { background: #1d4ed8; }
.btn.secondary { background: #64748b; }
.btn.secondary:hover { background: #475569; }

.stats { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.stat-box {
    background: #fff;
    border-radius: 10px;
    padding: 16px 22px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    min-width: 150px;
}
.stat-box .num { font-size: 26px; font-weight: 700; color: #1e293b; }
.stat-box .label { font-size: 13px; color: #6b7280; margin-top: 2px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eef0f2; }
th { background: #f8fafc; color: #475569; font-weight: 600; position: sticky; top: 0; }
tr:hover td { background: #f8fafc; }

.table-wrap { max-height: 65vh; overflow-y: auto; border: 1px solid #eef0f2; border-radius: 8px; }

.tag { padding: 2px 8px; border-radius: 20px; font-size: 12px; }
.tag.in { background: #dcfce7; color: #166534; }
.tag.out { background: #fee2e2; color: #991b1b; }
.tag.late { background: #fef3c7; color: #92400e; }
.tag.off { background: #e5e7eb; color: #4b5563; }

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-box {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    width: 320px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.login-box h2 { margin-top: 0; text-align: center; color: #1e293b; }
.login-box input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}
.login-box .btn { width: 100%; padding: 10px; }
.error-msg { color: #b91c1c; font-size: 13px; margin-bottom: 10px; }
.empty-msg { padding: 30px; text-align: center; color: #9ca3af; }
