/* styles.css */

body {
  font-family: 'Cairo', sans-serif;
  background-color: #f8f3ef; /* بيج دافئ */
  margin: 0;
  padding: 0;
  color: #222;
  direction: rtl;
}

hr {
  border: none;
  border-top: 2px solid #f2c6d3;
  margin: 0;
}

.heroSup {
  background: linear-gradient(to bottom, #f8f3ef, #e7e3de);
  text-align: center;
  padding: 35px 20px 20px;
  border-bottom: 3px solid #b9d6f2;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.heroSup img {
  width: 100px;
  margin-top: 10px;
}

h1.title {
  font-size: 2.5rem;
  color: #1e2a38; /* كحلي */
  margin-bottom: 5px;
  letter-spacing: 1px;
}

form {
  max-width: 420px;
  margin: 40px auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 20px;
  border: 1.5px solid #b9d6f2;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

label {
  font-size: 1.1rem;
  margin-bottom: 6px;
  display: block;
  color: #1e2a38;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1.5px solid #ccc;
  margin-bottom: 18px;
  font-size: 1rem;
  background-color: #f8f3ef;
  transition: border-color 0.3s ease;
}

input:focus {
  border-color: #f2c6d3;
  outline: none;
  background-color: #ffffff;
}

button[type="submit"] {
  width: 100%;
  background-color: #1e2a38; /* كحلي */
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #2a3c53;
}

/* الجوال */
@media (max-width: 500px) {
  .heroSup {
    padding: 25px 15px;
  }

  h1.title {
    font-size: 1.9rem;
  }

  .heroSup img {
    width: 80px;
  }

  form {
    margin: 25px 15px;
    padding: 20px;
  }

  button[type="submit"] {
    font-size: 1rem;
    padding: 12px;
  }

  input[type="text"],
  input[type="password"] {
    padding: 10px;
    font-size: 0.95rem;
  }
}
/* styles.css */

body {
  font-family: 'Cairo', sans-serif;
  background: #f8f3ef;
  color: #222;
  margin: 0;
  padding: 0;
  direction: rtl;
}

.main-header {
  background: #1e2a38;
  padding: 10px 0;
}

.main-header nav {
  display: flex;
  justify-content: space-around;
}

.main-header a {
  color: #f8f3ef;
  text-decoration: none;
  font-size: 1rem;
  padding: 6px 12px;
  transition: background 0.3s;
}

.main-header a:hover {
  background: #2a3c53;
  border-radius: 6px;
}

.container {
  max-width: 480px;
  margin: 30px auto;
  padding: 0 15px;
}

h1 {
  color: #1e2a38;
  margin-bottom: 20px;
}

form label {
  display: block;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

form input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  font-size: 1rem;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  background: #f8f3ef;
  transition: border 0.3s;
}

form input:focus {
  border-color: #b9d6f2;
  outline: none;
  background: #fff;
}

form button {
  width: 100%;
  padding: 12px;
  font-size: 1.05rem;
  background: #1e2a38;
  color: #f8f3ef;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

form button:hover {
  background: #2a3c53;
}

.goals h2 {
  margin-bottom: 10px;
  color: #1e2a38;
}

.goals ul {
  list-style: none;
  padding: 0;
}

.goals li {
  background: #b9d6f2;
  color: #1e2a38;
  margin-bottom: 8px;
  padding: 12px;
  border-radius: 6px;
}
/* تنسيق الهيدر العصري */
.main-header {
  background-color: #1d3557; /* كحلي */
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* قائمة التنقل */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* روابط التنقل */
.nav-links li a {
  text-decoration: none;
  color: #ffffff; /* أبيض */
  background-color: transparent;
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 16px;
  transition: background 0.3s ease, color 0.3s ease;
  border: 2px solid transparent;
}

/* عند تمرير الماوس */
.nav-links li a:hover {
  background-color: #f3e9dc; /* بيج فاتح */
  color: #1d3557; /* كحلي */
  border-color: #ffffff; /* أبيض */
}

/* في الشاشات الصغيرة: ترتيب عمودي */
@media (max-width: 600px) {
  .nav-links {
    flex-direction: column;
    align-items: center;
  }
}
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #f3e9dc;
  color: #1d3557;
}
.main-header {
  background: #1d3557;
  padding: 15px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.nav-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li a {
  color: #ffffff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 25px;
  transition: background .3s, color .3s;
}
.nav-links li a:hover {
  background: #ffffff;
  color: #1d3557;
}

.container {
  padding: 20px;
  max-width: 800px;
  margin: auto;
}
.box {
  background: #ffffff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.box h2 {
  margin-top: 0;
  color: #5a4633;
}
.box input[type="text"],
.box input[type="number"] {
  width: calc(100% - 120px);
  padding: 8px;
  margin: 5px 0;
  border: 1px solid #d2b48c;
  border-radius: 4px;
}
.box button {
  padding: 9px 15px;
  margin-left: 5px;
  border: none;
  background: #1d3557;
  color: #ffffff;
  border-radius: 25px;
  cursor: pointer;
  transition: opacity .3s;
}
.box button:hover {
  opacity: 0.8;
}
.btn-grid {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.btn-grid button {
  flex: 1 0 50px;
  height: 50px;
  background: #f3e9dc;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background .3s, color .3s;
}
.btn-grid button.done {
  background: #5a4633;
  color: #ffffff;
}
.circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #eeeeee;
  color: #003366;
  border: 2px solid #003366;
  margin: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.circle-btn.done {
  background-color: #003366;
  color: white;
}

.btn-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
#chooseJourney {
  background-color: #fdf6ec;
  padding: 20px;
  border-radius: 12px;
  margin: 30px auto;
  max-width: 1200px;
}

#chooseJourney h2 {
  text-align: center;
  color: #1d3557;
  font-family: 'Cairo', sans-serif;
  margin-bottom: 20px;
}

.diet-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.diet-card {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 12px;
  width: 200px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  cursor: pointer;
}

.diet-card:hover {
  transform: translateY(-5px);
}

.diet-card h3 {
  color: #5a4633;
  margin-bottom: 10px;
}

.diet-card p {
  font-size: 14px;
  color: #333;
}

#selectedDietTable {
  margin-top: 30px;
}

.diet-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.diet-table th, .diet-table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
}

.diet-table th {
  background-color: #1d3557;
  color: white;
}

.diet-table tr:nth-child(even) {
  background-color: #f3f3f3;
}
.diet-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.diet-table th, .diet-table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
}

