/* الخط العام وتنسيقات الأساس */
body {
  font-family: 'Tajawal', sans-serif;
  margin: 0;
  padding: 0;
  direction: rtl;
  background: #f7f7f7;
  color: #333;
}

/* ✅ صفحة تسجيل الدخول */
.login-container {
  background: white;
  padding: 30px 25px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  margin: 60px auto;
}

.login-form {
  display: flex;
  flex-direction: column;
}

.login-form h2 {
  margin-bottom: 20px;
  text-align: center;
}

.login-form input,
.login-form button {
  padding: 10px;
  margin-bottom: 15px;
  font-size: 16px;
  border-radius: 6px;
}

.login-form input {
  border: 1px solid #ddd;
}

.login-form button {
  background: #2c7ae7;
  color: white;
  border: none;
  cursor: pointer;
}

.login-form button:hover {
  background: #245fc3;
}

/* ✅ لوحة تحكم الأدمن */
.admin-container {
  display: flex;
  min-height: 100vh;
}

/* ✅ السايد بار */
.sidebar {
  width: 240px;
  background: #2c3e50;
  color: white;
  padding: 25px 20px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
}

.sidebar h2 {
  margin: 0 0 20px;
  font-size: 22px;
  text-align: right;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.sidebar ul li {
  margin: 12px 0;
}

.sidebar ul li a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.2s;
}

.sidebar ul li a:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ✅ منطقة المحتوى */
.dashboard {
  flex: 1;
  padding: 30px;
  background: #f7f7f7;
  overflow-x: auto;
}

.dashboard h1 {
  font-size: 24px;
  margin-bottom: 25px;
}

/* ✅ الكروت */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  font-size: 16px;
  text-align: center;
}

/* ✅ عناصر عامة */
.btn {
  
  background: #2ecc71;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.btn:hover {
  background: #245fc3;
}


.table-container {
  overflow-x: auto;
  margin-top: 20px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.data-table th, .data-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  text-align: center;
  font-size: 14px;
}

.data-table th {
  background: #f1f1f1;
  font-weight: bold;
}

.form-inline {
  background: #fff;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.form-group {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.form-group input,
.form-group button {
  padding: 8px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.product-form {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  max-width: 800px;
  margin-top: 20px;
}

.product-form .form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.product-form label {
  font-weight: bold;
  margin-bottom: 5px;
}

.product-form input,
.product-form textarea {
  padding: 10px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.data-table select,
.data-table textarea {
  width: 100%;
  font-size: 13px;
  padding: 6px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

textarea {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.stat-box {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  text-align: center;
  font-family: 'Tajawal', sans-serif;
}
.stat-box h3 {
  margin: 0;
  font-size: 28px;
  color: #2c7ae7;
}
.stat-box p {
  margin: 10px 0 0;
  font-size: 16px;
  color: #444;
}

a.logout {
    background-color: #e74d3c46;
}