body { font-family: 'Segoe UI', Arial, sans-serif; background: #f9faff; margin: 0; }
.topbar { display:flex; justify-content:space-between; align-items:center; background:#522990; color:#fff; padding:10px 24px; font-size:15px; }
.topbar a { color:#fff; margin-left:16px; text-decoration:none; font-weight:600; }
.topbar a:hover { text-decoration:underline; }
.main-container { width: 90%; max-width:1500px; margin: 30px auto; background: #fff; padding:2em 3em; border-radius:16px; box-shadow: 0 6px 32px rgba(132, 56, 255, 0.07);}
.login-box { max-width:460px; margin-top:100px; }
.center { text-align:center; }
h2 { color: #9333EA; letter-spacing: 1px; }
h3 { color:#522990; margin-top:34px; }
.hint, .muted { color:#888; }
.tabs { margin-bottom: 20px;}
.tab-btn { font-size:18px; color:#333; border:none; outline:none; background:#e4dafe; border-radius:4px 4px 0 0; margin-right:4px; padding:10px 26px; cursor:pointer; }
.tab-btn.active { background:#9333EA; color:#fff; font-weight:bold; }
.tab-btn:hover:not(.active) { background:#c0aadf; }
.table-wrap { overflow-x:auto; }
table { border-collapse:collapse; width:100%; font-size:17px; margin-bottom:16px; }
th, td { border:1px solid #eaeaea; padding:10px 7px; text-align:left; }
th { background:#f1edfa; color:#522990; }
tr.expired { background:#ffeaea; }
tr.soon { background:#fff7e6; }
tr:hover { background:#fae9ff; }
.btn { margin:0 4px; padding:6px 16px; border:none; border-radius:4px; background:#9333EA; color:#fff; font-weight:500; cursor:pointer; font-size:15px; }
.btn-lg { padding:10px 26px; }
.btn-edit { background:#f59e42; }
.btn-delete { background:#e63636; }
.btn-add { background:#38b6ff; }
.btn:active { opacity:.8; }
.modal-bg { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(68,32,150,.18); z-index:12; }
.modal { display:none; position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); background:#fff; padding:34px 32px; box-shadow:0 4px 24px rgba(97,30,180,.21); border-radius:8px; z-index:15; min-width:320px; max-height:90vh; overflow:auto; }
.form-row { margin-bottom:18px; }
.form-row label { display:block; font-weight:600; color:#6117c2; margin-bottom:6px; }
.form-row input { width:100%; box-sizing:border-box; padding:9px 8px; font-size:17px; border:1px solid #d7ccfa; border-radius:4px; }
input:focus, select:focus { outline:2px solid #ae9dfb; }
.form-actions { text-align:right; }
.err-msg { color:#d8001f; margin-bottom:15px; font-weight:500; }
.ok-msg { color:#0a7a33; background:#e8f8ee; padding:10px 14px; border-radius:6px; margin-bottom:15px; font-weight:500; }
.inline-form { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.inline-form input, .inline-form select { padding:8px; font-size:15px; border:1px solid #d7ccfa; border-radius:4px; }
.inline-form.tight .btn { margin:0; }
td.actions form { display:flex; }
@media (max-width:600px) { .main-container { padding:1em; } table { font-size:14px; } }
