/* ======================================================
   ================== ملف CSS الرئيسي ==================
   ======================================================
   الألوان: الأزرق (#1C2049) والذهبي (#C89D45)
   متوافق مع الهواتف، اللابتوب والشاشات الكبيرة
   يشمل: الهيدر، الكروت، الأزرار، الترحيب، الفوتر
====================================================== */

/* ==================== المتغيرات الأساسية ==================== */
:root {
  --blue: #1C2049;
  --gold: #C89D45;
  --brown: #B89468;
  --bg: #f6f7fb;
  --card: #ffffff;
  --overlay: rgba(28, 32, 73, 0.75);
}

/* ==================== الإعدادات العامة ==================== */
* {
  box-sizing: border-box;
  font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--blue);
  direction: rtl;
  line-height: 1.6;
  animation: fadeIn 1s ease-in;
  display: flex;
  flex-direction: column;
  align-items: center; /* كل شيء مركزي */
}

/* ==================== الحاوية العامة ==================== */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1100px;
  width: 100%;
  margin: 30px auto;
  padding: 20px;
  gap: 16px;
}

/* ==================== الهيدر ==================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--blue), #283063);
  color: #fff;
  width: 100%;
}

.header h1 {
  font-size: 20px;
}

.header .brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ==================== Navbar ==================== */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  margin-bottom: 0;
}

.navbar h1 {
  font-size: 2rem;
  color: var(--gold);
  margin: 0;
  font-weight: 700;
}

/* ===== Responsive Navbar ===== */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center; /* مركزي بدل flex-start */
  }

  .navbar .nav-links {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .navbar .nav-links li a {
    width: auto;
    text-align: center;
  }
}

/* ==================== الأزرار ==================== */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-gold {
  background: linear-gradient(90deg, var(--gold), #e6c88b);
  color: #000;
}

.btn-blue {
  background: var(--blue);
  color: #fff;
}

.btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ===== أزرار نوع البلاغ ===== */
.urgency-toggle {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.urgency-toggle input[type="radio"] {
  display: none;
}

.urgency-toggle label {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: #333;
  border: 2px solid #ccc;
  transition: all 0.3s ease;
}

.urgency-toggle label:hover {
  transform: scale(1.05);
  border-color: #999;
}

#urgent:checked + label.urgent {
  background: linear-gradient(90deg, #ff4d4d, #ff7f7f);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(255, 77, 77, 0.4);
}

#normal:checked + label.normal {
  background: linear-gradient(90deg, #2ecc71, #58d68d);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(46, 204, 113, 0.4);
}

/* ==================== الكروت ==================== */
.card {
  background: var(--card);
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(28,32,73,0.08);
  margin-top: 16px;
  animation: slideUp 0.8s ease;
  width: 100%;
  max-width: 600px;
}

.card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ==================== الفورم ==================== */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
  width: 100%;
  align-items: center;
}

.form-row .col {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* ==================== النصوص ==================== */
label {
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--blue);
}

input[type="text"],
input[type="tel"],
select,
textarea {
  padding: 10px;
  border: 1px solid #e6e7ee;
  border-radius: 8px;
  width: 100%;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

/* ==================== معاينة الصور ==================== */
.image-preview {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-top: 8px;
}

/* ==================== خريطة جوجل ==================== */
.map-embed {
  width: 100%;
  max-width: 600px;
  height: 260px;
  border: 0;
  border-radius: 8px;
  margin: 16px auto;
}

/* ==================== Timeline / المراحل ==================== */
.status-timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f0f2ff;
  color: var(--blue);
  font-weight: 600;
  width: 100%;
  max-width: 300px;
  text-align: center;
}

.step.done {
  background: linear-gradient(90deg, var(--gold), #e6c88b);
  color: #000;
}

/* ==================== الفوتر ==================== */
.footer {
  margin-top: 24px;
  text-align: center;
  color: #777;
  font-size: 14px;
  width: 100%;
}

/* ==================== رابط الادمن ==================== */
.admin-link {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
}


/* ==================== الترحيب / الصفحة الرئيسية ==================== */
.welcome-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Tajawal', sans-serif;
  color: #fff;
  width: 100%;
  flex-direction: column;
  background: url('../images/bg-libya.jpg') center/cover no-repeat;
}

.welcome-page .overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: 1;
}

