/* ========================
   Search Section (كما هو)
   ======================== */
.mc-search-section {
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  position: relative;
}

.mc-search-section h3 {
  font-size: 20px;
  color: #005B9F;
  margin-bottom: 20px;
  position: relative;
}

.mc-search-section h3:after {
  content: '';
  width: 50px;
  height: 2px;
  background: #005B9F;
  display: block;
  margin: 8px auto 0;
}

.mc-search-box {
  display: flex;
  border: 1px solid #005B9F;
  border-radius: 30px;
  overflow: hidden;
  height: 45px;
  margin: 0 auto;
  width: 100%;
}

.mc-search-box button {
  background: #005B9F;
  color: #fff;
  border: none;
  padding: 0 20px;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
}

.mc-search-box input {
  flex: 1;
  border: none;
  padding: 0 15px;
  font-size: 16px;
  outline: none;
}

.mc-results-container {
  margin-top: 20px;
  position: relative;
  min-height: 100px;
}

.mc-overlay {
  display: none;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.7);
  justify-content: center;
  align-items: center;
}

.mc-overlay.active {
  display: flex;
}

.mc-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0,0,0,0.1);
  border-top: 4px solid #005B9F;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.mc-no {
  color: #d00;
  font-weight: bold;
}

/* ========================
   Results Cards
   ======================== */
.mc-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* البطاقة */
.mc-card {
  display: flex;
  align-items: flex-start;         /* محاذاة المحتوى من الأعلى */
  justify-content: space-between;
  gap: 20px;                        /* تباعد أفقي بين القسمين */
  max-width: 800px;
  width: 100%;
  border-radius: 12px;
  padding: 20px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;                 /* منع خروج الخلفية */
}

/* طبقة الخلفية بنقشة وشفافية */
.mc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #0d4f82;
  background-image: url('../images/pattern3.png');
  background-repeat: repeat;
  background-size: 85px auto;
  border-radius: inherit;
  transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
  z-index: 0;
}

/* محتوى البطاقة فوق الخلفية */
.mc-card > * {
  position: relative;
  z-index: 1;
}

/* ضبط عرض العمود الأيمن (الصورة) */
.mc-card-right {
  flex: 0 0 180px;   /* عرض ثابت للعمود الأيمن */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ضبط العمود الأيسر (النصوص) */
.mc-card-left {
  flex: 1;
}


/* الفاصل العمودي */
.mc-card::after {
  content: '';
  position: absolute;
  top: 20px; bottom: 20px;
  right: 220px;
  width: 1px;
  background: rgba(255,255,255,0.3);
}

/* القسم الأيمن (الصورة + الاسم + الحالة) */
.mc-card-right {
  width: 180px;
  text-align: center;
  flex-shrink: 0;
}

/* الصورة دائرية تماماً */
.mc-card-avatar {
  width: 120px;
  height: 120px !important;
  border-radius: 50% !important;
  object-fit: cover;
  border: 3px solid #fff;
  margin: 0 auto 10px;
  background: #fff;
  display: block;
}

/* اسم العضو باللون الأبيض */
.mc-card-right h3 {
  margin: 0;
  font-size: 18px;
  color: #ffffff !important;
  line-height: 1.2;
}

/* حالة العضو أسفل الاسم */
.mc-card-right .mc-status {
  margin: 6px 0 0;
  font-size: 14px;
  color: #ffffff !important;
  position: relative;
}


/* القسم الأيسر (بيانات العضو) */
.mc-card-left {
  flex: 1;
  text-align: right;
  padding-right: 50px;
  box-sizing: border-box;
}

.mc-card-left p {
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.4;
  color: white;
}
#mc-search-results > div.mc-results > div > div.mc-card-right > p > strong {
    color: white;
}
#mc-search-results > div.mc-results > div > div.mc-card-right > p {
    color: white;
}

.mc-card-left p strong {
  font-weight: 600;
  display: inline-block;
  margin-right: 5px;
  color: white;
}

.mc-card-left p:last-of-type {
  margin-bottom: 0;
}
.mc-status {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}
.mc-status--active    { background-color: #28a745; } /* أخضر */
.mc-status--inactive  { background-color: #dc3545; } /* أحمر */
.mc-status--suspended { background-color: #fd7e14; } /* برتقالي */
.mc-status--cancelled { background-color: #343a40; } /* رمادي غامق */


/* حافظ على خط الموقع */
.mc-search-section,
.mc-card {
  font-family: inherit;
}
