/* ==================================================================
   شرح تصميم شاشة الطلاب
   1. students-page: حاوية الصفحة وتحديد اتجاه العرض RTL.
   2. students-header: عنوان الشاشة وأزرار الإجراءات.
   3. students-card: بطاقات المحتوى.
   4. students-grid: توزيع حقول الإدخال على عمودين.
   5. @media: تغيير توزيع الحقول لتناسب الموبايل والتابلت.
   قاعدة مهمة: لا تضع وظائف الحفظ داخل CSS؛ وظيفته الشكل فقط.
   ================================================================== */
/* =========================================================
   شاشة المستفيدين - خط Cairo وهوية غصون المستقبل
   ========================================================= */
.students-page{font-family:'Cairo',Tahoma,sans-serif;direction:rtl;min-height:100vh;background:#f5f8f5;color:#123d32;padding:30px clamp(14px,4vw,48px)}
.students-page *{box-sizing:border-box}
.students-header{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:22px;flex-wrap:wrap}
.students-header h1{font-size:clamp(22px,3vw,31px);font-weight:800;margin:4px 0}
.students-header p,.students-breadcrumb{color:#84978b;font-size:13px;margin:0}
.students-breadcrumb a{color:#267b5b;text-decoration:none}
.students-header-actions,.students-form-actions{display:flex;gap:10px;flex-wrap:wrap}
.students-primary,.students-secondary{border:0;border-radius:11px;padding:12px 19px;font-family:inherit;font-weight:700;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.students-primary{background:#a5cf42;color:#123d32}.students-primary:hover{background:#b5dc53}.students-primary:disabled{opacity:.6;cursor:not-allowed}
.students-secondary{background:#eef4ef;color:#205344;border:1px solid #d6e5da}
.students-card{background:white;border:1px solid #e3ede6;border-radius:18px;padding:clamp(16px,2vw,26px);box-shadow:0 6px 22px #123d3208;margin-bottom:18px}
.students-card-header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:22px;padding-bottom:14px;border-bottom:1px solid #eaf0ea}
.students-card-header h2{font-size:18px;font-weight:800;margin:0}.students-card-header span,.students-muted,.students-security{font-size:12px;color:#7a9184}
.students-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.students-field{display:flex;flex-direction:column;gap:8px}.students-field.full{grid-column:1/-1}
.students-field label{font-size:13px;font-weight:700}.students-field label b{color:#d47e30}
.students-input{width:100%;border:1px solid #d6e4dc;border-radius:10px;padding:12px 13px;outline:0;background:white;color:#183f33;font-family:inherit;font-size:13px;min-height:48px}
.students-input:focus{border-color:#429476;box-shadow:0 0 0 3px #3b9a721c}.students-textarea{min-height:75px;resize:vertical}
.students-readonly{border-radius:10px;background:#f0f5ef;border:1px dashed #d2e2d4;padding:11px 13px;color:#48745c;min-height:48px}
.students-form-actions{margin-top:22px;padding-top:16px;border-top:1px solid #edf1ec;justify-content:flex-end}
.students-validation{color:#b54b35;font-size:12px}.students-alert{padding:13px;border-radius:10px;margin-bottom:15px;font-weight:700;font-size:13px}.students-alert.success{background:#e5f7eb;color:#23613a}.students-alert.error{background:#fff0ec;color:#9b382d;overflow-wrap:anywhere}
.students-filters{display:flex;gap:10px;margin-bottom:18px;flex-wrap:wrap}.students-filters input{flex:1;min-width:160px}.students-filters select{width:auto;min-width:155px}.students-table-scroll{overflow-x:auto}.students-table{width:100%;border-collapse:collapse;min-width:650px;font-size:13px}.students-table th{text-align:right;background:#f1f6f2;color:#5b7767;font-weight:700;padding:13px}.students-table td{padding:13px;border-bottom:1px solid #eef1ee}.students-table tr:hover td{background:#fafcf9}
@media(max-width:650px){.students-page{padding:14px}.students-grid{grid-template-columns:1fr}.students-header-actions{width:100%}.students-header-actions>*{flex:1}.students-filters>*{flex:1}}

/* ==============================================================
   إضافات تصميم شاشة التعديل — شرح للمبتدئين:
   .students-mode: شارة صغيرة توضّح هل نضيف أم نعدّل.
   .students-edit: زر داخل صف الجدول، يختلف عن زر حفظ النموذج.
   @media: يجعل الأزرار مناسبة للشاشات الصغيرة.
   ============================================================== */
.students-mode { display:inline-block; background:#edf6e3; color:#286747; border-radius:30px;
  padding:5px 12px; font-size:11px; font-weight:800; margin-bottom:8px; }
.students-card-header p { margin:7px 0 0; }
.students-form-card { border-color:#b8d6bb; box-shadow:0 8px 28px rgba(18,61,50,.08); }
.students-edit { display:inline-flex; align-items:center; justify-content:center; white-space:nowrap;
  background:#e8f3ec; color:#146348; border:1px solid #c6e1d0; border-radius:9px;
  font:700 12px 'Cairo',Tahoma,sans-serif; padding:7px 13px; cursor:pointer; }
.students-edit:hover { background:#cfe9d7; }
.students-edit:disabled { cursor:wait; opacity:.55; }
.students-table td:last-child { white-space:nowrap; }
@media(max-width:650px) { .students-form-actions button{flex:1} .students-edit{min-height:40px} }