.welcome-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  animation: fadeIn 1.2s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.logo img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
}

.logo h1 {
  font-size: 1.8rem;
  color: var(--gold);
}

.welcome-content h2 {
  font-size: 1.4rem;
  color: var(--gold);
}

.welcome-content p {
  font-size: 1.05rem;
  color: #f9f9f9;
  text-align: center;
}

/* ==================== تجاوب الهاتف ==================== */
@media (max-width: 600px) {
  .welcome-page {
    background-size: contain;       /* يظهر كامل الصورة */
    background-position: center top; /* يبقى في المنتصف من الأعلى */
    background-repeat: no-repeat;
    min-height: 100vh;
  }

  .logo img {
    width: 55px;
    height: 55px;
  }

  .logo h1 {
    font-size: 1.4rem;
  }

  .welcome-content h2 {
    font-size: 1.1rem;
  }

  .welcome-content p {
    font-size: 0.95rem;
  }
}


/* ==================== Animations ==================== */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes slideUp {
  from {transform: translateY(30px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}


/* ==================== تجاوب الهواتف ==================== */
@media (max-width: 600px) {
  .logo img { width: 55px; height: 55px; }
  .logo h1 { font-size: 1.4rem; }
  .welcome-content h2 { font-size: 1.1rem; }
  .welcome-content p { font-size: 0.95rem; }

  .btn { width: 100%; padding: 14px; }
  .btn-send { width: 100%; font-size: 1rem; padding: 16px 20px; }
  .form-row { flex-direction: column; gap: 12px; }
  input, select, textarea { width: 100%; }
  .status-timeline { flex-direction: column; gap: 8px; }
  .navbar { flex-direction: column; align-items: center; }
  .navbar .nav-links { flex-direction: column; width: 100%; align-items: center; }
  .navbar .nav-links li a { width: auto; text-align: center; }
}











/*   تعديلات اضافيه للمراجعه النهائية   */



/* إزالة الخط السفلي  */
.no-underline {
  text-decoration: none !important; /* إزالة الخط السفلي  */
  display: inline-block;
  padding: 12px 28px;
  border-radius: 10px;
  background-color: var(--blue);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

/*   تعديل لبراقراف اللي تحت الخريطة   */
.location-controls {
  display: flex;
  flex-direction: column; /* ترتيب عمودي */
  gap: 12px;              /* مسافة بين الزر وحقل النص */
  margin-top: 8px;
}

.location-controls input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e6e7ee;
  width: 100%;
}




/* زر اختيار الملفات المخصص */
.custom-file-input {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-file-input input[type="file"] {
  display: none; /* إخفاء الزر الأصلي */
}

.custom-file-input .btn {
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.custom-file-input .btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.custom-file-input .file-name {
  font-size: 0.9rem;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}



/* ============ Custom Select ============ */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select {
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  position: relative;
  padding: 12px 16px;
  transition: all 0.3s ease;
}

.custom-select:hover {
  background: #1a1f4b;
}

.custom-select .selected::after {
  content: "▼";
  float: right;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.custom-select.active .selected::after {
  transform: rotate(-180deg);
}

.custom-select .options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  color: var(--blue);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  z-index: 10;
}

.custom-select.active .options {
  max-height: 300px;
  opacity: 1;
}

.custom-select .options li {
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.custom-select .options li:hover {
  background: var(--gold);
  color: #000;
}




/* توسيط كل النصوص داخل الكارد */
.card {
  text-align: center;
}

/* توسيط نصوص صغيرة */
.card .small {
  text-align: center;
}

/* توسيط العناوين */
.card h1,
.card h2,
.card h3,
.card h4 {
  text-align: center;
}
