* {
  font-family: sans-serif, "Poppins";
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== register ===== */

/* صندوق الواجهة (index + register) */

body.index-page,
body.register-page {
  background: linear-gradient(135deg, #2d4a53, #0d1f23);
  color: #afb3b7;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.auth-layout {
  width: min(900px, calc(100% - 24px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.logo {
  position: absolute;
  width: 190px;
  top: 10px;
  left: 20px;
  z-index: -1;
}

.logo .log1 {
  width: 200px;
  height: auto;
}

/* الحاوية المشتركة للفورم */

.container {
  background: rgba(19, 46, 53, 0.3);
  padding: 40px;
  border-radius: 20px;
  width: 350px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.container h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #afb3b7;
}

.input-box {
  margin: 18px 0;
}

.input-box label {
  display: block;
  color: #ffffff;
  margin-bottom: 6px;
  font-size: 16px;
}

.input-box input[type="text"],
.input-box input[type="password"],
.input-box input[type="email"] {
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  color: #000;
  font-weight: 700;
  font-size: 15px;
}

.input-box input:focus {
  outline: 2px solid #69818d;
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -6px 0 10px;
  color: #d6e4e8;
  font-size: 14px;
  cursor: pointer;
}

.remember-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #00b7d3;
}

.gender {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-weight: bold;
  accent-color: #28a745;
}

.gender input {
  width: 16px;
  height: 16px;
}

/* رسائل الأخطاء */

.error,
#error-message {
  text-align: center;
  display: none;
  background-color: #ffe4e4;
  border: 1px solid #ffe4e4;
  color: #b30000;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 14px;
}

/* زرار تسجيل الحساب و تسجيل الدخول */

.primary-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background-color: #f1f1f1;
  color: #000;
  cursor: pointer;
  font-weight: 700;
  transition: 0.25s;
  margin-top: 8px;
}

.primary-btn:hover {
  background-color: #2d4a53;
  color: #00ffff;
}

.secondary-btn {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: transparent;
  color: #e7f2f6;
  cursor: pointer;
  font-weight: 700;
  transition: 0.25s;
  margin-top: 8px;
}

.secondary-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #00ffff;
}

.ms {
  padding-top: 8px;
  display: flex;
  justify-content: center;
}

/* روابط التحويل بين الصفحات */

.switch {
  text-align: center;
  color: rgba(255, 255, 255, 0.687);
}

.switch p {
  color: #ffffff;
  margin-top: 15px;
}

.switch a {
  color: #2dc471;
  text-decoration: none;
}

.switch a:hover {
  text-decoration: underline;
  color: #fff;
}

.sup img {
  width: 50px;
  position: fixed;
  top: 0;
  right: 0;
  margin: 10px 8px 0 0;
  cursor: pointer;
}

/* ===== index ===== */

/* overlay خلف القائمة */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 40;
}

.legal-links {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #d6e4e8;
  z-index: 50;
  background: rgba(19, 46, 53, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 14px;
}

.legal-links a {
  color: #d6e4e8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-links a:hover {
  color: #00ffff;
}

@media (max-width: 900px) {
  .auth-layout {
    flex-direction: column-reverse;
    gap: 14px;
  }

  .legal-links {
    font-size: 12px;
    padding: 7px 10px;
    width: calc(100% - 24px);
  }
}

/* ===== home ===== */

body.home-page {
  background: #ffffff;
  min-height: 100vh;
  padding-top: 10px;
  padding-bottom: 40px;
}

.back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(img/brack.png);
  background-size: cover;
  background-position: center;
  border-radius: 30px;
  z-index: -1;
}


/* header layout */

