body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f7fa;
  padding: 20px;
  direction: rtl;
  color: #333;
  min-height: 100vh;
  margin: 0;
  transition: background-color 0.3s ease;
}

h2 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 20px;
  font-weight: 700;
  transition: color 0.3s ease;
}

#adminPass {
  padding: 12px 15px;
  width: 320px;
  font-size: 16px;
  border: 2px solid #2980b9;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  display: block;
  margin: 0 auto 15px auto;
  box-sizing: border-box;
}

#adminPass:focus {
  border-color: #3498db;
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
}

button {
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.15s ease, box-shadow 0.3s ease;
  margin: 0 5px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
  user-select: none;
}

button:active {
  transform: scale(0.96);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

#btnAdminLogin {
  background-color: #2980b9;
  display: block;
  margin: 0 auto 30px auto;
  width: 150px;
  text-align: center;
}

#btnAdminLogin:hover {
  background-color: #2471a3;
  box-shadow: 0 5px 15px rgba(36, 113, 163, 0.6);
}

#btnLogout {
  background-color: #e67e22;
  display: block;
  margin: 20px auto 0 auto;
  width: 120px;
}

#btnLogout:hover {
  background-color: #d35400;
  box-shadow: 0 5px 15px rgba(211, 84, 0, 0.6);
}

.btn-delete {
  background-color: #c0392b;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-delete:hover {
  background-color: #992d22;
  box-shadow: 0 5px 15px rgba(153, 45, 34, 0.6);
}

.btn-complete {
  background-color: #27ae60;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-complete:hover:not([disabled]) {
  background-color: #219150;
  box-shadow: 0 5px 15px rgba(33, 145, 80, 0.6);
}

.btn-complete[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

/* الجدول */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-radius: 8px;
  overflow: hidden;
  table-layout: fixed;
  word-wrap: break-word;
  transition: box-shadow 0.3s ease;
}

table:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

th, td {
  padding: 12px 10px;
  border: 1px solid #ddd;
  text-align: center;
  font-size: 14px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

th {
  background-color: #2980b9;
  color: white;
  font-weight: 700;
  user-select: none;
}

tbody tr:hover {
  background-color: #f1f9ff;
  transition: background-color 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 15px 10px;
  }
  #adminPass {
    width: 100%;
  }
  button {
    width: 100%;
    margin: 8px 0;
  }
  table, thead, tbody, th, td, tr {
    display: block;
  }
  thead tr {
    display: none;
  }
  tbody tr {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  }
  tbody td {
    text-align: right;
    padding-left: 50%;
    position: relative;
    border: none;
    border-bottom: 1px solid #eee;
  }
  tbody td:last-child {
    border-bottom: none;
  }
  tbody td::before {
    position: absolute;
    top: 12px;
    right: 10px;
    width: 45%;
    white-space: nowrap;
    font-weight: 700;
    color: #2980b9;
  }
  /* labels for mobile view */
  tbody td:nth-of-type(1)::before { content: "البريد الإلكتروني"; }
  tbody td:nth-of-type(2)::before { content: "الخدمة"; }
  tbody td:nth-of-type(3)::before { content: "المنتج"; }
  tbody td:nth-of-type(4)::before { content: "الرابط / الحساب"; }
  tbody td:nth-of-type(5)::before { content: "الكمية"; }
  tbody td:nth-of-type(6)::before { content: "السعر"; }
  tbody td:nth-of-type(7)::before { content: "الحالة"; }
  tbody td:nth-of-type(8)::before { content: "الوقت"; }
  tbody td:nth-of-type(9)::before { content: "حالة الطلب"; }
  tbody td:nth-of-type(10)::before { content: "إجراءات"; }
}