    :root {
  --primary-color: #d35400;
  --secondary-color: #f39c12;
  --accent-color: #e67e22;
  --light-color: #fef9f3;
  --dark-color: #333;
  --gray-color: #777;
  --light-gray: #f5f5f5;
  --border-color: #eee;
  --error-color: #e74c3c;
  --success-color: #27ae60;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Cairo', sans-serif;
  background: var(--light-gray);
  color: var(--dark-color);
  line-height: 1.6;
  padding: 20px;
}

.container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

img {
  max-width: 100%;
  height: auto;
}

header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
}

header h1 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

header p {
  color: var(--gray-color);
}

.logo {
  width: 120px;
  margin-bottom: 15px;
}

.welcome-message {
  margin-bottom: 20px;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-section {
  background: var(--light-gray);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(211, 84, 0, 0.1);
}

.search-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.search-btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  display: none;
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.orders-table th, 
.orders-table td {
  padding: 12px 15px;
  text-align: right;
  border-bottom: 1px solid var(--border-color);
}

.orders-table th {
  background: var(--light-gray);
  font-weight: 700;
  color: var(--primary-color);
}

.orders-table tr:hover {
  background: #f9f9f9;
}

.no-orders {
  text-align: center;
  padding: 30px;
  display: none;
  animation: fadeIn 0.5s ease;
}

.no-orders i {
  font-size: 3rem;
  color: #ccc;
  margin-bottom: 15px;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  display: none;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top: 4px solid var(--primary-color);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* أنماط الحالات */
.status {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  min-width: 80px;
  text-align: center;
}

.status-new {
  background: rgba(52, 152, 219, 0.1);
  color: #3498db;
  border: 1px solid rgba(52, 152, 219, 0.2);
}

.status-preparing {
  background: rgba(241, 196, 15, 0.1);
  color: #f1c40f;
  border: 1px solid rgba(241, 196, 15, 0.2);
}

.status-ready {
  background: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.2);
}

.status-onway {
  background: rgba(155, 89, 182, 0.1);
  color: #9b59b6;
  border: 1px solid rgba(155, 89, 182, 0.2);
}

.status-delivered {
  background: rgba(39, 174, 96, 0.1);
  color: var(--success-color);
  border: 1px solid rgba(39, 174, 96, 0.2);
}

.status-cancelled {
  background: rgba(231, 76, 60, 0.1);
  color: var(--error-color);
  border: 1px solid rgba(231, 76, 60, 0.2);
}

footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--gray-color);
}

/* الأزرار بالموبايل */
@media (max-width: 600px) {
  .search-btn {
    width: 100%;
    text-align: center;
  }
}

/* الجدول يتحول لكروت بالموبايل */
@media (max-width: 600px) {
  .orders-table, .orders-table thead, .orders-table tbody, 
  .orders-table th, .orders-table td, .orders-table tr {
    display: block;
    width: 100%;
  }

  .orders-table thead {
    display: none;
  }

  .orders-table tr {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }

  .orders-table td {
    text-align: left;
    padding: 8px 10px;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .orders-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--primary-color);
    margin-left: 10px;
  }
  
  .status {
    margin-right: auto;
  }
}

/* تصغير الخطوط للشاشات الصغيرة */
@media (max-width: 480px) {
  body {
    font-size: 14px;
    padding: 10px;
  }
  
  .container {
    padding: 15px;
  }
  
  header h1 {
    font-size: 1.4rem;
  }
  
  header p {
    font-size: 0.9rem;
  }
  
  .search-section {
    padding: 15px;
  }
  
  .form-group input {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  
  .search-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .welcome-message div {
    padding: 12px;
  }
}