/* Global */
:root{
  --bg:#000;
  --panel:#111;
  --border:#333;
  --text:#fff;
  --muted:#aaa;
  --primary:#1d3e70;
  --primary-2:#2954a3;
  --danger:#b3261e;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  font-family: Tahoma, Arial, sans-serif;
  direction: rtl;
  background: var(--bg);
  color: var(--text);
  margin:0;
  display:flex;
  flex-direction:column;
}
main{padding:20px; max-width:860px; margin:0 auto; width:100%}
.muted{color:var(--muted); font-size:14px}

.site-header{
  text-align:center;
  padding:16px 0;
  background:var(--panel);
  border-bottom:1px solid var(--border);
}
.site-header .logo{width:120px; height:auto}
.site-title{font-size:22px; margin:6px 0 0; font-weight:bold}

.site-footer{
  margin-top:auto;
  text-align:center;
  padding:12px;
  font-size:14px;
  color:#ccc;
  border-top:1px solid var(--border);
  background:var(--panel);
}

.card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:12px;
  padding:16px;
  margin-bottom:16px;
  box-shadow:0 6px 20px rgba(0,0,0,.25);
}

input, select{
  width:100%;
  background:#0e0e0e;
  color:var(--text);
  border:1px solid var(--border);
  border-radius:8px;
  padding:10px 12px;
  margin:8px 0 12px;
  outline:none;
}
input::placeholder{color:#777}

button, .upload{
  display:inline-flex; align-items:center; justify-content:center;
  gap:6px;
  background:var(--primary);
  color:#fff;
  border:none;
  border-radius:10px;
  padding:10px 16px;
  cursor:pointer;
  transition:transform .05s ease, background .2s ease;
  text-decoration:none;
}
button:hover, .upload:hover{background:var(--primary-2)}
button:active, .upload:active{transform:translateY(1px)}
button.outline, .outline{background:transparent; border:1px solid var(--border); color:var(--text)}
button.danger{background:var(--danger)}

.pill{border-radius:999px}
.btn-row{display:flex; flex-wrap:wrap; gap:10px; justify-content:center}

.grid2{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px}
@media (max-width:700px){.grid2{grid-template-columns:1fr}}

.table-wrap{overflow:auto}
table{width:100%; border-collapse:collapse}
th,td{border-bottom:1px solid var(--border); padding:10px; text-align:center}
tr:hover td{background:#0a0a0a}
.action-btn{font-size:12px; padding:6px 10px}
