/* styles.css - تصميم عربي RTL بدرجات الأزرق الداكن */
:root {
  --bg: #0b1a2b;
  --bg-alt: #123054; /* أفتح قليلاً لزيادة التباين */
  --surface: #18365d; /* سطح البطاقات */
  --surface-2: #1d4474; /* شريط علوي وأزرار */
  --card: #18365d; /* توافق للخلف */
  --text: #f2f6fb;
  --text-strong: #ffffff;
  --muted: #b6c2d6;
  --muted-2: #cdd7e6;
  --border: #275a93;
  --primary: #2f6fec;
  --primary-700: #255fd1;
  --danger: #e04f5f;
  --success: #2ecc71;
  --warning: #f1c40f;
}

* { box-sizing: border-box; }
html { direction: rtl; }
body { margin: 0; font-family: 'Tajawal', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); }

.container { width: 100%; max-width: 980px; margin-inline: auto; padding: 16px; }

.login-body { display: grid; place-items: center; min-height: 100vh; }
.login-container { width: 100%; max-width: 420px; }
.app-title { text-align: center; margin-bottom: 16px; color: var(--text); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
label { font-size: 14px; color: var(--muted); }
input[type="text"], input[type="password"], input[type="date"], select {
  width: 100%; padding: 12px; border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt); color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
select { appearance: none; -webkit-appearance: none; -moz-appearance: none; background-image: none; }
input[type="text"]:focus, input[type="password"]:focus, input[type="date"]:focus, select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,111,236,0.25);
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text-strong); cursor: pointer; transition: background .2s ease, box-shadow .2s ease; font-weight: 600; }
.btn:hover { background: #255089; box-shadow: 0 4px 14px rgba(0,0,0,0.25); }
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); }
.btn-primary:hover { background: var(--primary-700); }
.btn.danger { background: var(--danger); }
.btn.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }

.alert { padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; border: 1px solid var(--border); }
.alert-error { background: #3a2030; color: #ffc5cf; border: 1px solid #7a2a3a; }
.alert-success { background: #1e3a29; color: #c5f7d8; border: 1px solid #2f6b47; }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(120%) blur(6px); }
.brand { font-weight: 700; }
.nav { display: flex; gap: 12px; align-items: center; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 10px; border-radius: 8px; background: #21446f; border: 1px solid var(--border); }
.nav a:hover { background: #255089; }
.nav a.danger { background: var(--danger); border-color: transparent; }
.nav-greet { color: var(--muted-2); font-size: 14px; padding: 6px 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 8px; }

.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }

.date-nav { display: flex; align-items: center; gap: 10px; margin: 12px 0; }

.note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 10px; }

/* استجابة للجوال */
@media (max-width: 600px) {
  .nav { gap: 6px; }
  .nav a { padding: 6px 8px; }
  .date-nav { gap: 6px; }
}
