* { box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f2f4f7;
    margin: 0;
    color: #1f2937;
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('background.webp') center center / cover no-repeat;
    opacity: 0.16;
    z-index: -1;
    pointer-events: none;
}
.topbar {
    background: #7a1f2b;
    color: #fff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.topbar h1 {
    font-size: 17px;
    margin: 0;
    font-weight: 600;
}
.topbar a { color: #fff; text-decoration: none; font-size: 14px; }
.topbar a:hover { text-decoration: underline; }
.wrap {
    max-width: 960px;
    margin: 30px auto;
    padding: 0 16px;
}
.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    padding: 24px;
    margin-bottom: 20px;
}
.card h2 {
    margin-top: 0;
    font-size: 19px;
    border-bottom: 2px solid #7a1f2b;
    padding-bottom: 8px;
    color: #7a1f2b;
}
.auth-box {
    max-width: 420px;
    margin: 60px auto;
}
label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin: 14px 0 6px;
}
input[type=text], input[type=tel], input[type=email], input[type=number],
input[type=date], input[type=time], input[type=password], textarea, select {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #cbd2d9;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}
textarea { resize: vertical; min-height: 70px; }
.btn {
    display: inline-block;
    background: #7a1f2b;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 16px;
}
.btn:hover { background: #611722; }
.btn-secondary { background: #6b7280; }
.btn-secondary:hover { background: #4b5563; }
.btn-danger { background: #b91c1c; }
.btn-danger:hover { background: #7f1d1d; }
.btn-small { padding: 6px 12px; font-size: 13px; margin-top: 0; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > div { flex: 1; min-width: 200px; }
.msg { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.msg-success { background: #dcfce7; color: #166534; }
.msg-error { background: #fee2e2; color: #991b1b; }
.msg-info { background: #dbeafe; color: #1e40af; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid #e5e7eb; font-size: 14px; }
th { background: #f9fafb; font-size: 12px; text-transform: uppercase; color: #6b7280; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-forwarded { background: #dbeafe; color: #1e40af; }
.badge-allotted { background: #dcfce7; color: #166534; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.helper { font-size: 12px; color: #6b7280; margin-top: 4px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 10px 0; border-left: 2px solid #e5e7eb; padding-left: 16px; position: relative; margin-left: 6px; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: #7a1f2b; }
.timeline .meta { font-size: 12px; color: #6b7280; }
.empty-state { text-align: center; padding: 40px 0; color: #6b7280; }
.otp-boxes { display: flex; gap: 8px; }
.otp-boxes input { text-align: center; letter-spacing: 4px; font-size: 18px; }
@media print {
    .no-print { display: none !important; }
    body { background: #fff; }
    body::before { display: none; }
    .card { box-shadow: none; }
}
