
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    background: #f3f4f6;
    color: #111827;
    direction: rtl;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 24px; }
.nav {
    background: #0f172a;
    color: white;
    padding: 14px 24px;
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}
.nav .brand { font-weight: 900; margin-left: 20px; }
.nav a { padding: 9px 12px; border-radius: 10px; }
.nav a:hover { background: rgba(255,255,255,.12); }
.card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
    margin-bottom: 18px;
}
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: #fff; border: 1px solid #e5e7eb; border-radius: 18px; padding: 18px; }
.stat .num { font-size: 28px; font-weight: 900; color: #0f172a; }
label { display: block; margin-bottom: 6px; font-weight: 700; color: #374151; }
input, select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: white;
    font-family: inherit;
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: #2563eb;
    color: white;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 800;
}
.btn.secondary { background: #475569; }
.btn.danger { background: #dc2626; }
.btn.success { background: #16a34a; }
table { width: 100%; border-collapse: collapse; background: white; border-radius: 16px; overflow: hidden; }
th, td { padding: 12px; border-bottom: 1px solid #e5e7eb; text-align: right; }
th { background: #1f2937; color: white; }
.flash { padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; font-weight: 700; }
.flash.success { background: #dcfce7; color: #166534; }
.flash.error { background: #fee2e2; color: #991b1b; }
.login-box { max-width: 420px; margin: 80px auto; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 800px) {
    .grid, .form-grid { grid-template-columns: 1fr; }
}