.site-header {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: clamp(230px, 34vw, 320px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  position: relative;
  z-index: 30;
}

/* navbar (burger above links)  */

.navbar {
  display: flex;
  flex-direction: column;
  padding: 10px 25px;
  position: fixed;
  top: 0;
  right: 20px;
  z-index: 999;
}

.contactt {
  background: none;
  border: 0;
  font-size: 17px;
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  font-size: 17px;
  color: #0d1f23;
  font-weight: bold;
  transition: color 0.3s ease;
}

/* زرار البورجر */

.burger-container {
  justify-content: flex-end;
  margin-bottom: 5px;
}

.burger {
  width: 35px;
  height: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 12px 10px 0 0;
}

.burger .bar {
  width: 100%;
  height: 3px;
  background: #0d1f23;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* تأثير فتح الزرار */

.burger.open .bar1 {
  transform: translateY(10px) rotate(-45deg);
}

.burger.open .bar2 {
  opacity: 0;
}

.burger.open .bar3 {
  transform: translateY(-10px) rotate(45deg);
}

/* الروابط */

.list-navhishan {
  display: flex;
  flex-direction: column;
  justify-content: center;
  list-style: none;
  margin-top: 20px;
  padding: 15px 8px;
  position: absolute;
  bottom: 0;
}

.car {
  position: absolute;
  top: 25px;
  right: 80px;
  width: 35px;
  height: 35px;
}

.nav_profile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin-top: 50px;
  margin-bottom: auto;
}

.profile {
  padding-right: 5px;
  width: 35px;
  height: 35px;
}

.nav_profile li {
  padding: 15px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

.guest-auth-link {
  margin-inline-start: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(13, 31, 35, 0.18);
  font-size: 12px;
  color: #0d1f23;
  background: rgba(45, 196, 113, 0.12);
  text-decoration: none;
  line-height: 1.2;
  transition: background 0.2s ease, color 0.2s ease;
}

.guest-auth-link:hover {
  background: rgba(45, 196, 113, 0.2);
  color: #1a6f3a;
}

.hidden {
  display: none !important;
}

.nav_profile a {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 17px;
  color: #0d1f23;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav_profile li a:hover,
.contactt:hover {
  background: rgba(45, 196, 113, 0.08);
  color: #2dc471;
  transform: none;
  transition: color 0.18s ease;
}

.list-navhishan li a,
p {
  text-decoration: none;
  color: #0d1f23;
  font-weight: bold;
  transition: color 0.3s ease;
}

.list-navhishan li a:hover {
  background: rgba(45, 196, 113, 0.08);
  color: #2dc471;
  transform: translateX(-4px);
  transition: transform 0.18s ease;
}

/* Dropdown inside side menu */

.dropdown {
  position: relative;
}

.dropdown-materials {
  display: none;
  flex-direction: column;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 5px 0;
  margin-top: 5px;
  list-style: none;
  position: relative;
  width: 100%;
  left: 0;
  right: 0;
}

.dropdown-materials li a {
  display: block;
  padding: 8px 15px;
  font-size: 15px;
  color: #0d1f23;
}

.dropdown-materials li a:hover {
  background: rgba(45, 196, 113, 0.08);
  color: #2dc471;
}

.hic {
  padding: 20px 0 0 20px;
}

.hic li {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

.hic li a {
  text-decoration: initial;
  color: #0d1f23;
  font-size: 16.5px;
  font-weight: bold;
  transition: color 0.3s ease;
}

.hic li a:hover {
  background: rgba(45, 196, 113, 0.08);
  color: #2dc471;
  transform: none;
  transition: color 0.18s ease;
}

/* عند الضغط تظهر القائمة */
.dropdown.active .dropdown-materials {
  display: flex;
}

/* القائمة الجانبية */

.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 95vh;
  width: 320px;
  max-width: 85%;
  background: #fff;
  transform: translateX(110%);
  transition: transform 0.38s cubic-bezier(0.22, 0.9, 0.35, 1);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 45;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

/* عند الفتح */
.side-menu.open {
  transform: translateX(0%);
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* محتوى القائمة */
.side-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 10px;
}

.close-btn {
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

/* محتوى الصفحة الرئيسي */

.home-main {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
}

.cards {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 16px;
  margin-top: 24px;
}

.containerr ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: min(1200px, 100%);
  justify-content: center;
}

.containerr li {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  width: 100%;
  min-height: 165px;
  height: auto;
  transition: 0.3s ease;
}

.containerr li a {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 15px;
  box-sizing: border-box;
  text-decoration: none;
  color: #181818;
  font-weight: bold;
  font-family: Arial, sans-serif;
  position: relative;
}

.containerr li:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(61, 173, 55, 0.714);
}

.icon-wrapper {
  width: 72px;
  height: 72px;
  position: relative;
  border-right: 2px solid #000;
  padding-right: 10px;
  margin-right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.containerr img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.containerr li a span {
  font-size: 18px;
  color: #0f0f0f;
  font-weight: bold;
  text-align: right;
  line-height: 1.5;
  flex-grow: 1;
  word-break: break-word;
}

.new-dot {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e32222;
  box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(227, 34, 34, 0.7);
}

.hidden {
  display: none !important;
}

.folder {
  position: relative;
}

.folder img {
  position: absolute;
  top: 50%;
  left: 50%;
  transition: opacity 0.4 ease;
  transform: 0.4s ease;
}

.folder .closed {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.folder .open {
  opacity: 0;
  transform: translate(-50%, calc(-50% + 10px));
}

.folder:hover .closed {
  opacity: 0;
  transform: translate(-50%, calc(-50% - 10px));
}

.folder:hover .open {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* style profile */

/* .vip {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background-color: yellow;
  width: 30px;
  height: 30px;
  cursor: pointer;
} */

/* .vip-gold {
  background: linear-gradient(45deg, gold, orange);
  color: #000;
  font-weight: bold;
} */

.profile-container {
  max-width: 1000px;
  margin: 60px auto;
  padding: 20px;
  text-align: center;
  background: #f9f9f9;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.profile-image img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #008080;
}

.profile-info {
  margin-top: 125px;
  text-align: right;
}

.profile-info p {
  font-size: 17px;
  margin: 8px 0;
  font-weight: bold;
}

#uploadImage {
  align-items: center;
  display: flex;
  margin: 10px auto;
}

.upload-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  background: #007b7b;
  color: white;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  transition: 0.3s;
  font-weight: bold;
}

.upload-btn:hover {
  background: #009c9c;
  transform: scale(1.05);
}

.profile-schedule {
  margin-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 18px;
  text-align: center;
}

.profile-schedule h4 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #0d1f23;
}

.profile-schedule img {
  width: 100%;
  max-width: 900px;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
}

.schedule-empty {
  margin-top: 12px;
  color: #4d5a60;
  font-size: 15px;
}

/* style profile upload */

.image-container {
  position: relative;
  display: inline-block;
}

#userImage {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #008080;
  transition: 0.3s;
}

.remove-btn {
  position: absolute;
  top: -8px;
  left: -8px;
  background: #ff3b3b;
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  text-align: center;
  line-height: 22px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  display: none;
  /* 👈 في البداية مخفي */
  transition: 0.2s;
}

.remove-btn:hover {
  background: #e00000;
  transform: scale(1.1);
}

.upload-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  background: #007b7b;
  color: white;
  border-radius: 20px;
  cursor: pointer;
  font-size: 15px;
  transition: 0.3s;
  font-weight: bold;
}

.upload-btn:hover {
  background: #009c9c;
  transform: scale(1.05);
}

/* .vip-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.vip-box {
  background: #fff;
  width: 90%;
  max-width: 420px;
  padding: 20px;
  border-radius: 15px;
  position: relative;
  animation: fadeIn 0.3s ease;
}

.close-vip {
  position: absolute;
  top: 10px;
  left: 15px;
  cursor: pointer;
  font-size: 18px;
}

.vip-features {
  text-align: right;
  margin: 15px 0;
}

.vip-features li {
  margin: 6px 0;
  font-size: 15px;
}

.vip-box input,
.vip-box button {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
}

.vip-box button {
  background: #008080;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.vip-box button:hover {
  border-radius: 20px;
  background: #009c9c;
  transform: scale(1.05);
}

.vip-msg {
  margin-top: 10px;
  text-align: center;
  font-weight: bold;
} */

@keyframes fadeIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* responsive design (media queries) */

/* For tablets  */

@media (max-width: 992px) {
  .container {
    width: 90%;
    padding: 28px;
  }

  .list-navhishan li {
    font-size: 18px;
    margin: 15px 0;
  }

  .logo img {
    width: 160px;
  }

  .side-menu {
    width: 300px;
  }

  .containerr ul {
    margin-bottom: 50px;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Responsive Design */

@media (max-width: 768px) {
  .navbar {
    padding: 10px 15px;
  }

  .list-navhishan {
    gap: 15px;
    font-size: 14px;
  }

  .burger {
    width: 30px;
    height: 24px;
  }

  .cards {
    margin-top: 20px;
  }

  .containerr ul {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1024px) {
  .navbar {
    padding: 0;
    margin: 15px 10px 0 0;
  }

  .list-navhishan li {
    font-size: 18px;
    margin: 15px 0;
  }

  .burger {
    width: 30px;
    height: 24px;
  }
}

/* For mobile phones */

@media (max-width: 360px) {
  /* جعل الفورم مركز وملائم للموبايل */

  .container {
    width: calc(100% - 32px);
    padding: 18px;
    margin: 0 16px;
    border-radius: 14px;
  }

  .container h2 {
    font-size: 1.4rem;
  }

  .input-box input[type="text"],
  .input-box input[type="password"],
  .input-box input[type="email"] {
    font-size: 14px;
    padding: 10px;
  }

  .logo {
    width: 120px;
    left: 8px;
    top: 8px;
  }

  .logo img {
    width: 140px;
  }

  .burger {
    width: 44px;
    height: 40px;
  }

  .side-menu {
    width: 86%;
  }

  .home-main {
    margin: 18px;
    padding: 12px;
  }

  nav .list-navhishan li a {
    font-size: 15px;
  }

  .containerr ul {
    gap: 12px;
  }

  .cards {
    padding: 0 10px;
    margin-top: 16px;
  }

  .containerr li a {
    padding: 12px;
  }

  .icon-wrapper {
    width: 58px;
    height: 58px;
    margin-right: 10px;
  }

  .containerr img {
    width: 52px;
    height: 52px;
  }

  .containerr li a span {
    font-size: 16px;
  }
}

/* small adjustment for very small screens */

@media (max-width: 360px) {
  .container {
    padding: 14px;
  }

  .containerr ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 40px;
  }

  .logo img {
    width: 130px;
  }

  .primary-btn {
    padding: 9px;
    font-size: 15px;
  }
}

html,
body {
  overflow-x: hidden;
}
