:root {
  --primary: #043E52;
  --primary-hover: #06566c;
  --upload-btn: #007070;
  --upload-btn-hover: #00b3b3;
}

/* Enforce #F1F5F9 as the background color for all pages */
html, body {
  background-color: #F1F5F9 !important;
}
:root {
  --primary: #043E52;
  --primary-hover: #06566c;
  --upload-btn: #007070;
  --upload-btn-hover: #00b3b3;
}

/* ستايل الأزرار الموحد */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
  min-width: 150px;    /* <<< هذا يوحد حجم الأزرار */
  transition: background 0.2s, color 0.2s, border 0.2s;
}

/* الأزرار الأساسية (Primary) */
.btn-primary,
.bg-primary,
.bg-accent {
  background-color: var(--primary);
  color: #fff;
  border: none;
}
.btn-primary:hover,
.bg-primary:hover,
.bg-accent:hover,
.btn-primary:focus,
.bg-primary:focus,
.bg-accent:focus {
  background-color: var(--primary-hover);
}

/* زر ثانوي - زر Cancel & Back */
.btn-secondary {
  background-color: #e5e7eb;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  box-shadow: none;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #f1f5f9;
  color: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: none;
}

/* زر الرفع (Upload) */
.btn-upload {
  background-color: var(--upload-btn);
  color: #fff;
  border: none;
}
.btn-upload:hover,
.btn-upload:focus {
  background-color: var(--upload-btn-hover);
}

/* دعم للأزرار بالأيقونات */
.btn svg {
  width: 1.25em;
  height: 1.25em;
  display: block;
}

/* ================================ */

body {
  font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
  background-color: #F1F5F9;
}

/* باقي الستايلات كما هي */
.file-upload-zone {
  border: 2px dashed #cdd9e3;
  transition: all 0.2s ease;
}
.file-upload-zone:hover {
  border-color: #00b3b3;
  background-color: rgba(0, 150, 136, 0.05);
}

.file-status-card {
  display: flex;
  align-items: center;
  border: 1px solid #e4e8f0;
  border-radius: 10px;
  background: #fff;
  padding: 0.75rem 1.1rem;
  margin-bottom: 0.7rem;
  transition: border 0.17s;
  min-height: 56px;
  box-shadow: none !important;
  position: relative;
}

.file-status-card.success {
  border-color: #C5ECD4;
  background: #F3FCF7;
}
.file-status-card.error {
  border-color: #FFDEE2;
  background: #FFF7F8;
}
.file-status-card.pending {
  border-color: #b8e1ff;
  background: #f6fbff;
}

.file-status-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}
.file-status-icon.success {
  background: #38B25D;
  color: #fff;
}
.file-status-icon.error {
  background: #FC3E3E;
  color: #fff;
}
.file-status-icon.pending {
  background: #0284C7;
  color: #fff;
}

.file-status-label {
  font-size: 1.08rem;
  font-weight: 500;
  color: #222c3a;
  margin-right: 0.3rem;
  flex: 1;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* زر الإغلاق */
.close-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: none;
  color: #3d4352;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.15s;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}
.close-btn:hover {
  background: #E7E9EC;
  color: #FC3E3E;
}

/* رسالة الخطأ */
.file-status-error-msg {
  color: #FC3E3E;
  font-size: 0.95rem;
  margin-top: 5px;
  margin-right: 3.2rem;
}

/* Progress bar (اختياري لحالة pending) */
.progress-bar {
  background-color: #e5e7eb;
  border-radius: 9999px;
  height: 0.375rem;
  margin-top: 0.375rem;
}
.progress-bar-fill {
  background-color: #60a5fa;
  border-radius: 9999px;
  height: 0.375rem;
  transition: width 0.2s ease;
}

@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .file-upload-zone {
    padding: 1.5rem;
  }
  .file-status-label { font-size: 1rem; }
}

/* ---------- الفوتر والكروت --------------- */

.footer-main {
  width: 100%;
  background: #075267;
  color: #fff;
  font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
  margin-top: 0;
  padding-bottom: 0;
  margin-top: 40px;
}

.footer-sections {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 85px;
  padding: 52px 80px 0 80px;
  margin-bottom: 100px;
}

.footer-section {
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.footer-section h4 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 11px;
  position: relative;
}
.footer-divider {
  height: 1px;
  width: 100%;
  background: #e0f2f7;
  border-radius: 2px;
  margin-bottom: 10px;
}
.footer-section a {
  color: #fff;
  text-decoration: none;
  font-size: 1.13rem;
  opacity: 0.93;
  margin-bottom: 4px;
  transition: opacity 0.18s;
}
.footer-section a:hover {
  opacity: 1;
  text-decoration: underline;
}
.social-links, .accessibility-links {
  display: flex;
  gap: 16px;
  align-items: center;
}
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #16586C;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 1.3rem;
  color: #fff;
  border: 1px solid #ffffffcd;
  height: 38px; width: 38px;
  transition: background 0.2s;
}
.icon-link:hover {
  background: #21708e;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 80px 32px 80px;
  margin-top: 28px;
}
.footer-bottom-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 330px;
}
.footer-links-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.footer-links-bottom a {
  color: #fff;
  font-size: 1.13rem;
  text-decoration: underline;
  opacity: 0.93;
}
.footer-bottom-text {
  font-size: 1.09rem;
  line-height: 1.55;
  margin-bottom: 5px;
  margin-left: 0;
  flex: 1;
  min-width: 220px;
  max-width: 440px;
}
.footer-bottom-text strong {
  display: block;
  font-size: 1.17rem;
  margin-bottom: 6px;
}
.footer-bottom-logos {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 250px;
  justify-content: flex-end;
  margin-bottom: 4px;
}
.footer-bottom-logos img {
  height: 41px;
  background: transparent;
}
@media (max-width: 1100px) {
  .footer-sections, .footer-bottom {
    padding-left: 18px;
    padding-right: 18px;
  }
  .footer-sections {
    gap: 20px;
  }
}
@media (max-width: 800px) {
  .footer-sections {
    flex-direction: column;
    gap: 18px;
    padding: 22px 6px 0 6px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 0 10px 16px 10px;
  }
  .footer-bottom-logos {
    margin-top: 14px;
  }
}
