/* تنسيقات لوحة التحكم */
.dashboard-container {
  display: flex;
  min-height: calc(100vh - 140px);
  margin: 30px 0;
  gap: 20px;
}

.sidebar {
  width: 250px;
  background: var(--tiger-dark);
  color: white;
  padding: 20px 0;
  border-radius: 15px;
  flex-shrink: 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.sidebar li:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar li.active {
  background: var(--tiger-orange);
}

.sidebar a {
  color: white;
  text-decoration: none;
  display: block;
}

.dashboard-content {
  flex: 1;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.dashboard-section {
  display: none;
}

.dashboard-section.active {
  display: block;
}

/* بطاقات الإحصائيات */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid #eee;
}

.stat-number {
  font-size: 24px;
  font-weight: bold;
  color: var(--tiger-orange);
  margin: 10px 0 0;
}

/* عناصر النشاط */
.activity-list {
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid #eee;
}

.activity-item {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.activity-time {
  color: #666;
  font-size: 14px;
}

/* تنسيقات الجداول */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #eee;
}

th, td {
  padding: 12px 15px;
  text-align: right;
  border-bottom: 1px solid #eee;
}

th {
  background: var(--tiger-dark);
  color: white;
  font-weight: bold;
}

/* شريط التقدم */
.progress-bar {
  width: 100%;
  height: 20px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  margin: 10px 0;
}

.progress {
  height: 100%;
  background: var(--tiger-orange);
  border-radius: 10px;
  transition: width 0.3s ease;
}

/* أزرار صغيرة */
.btn.small {
  padding: 8px 15px;
  font-size: 14px;
  width: auto;
  display: inline-block;
  margin: 0 5px;
}

/* رأس الصفحة في لوحة التحكم */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-welcome {
  color: white;
  font-weight: bold;
}

.logout-btn {
  background: transparent;
  color: white;
  border: 1px solid white;
  padding: 5px 15px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* قوائم الشحنات */
.shipments-list, .deliveries-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.shipment-item, .delivery-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 1px solid #eee;
}

.shipment-info, .delivery-info {
  flex: 1;
}

.shipment-actions, .delivery-actions {
  display: flex;
  gap: 10px;
}

/* نموذج الملف الشخصي */
.profile-form {
  max-width: 500px;
}

/* responsive design للوحة التحكم */
@media (max-width: 968px) {
  .dashboard-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    order: 2;
  }
  
  .dashboard-content {
    order: 1;
  }
  
  .stats-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .stats-cards {
    grid-template-columns: 1fr;
  }
  
  .shipment-item, .delivery-item {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .shipment-actions, .delivery-actions {
    justify-content: center;
  }
}