/* --- خطوط وتنسيقات أساسية --- */
body {
  font-family: "Cairo", sans-serif;
  background-color: #f4f7f6;
  margin: 0;
  direction: rtl;
}

/* --- تنسيقات صفحة الدخول --- */
.date-container {
  text-align: center;
  color: #555;
  font-size: 0.9rem;
  margin-top: 20px;
}
.date-container span {
  display: inline-block;
  margin: 0 10px;
}

.login-container {
  max-width: 400px;
  margin: 20px auto 20px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logo-wrapper {
  text-align: center;
  margin-bottom: 20px;
}
.logo-wrapper img {
  max-width: 120px;
  height: auto;
}

.login-container h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #005673;
}

.login-container .form-group {
  margin-bottom: 20px;
}
.login-container .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}
.login-container .form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
.login-container button {
  width: 100%;
  padding: 12px;
  background-color: #005673;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.2s;
  font-family: "Cairo", sans-serif;
}

.login-container button:hover {
  background-color: #004055;
}

.login-footer {
  text-align: center;
  margin-top: 20px;
  padding-bottom: 20px;
  color: #888;
  font-size: 0.9rem;
}

/* --- تنسيقات لوحة التحكم (صفحة index.html) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.service-card i {
  font-size: 3rem;
  color: #005673;
}

.service-card h3 {
  margin-top: 15px;
  font-size: 1.2rem;
}

/* --- تنسيق رابط الطالب في الجدول (صفحة behavior_log.html) --- */
.student-link {
  text-decoration: none;
  color: #0d6efd; /* Bootstrap primary blue */
  font-weight: bold;
}
.student-link:hover {
  text-decoration: underline;
  color: #0a58ca;
}