:root {
  --gold-primary: #FFD700;
  --gold-secondary: #FFC72C;
    --primary-color: #2C3E50;
  --dark-gray: #2C3E50;
  --medium-gray: #34495E;
  --light-gray: #ECF0F1;
  --black: #1A1A1A;
}

body.admin-panel {
  background-color: var(--light-gray);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
   
  
}

.logo-bg {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.3;
  width: 600px;
  pointer-events: none; /* عشان ما تمنع الضغط على العناصر فوقها */
  z-index: -1; /* ترجعها ورا */
}




.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* شريط العنوان */
.admin-header {
  background: linear-gradient(135deg, var(--dark-gray), var(--black));
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-logo {
  height: 80px;
  filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

/* أزرار */
.btn-gold {
  background-color: var(--gold-primary);
  color: var(--black);
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-gold:hover {
  background-color: var(--gold-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-outline-gold {
  border: 2px solid var(--gold-primary);
  color: var(--gold-primary);
  background: transparent;
}

.btn-outline-gold:hover {
  background-color: var(--gold-primary);
  color: var(--black);
}

/* جدول الشركات */
.admin-table {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.admin-table thead {
  background: linear-gradient(135deg, var(--dark-gray), var(--medium-gray));
  color: white;
}

.admin-table th {
  font-weight: 500;
  padding: 1rem;
}

.admin-table td {
  padding: 1rem;
  vertical-align: middle;
}

.admin-table tr:nth-child(even) {
  background-color: rgba(236, 240, 241, 0.5);
}

/* حقل البحث */
.search-box {
  position: relative;
  margin-bottom: 2rem;
}

.search-box {
  display: flex;
  flex-direction: row-reverse; /* يعكس الترتيب: الزر يمين والبحث يسار */
  width: 100%; /* يمد العرض حسب الحاجة */
}

.search-box input {
  flex-grow: 1; /* يخلي الحقل يتمدد ويأخذ أكبر مساحة ممكنة */
  padding: 1rem 1.5rem;
  border: 2px solid var(--medium-gray);
  font-size: 1rem;
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.search-box button {
  padding: 0 1.5rem;
  border: 2px solid var(--gold-secondary);
  border-top-left-radius: 50px;
  border-bottom-left-radius: 50px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}


/* رسالة عدم وجود بيانات */
.no-data {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  color: var(--medium-gray);
}

.btn-outline-primary-dark {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
    text-decoration: none;
  background: transparent;
}

.btn-outline-primary-dark:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-outline-danger-soft {
  border: 2px solid #dc3545; 
  color: #dc3545;
  background: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline-danger-soft:hover {
  background-color: #dc3545;
  color: #fff;
}