.diet-table th {
  background-color: #1d3557;
  color: white;
}

.diet-table tr:nth-child(even) {
  background-color: #f3f3f3;
}
.diet-section {
  padding: 30px;
  background: #f8f8f8;
  text-align: center;
}

.diet-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.flip-card {
  width: 230px;
  height: 320px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.flip-card-inner.flipped {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 15px;
  box-sizing: border-box;
  border-radius: 12px;
  backface-visibility: hidden;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.flip-card-front h3 {
  font-size: 22px;
  color: #1d3557;
}

.flip-card-back {
  transform: rotateY(180deg);
  background-color: #f1f1f1;
  text-align: right;
}

.flip-card-back h4 {
  margin-top: 10px;
  font-size: 15px;
  color: #444;
}

.flip-card-back p {
  font-size: 14px;
  color: #333;
}

.flip-card-back button {
  margin-top: 12px;
  padding: 8px 14px;
  background-color: #1d3557;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
/* إعدادات عامة */
body {
  font-family: 'Cairo', sans-serif;
  background-color: #f8f3ef; /* بيج ناعم */
  margin: 0;
  padding: 0;
  color: #1e2a38;
  direction: rtl;
}

/* الهيدر */
.main-header {
  background-color: #1e2a38;
  padding: 15px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 999;
}

.main-header nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.main-header nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 25px;
  transition: 0.3s ease;
}

.main-header nav a:hover {
  background-color: #f1dec9;
  color: #1e2a38;
}

/* حاوية الصفحة */
.page-container {
  max-width: 960px;
  margin: 40px auto;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

/* النموذج */
.form-box {
  flex: 1.5;
  background-color: #ffffff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 2px solid #b9d6f2;
}

.form-box h2 {
  margin-bottom: 20px;
  color: #1e2a38;
}

.form-box label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #1e2a38;
}

.form-box input {
  width: 100%;
  padding: 10px;
  margin-bottom: 16px;
  border-radius: 10px;
  border: 1.5px solid #ccc;
  background-color: #fefefe;
  font-size: 1rem;
  transition: 0.3s;
}

.form-box input:focus {
  border-color: #f2c6d3;
  background-color: #ffffff;
  outline: none;
}

/* زر حفظ */
.form-box button {
  background-color: #1e2a38;
  color: white;
  padding: 12px;
  width: 100%;
  font-size: 1.1rem;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.form-box button:hover {
  background-color: #2a3c53;
}

/* بيانات محفوظة */
.saved-data-box {
  flex: 1;
  background-color: #ffffff;
  border: 2px solid #f1dec9;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.saved-data-box h3 {
  color: #1e2a38;
  margin-bottom: 20px;
  font-size: 1.2rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}

.saved-data-box p {
  margin: 12px 0;
  font-size: 15px;
}

/* للجوال */
@media (max-width: 768px) {
  .page-container {
    flex-direction: column;
    padding: 15px;
  }

  .main-header nav {
    flex-direction: column;
    align-items: center;
  }

  .form-box,
  .saved-data-box {
    width: 100%;
  }
}
* تنسيق الهيدر العصري */
.main-header {
  background-color: #1d3557; /* كحلي */
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* قائمة التنقل */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* روابط التنقل */
.nav-links li a {
  text-decoration: none;
  color: #ffffff; /* أبيض */
  background-color: transparent;
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 16px;
  transition: background 0.3s ease, color 0.3s ease;
  border: 2px solid transparent;
}

/* عند تمرير الماوس */
.nav-links li a:hover {
  background-color: #f3e9dc; /* بيج فاتح */
  color: #1d3557; /* كحلي */
  border-color: #ffffff; /* أبيض */
}

/* في الشاشات الصغيرة: ترتيب عمودي */
@media (max-width: 600px) {
  .nav-links {
    flex-direction: column;
    align-items: center;
  }
}
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #f3e9dc;
  color: #1d3557;
}
.main-header {
  background: #1d3557;
  padding: 15px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.nav-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li a {
  color: #ffffff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 25px;
  transition: background .3s, color .3s;
}
.nav-links li a:hover {
  background: #ffffff;
  color: #1d3557;
}

.container {
  padding: 20px;
  max-width: 800px;
  margin: auto;
}
.box {
  background: #ffffff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.box h2 {
  margin-top: 0;
  color: #ffffff;
}
.box input[type="text"],
.box input[type="number"] {
  width: calc(100% - 120px);
  padding: 8px;
  margin: 5px 0;
  border: 1px solid #d2b48c;
  border-radius: 4px;
}
.box button {
  padding: 9px 15px;
  margin-left: 5px;
  border: none;
  background: #1d3557;
  color: #ffffff;
  border-radius: 25px;
  cursor: pointer;
  transition: opacity .3s;
}
body {
  font-family: "Arial", sans-serif;
  background: #f9f9f9;
  color: #333;
  margin: 0;
  padding: 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

button {
  padding: 8px 16px;
  background-color: #004b6b;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

section {
  background: #fff;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

footer {
  margin-top: 40px;
  padding: 20px;
  background-color: #eee;
  text-align: center;
  border-radius: 10px;
}

footer a {
  color: #004b6b;
  text-decoration: none;
  font-weight: bold;
}

.notifications {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  padding: 15px;
  border-radius: 8px;
  margin-top: 30px;
}

.dark {
  background-color: #1e1e1e;
  color: white;
}

.dark section,
.dark footer,
.dark .notifications {
  background-color: #2a2a2a;
  color: white;
}
.social-section {
  background: #fff3e6;
  padding: 20px;
  border-radius: 16px;
  margin: 20px auto;
  max-width: 400px;
  text-align: center;
  font-family: 'Tahoma', sans-serif;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.social-section h2 {
  color: #5a4633;
  margin-bottom: 20px;
  font-size: 20px;
}

.social-card {
  background: white;
  padding: 10px 20px;
  border-radius: 12px;
  margin-bottom: 15px;
  border: 1px solid #e5c9a2;
}

.social-card strong {
  color: #5a4633;
  font-size: 18px;
}

.social-card p {
  color: #444;
  margin: 5px 0 0;
  font-size: 15px;
}
.reminder {
  background: #fff2c5;
  padding: 10px 15px;
  border-radius: 10px;
  margin: 10px auto;
  max-width: 350px;
  color: #5a4633;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  font-family: 'Tahoma', sans-serif;
}
/* إعدادات عامة */
body {
  font-family: 'Cairo', sans-serif;
  background-color: #f8f3ef; /* بيج ناعم */
  margin: 0;
  padding: 0;
  color: #1e2a38;
  direction: rtl;
}

/* الهيدر */
.main-header {
  background-color: #1e2a38;
  padding: 15px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 999;
}

.main-header nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.main-header nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 25px;
  transition: 0.3s ease;
}

.main-header nav a:hover {
  background-color: #f1dec9;
  color: #1e2a38;
}

/* حاوية الصفحة */
.page-container {
  max-width: 960px;
  margin: 40px auto;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

/* النموذج */
.form-box {
  flex: 1.5;
  background-color: #ffffff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 2px solid #b9d6f2;
}

.form-box h2 {
  margin-bottom: 20px;
  color: #1e2a38;
}

.form-box label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #1e2a38;
}

.form-box input {
  width: 100%;
  padding: 10px;
  margin-bottom: 16px;
  border-radius: 10px;
  border: 1.5px solid #ccc;
  background-color: #fefefe;
  font-size: 1rem;
  transition: 0.3s;
}

.form-box input:focus {
  border-color: #f2c6d3;
  background-color: #ffffff;
  outline: none;
}

/* زر حفظ */
.form-box button {
  background-color: #1e2a38;
  color: white;
  padding: 12px;
  width: 100%;
  font-size: 1.1rem;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.form-box button:hover {
  background-color: #2a3c53;
}

/* بيانات محفوظة */
.saved-data-box {
  flex: 1;
  background-color: #ffffff;
  border: 2px solid #f1dec9;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.saved-data-box h3 {
  color: #1e2a38;
  margin-bottom: 20px;
  font-size: 1.2rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}

.saved-data-box p {
  margin: 12px 0;
  font-size: 15px;
}

/* للجوال */
@media (max-width: 768px) {
  .page-container {
    flex-direction: column;
    padding: 15px;
  }

  .main-header nav {
    flex-direction: column;
    align-items: center;
  }

  .form-box,
  .saved-data-box {
    width: 100%;
  }
}
