/* === General Rules === */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  box-sizing: border-box;
  background-color: #f9f9f9;
  color: #333;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* === Sign In Page === */
.signin-page {
  background: linear-gradient(to right, #ff6600, #ff8533);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.login-container {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  max-width: 350px;
  width: 100%;
}

.login-form h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #333;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  font-size: 14px;
}

.login-btn {
  width: 100%;
  padding: 12px;
  background-color: #ff6600;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-btn:hover {
  background-color: #e65c00;
}

.login-footer {
  margin-top: 15px;
  text-align: center;
  font-size: 13px;
  color: #666;
}

.error-message {
  background-color: #ffe5e5;
  color: #cc0000;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
}


/* === tOPUP Rules === */
/* === General Rules === */
/* === General Rules === */
/* === General Rules === */
/* === General Rules === */


.topup-unified-card {
  width: 100%;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 20px 30px;
  font-size: 16px;
  color: #333;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.tools-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.tools-header h2 {
  font-size: 22px;
  margin: 0;
}

.tools-row {
  display: flex;
  gap: 10px;
  align-items: center;
}


.tools-row input {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 200px;
  font-size: 14px;
}

.tools-row button {
  padding: 8px 16px;
  background-color: #ff6600;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.table-wrapper {
  flex: 1;
  overflow-y: auto;
  margin-top: 15px;
}

#ordersTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  font-size: 15px;
}

#ordersTable thead {
  background-color: #f9fafb;
  color: #555;
  font-weight: bold;
}

.table-wrapper-scroll {
  max-height: 400px; /* ⬅️ اضبط الارتفاع حسب الحاجة */
  overflow-y: auto;
  overflow-x: auto;
  position: relative;
  border-radius: 10px;
}

/* ✅ تثبيت رؤوس الجدول */
#ordersTable thead th {
  position: sticky;
  top: 0;
  background-color: #f9fafb;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#ordersTable th {
  padding: 14px;
  text-align: left;
  border-bottom: 2px solid #ddd;
}

#ordersTable td {
  background-color: #fff;
  padding: 14px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

#ordersTable tbody tr:hover td {
  background-color: #fdf4eb;
  transition: 0.2s ease-in-out;
  cursor: default;
}

#ordersTable td:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

#ordersTable td:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

#ordersTable th:first-child {
  border-top-left-radius: 8px;
}

#ordersTable th:last-child {
  border-top-right-radius: 8px;
}
.table-action-btn {
  background: none;
  border: none;
  color: #ff6600;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s ease;
}

.table-action-btn:hover {
  color: #ff3300;
}

#pagination {
  margin-top: 25px;
  padding-bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

#pagination button {
  padding: 6px 10px;
  border: none;
  background: #eee;
  border-radius: 6px;
  cursor: pointer;
  min-width: 40px;
  font-size: 14px;
  transition: 0.2s ease;
}

#pagination button:hover {
  background-color: #ff9900;
  color: #fff;
}

#pagination button.active {
  background-color: #ff6600;
  color: white;
  font-weight: bold;
}
#pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* === صفحة الأزرار السفلية === */
#pagination {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

#pagination button {
  padding: 5px 10px;
  border-radius: 4px;
  background-color: #ddd;
  color: #333;
}

#pagination button.active {
  background-color: #ff6a00;
  color: white;
}

#pagination button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: white;
  text-align: center;
}

.status-badge.success {
  background-color: #28a745;
}

.status-badge.danger {
  background-color: #dc3545;
}

.status-badge.warning {
  background-color: #ffc107;
  color: #212529;
}

/* === جدول العملاء === */
.table-wrapper-scroll {
  overflow-x: auto;
  max-height: 500px;
  margin-top: 15px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* === توحيد ستايل الجدولين === */
#ordersTable,
#summaryTable,
#customerOrdersTable {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

#ordersTable th,
#ordersTable td,
#summaryTable th,
#summaryTable td,
#customerOrdersTable th,
#customerOrdersTable td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  text-align: center;
  font-size: 14px;
}

#ordersTable th,
#summaryTable th,
#customerOrdersTable th {
  background-color: #f8f8f8;
  font-weight: bold;
  color: #333;
}

#ordersTable tbody tr:hover,
#summaryTable tbody tr:hover,
#customerOrdersTable tbody tr:hover {
  background-color: #f1f1f1;
}

/* === أزرار الجدول === */
button {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background-color: #ff6a00;
  color: white;
  font-size: 13px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background-color: #e65c00;
}

/* === شريط البحث والتصدير === */
.tools-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.tools-row input[type="text"] {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}
