/* dashboard.css */

/* إعدادات أساسية */
body {
  font-family: 'Arial', sans-serif;
  background-color: #f4f6f9;
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.6;
}

h1 {
  text-align: center;
  color: #34495e;
  margin-top: 20px;
}

/* حاوية المحتوى */
div {
  max-width: 900px;
  margin: 20px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* الحقل النصي */
input[type="text"] {
  width: calc(100% - 110px);
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

input[type="text"]:focus {
  border-color: #007bff;
  outline: none;
}

/* زر الإضافة */
button {
  padding: 12px 20px;
  margin-top: 10px;
  background-color: #007bff;
  color: white;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

button:active {
  background-color: #003f7f;
  transform: translateY(0);
}

/* الجدول */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

thead {
  background-color: #007bff;
  color: white;
}

th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #ddd;
}

th {
  font-weight: bold;
}

tr:hover {
  background-color: #f1f1f1;
}

td button {
  background-color: #e74c3c;
  border: none;
  padding: 8px 12px;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

td button:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
}

td button:active {
  background-color: #a93226;
  transform: translateY(0);
}

/* رسائل الخطأ والتنبيهات */
.alert {
  padding: 10px;
  margin: 10px 0;
  border-radius: 6px;
  font-weight: bold;
}

.alert-error {
  background-color: #e74c3c;
  color: white;
}

.alert-success {
  background-color: #2ecc71;
  color: white;
}

/* ملاءمة للهواتف */
@media (max-width: 600px) {
  input[type="text"],
  button {
    width: 100%;
    margin-bottom: 10px;
  }

  table {
    font-size: 14px;
  }
}
