:root { --bg:#f4f6f8; --card:#fff; --text:#1f2937; --muted:#6b7280; --primary:#2563eb; --danger:#dc2626; --ok:#059669; --border:#e5e7eb; }
* { box-sizing: border-box; }
body { margin:0; font-family: Tahoma, Arial, sans-serif; background:var(--bg); color:var(--text); direction:rtl; }
a { color:var(--primary); text-decoration:none; }
.container { max-width:1100px; margin:28px auto; padding:0 14px; }
.card { background:var(--card); border:1px solid var(--border); border-radius:14px; padding:18px; margin-bottom:18px; box-shadow:0 8px 24px rgba(15,23,42,.06); }
h1,h2,h3 { margin-top:0; }
.grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:12px; }
label { display:block; margin:10px 0 6px; color:var(--muted); font-size:13px; }
input, textarea, select { width:100%; border:1px solid var(--border); border-radius:10px; padding:10px 12px; font-family:inherit; font-size:14px; background:#fff; color:var(--text); }
textarea { min-height:86px; resize:vertical; direction:rtl; }
button, .btn { border:0; border-radius:10px; padding:10px 14px; cursor:pointer; display:inline-block; font-family:inherit; font-size:14px; background:var(--primary); color:#fff; }
.btn-danger { background:var(--danger); }
.btn-ok { background:var(--ok); }
.btn-muted { background:#64748b; }
.btn-light { background:#e5e7eb; color:var(--text); }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; min-width:760px; }
th,td { border-bottom:1px solid var(--border); padding:10px; text-align:right; vertical-align:top; }
th { background:#f8fafc; color:#475569; }
.small { color:var(--muted); font-size:12px; }
.notice { padding:12px; border-radius:10px; margin-bottom:14px; }
.notice.ok { background:#ecfdf5; color:#065f46; border:1px solid #a7f3d0; }
.notice.err { background:#fef2f2; color:#991b1b; border:1px solid #fecaca; }
.notice.info { background:#eff6ff; color:#1e40af; border:1px solid #bfdbfe; }
.header { display:flex; justify-content:space-between; gap:12px; align-items:center; flex-wrap:wrap; }
.actions { display:flex; gap:6px; flex-wrap:wrap; }
.badge { padding:4px 8px; border-radius:999px; font-size:12px; display:inline-block; }
.badge.on { color:#065f46; background:#d1fae5; }
.badge.off { color:#991b1b; background:#fee2e2; }
pre { background:#0f172a; color:#e2e8f0; padding:12px; border-radius:10px; overflow:auto; direction:ltr; text-align:left; }
@media(max-width:760px){ .grid { grid-template-columns:1fr; } .container { margin:16px auto; } }
