
@import url("https://cdn.fontcdn.ir/Font/Persian/IranSans/css/fontiran.css");

body {
  margin: 0;
  font-family: 'Vazir', sans-serif;
  background: #fafafa;
  color: #333;
  direction: rtl;
}

:root {
  --orange: #ff7b00;
  --light-orange: #fff3e6;
  --gray: #888;
}

header {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo img{
  color: var(--orange);
width: 65px;
margin-top: 5px;
border-radius: 50%;
margin-right: 5px;
height: 65px;
}
.search-box {
  flex: 1;
  margin: 0 35px;
}
.search-box input {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-family: inherit;
}
.login-btn,
.menu-btn {
  background: var(--orange);
font-family: 'Vazir', sans-serif;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}
.login-btn:hover,
.menu-btn:hover {
  opacity: 0.85;
}

.navbar {
  background: var(--light-orange);
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 10px;
  border-bottom: 1px solid #eee;
}
.navbar a {
  color: #555;
  text-decoration: none;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s;
}
.navbar a.active {
  color: var(--orange);
  font-weight: bold;
}

.sidebar {
  width: 230px;
  background: #fff;
  border-left: 3px solid var(--orange);
  position: fixed;
  top: 110px;
  right: 0;
  height: calc(100vh - 110px);
  padding: 20px;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.05);
}
.user-info {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #f5f5f5;
  padding-bottom: 10px;
  margin-bottom: 15px;
}
.avatar i {
  color: var(--orange);
}
.menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #444;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition: 0.2s;
}
.menu li a:hover {
  background: var(--light-orange);
  color: var(--orange);
}

main {
  padding: 20px;
  margin-right: 250px;
}
.page {
  display: none;
}
.page.active {
  display: block;
}
.page h2 {
  display: flex;
  align-items: center;
  margin-right: 10px;
  gap: 6px;
  font-size: 18px;
  color: var(--orange);
  margin-bottom: 15px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 12px;
  margin-right: 20px;
}

.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 150;
}
.bottom-sheet-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.bottom-sheet {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.15);
  padding: 20px;
  transition: bottom 0.3s ease;
  z-index: 200;
}
.bottom-sheet.active {
  bottom: 0;
}
.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
}
.sheet-header h3 {
  color: var(--orange);
  margin: 0;
}
.sheet-content p {
  color: #555;
  margin: 8px 0;
}
.btn-pay {
  background: var(--orange);
  font-family: 'Vazir', sans-serif;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px;
  width: 100%;
  cursor: pointer;
  transition: 0.2s;
}
.btn-pay:hover {
  opacity: 0.9;
}

.register-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 300;
  transition: opacity 0.3s ease;
}
.register-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.register-card {
  background: #fff;
  border-radius: 16px;
  width: 320px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  text-align: center;
  animation: pop 0.3s ease;
}
.register-card h3 {
  color: var(--orange);
  margin-bottom: 15px;
}
.register-card input {
  width: 90%;
    font-family: 'Vazir', sans-serif;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: inherit;
}
.register-card button {
  width: 100%;
  background: var(--orange);
  color: white;
  border: none;
    font-family: 'Vazir', sans-serif;
  border-radius: 10px;
  padding: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.register-card button:hover {
  opacity: 0.9;
}
@keyframes pop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 65px;
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}
.bottom-nav .nav-btn {
  background: none;
  border: none;
  font-size: 14px;
  color: #777;
  text-align: center;
  cursor: pointer;
}
.bottom-nav .nav-btn.active {
  color: var(--orange);
}

.loads-header img {
  width: 90px;
  opacity: 0.85;
}
.loads-header {
  text-align: center;
  margin-bottom: 10px;
}
.loads-header h2 {
  font-size: 20px;
  color: var(--orange);
}
.loads-header img {
  width: 100px;
  margin: 8px auto;
  display: block;
}
.loads-tabs {
  display: flex;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.tab-btn {
  flex: 1;
  padding: 10px;
  font-weight: 600;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  transition: 0.3s;
}
.tab-btn.active {
  color: var(--orange);
  border-bottom: 3px solid var(--orange);
}
.loads-list {
  margin-top: 15px;
}
.load-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  line-height: 1.7;
}

.tab-btn {
  background: none;
  border: none;
  color: #555;
  flex: 1;
  padding: 10px;
  cursor: pointer;
  font-family: inherit;
}
.tab-btn.active {
  color: var(--orange);
  border-bottom: 2px solid var(--orange);
}

@media (max-width: 768px) {
  .sidebar,
  .desktop-nav,
  .login-btn
  {
    display: none;
  }
  .menu-btn {
    display: block;

  }
  main {
    margin: 0;
    padding: 15px;
    padding-bottom: 80px;
  }
  .logo img{
        width: 57px;
        height: 57px;
        margin-top: 10px;
        margin-left: -25px;
  }
  .bottom-nav {
    display: flex;
  }
}


.bottom-sheet {
  position: fixed;
  left: 0; right: 0;
  bottom: -100%;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -6px 25px rgba(0,0,0,0.15);
  transition: bottom 0.35s ease;
  z-index: 200;
}
.bottom-sheet.active {
  bottom: 0;
}
.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.bottom-sheet-overlay.active {
  opacity: 1;
  pointer-events: all;
}

#manegcar .card, #searchbar .card {
  padding: 20px;
}
#manegcar label {
  display: block;
  margin: 6px 0 3px;
  font-weight: 600;
}
#manegcar input {
  width: 100%;
  font-family: 'Vazir', sans-serif;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-bottom: 8px;
}
#manegcar button {
  flex: 1;
  font-family: 'Vazir', sans-serif;
  background: var(--orange);
  border: none;
  color: #fff;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  font-weight: 600;
}
#searchbar select,
#searchbar input {
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 10px;
  font-family: 'Vazir', sans-serif;
}
#searchbar button {
  background: var(--orange);
  font-family: 'Vazir', sans-serif;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}


.desktop-nav, header, .sidebar {
  display: flex;
}

.bottom-nav,
.menu-btn,
.mobile-menu,
.drawer-overlay {
  display: none;
}

@media (max-width: 768px) {
  header,
  .desktop-nav,
  .sidebar {
    display: none !important;
  }

  .bottom-nav {
    display: flex !important;
    justify-content: space-around;
    background: #fff;
    border-top: 1px solid #eee;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 6px 0;
  }

  .bottom-nav .nav-btn {
    flex: 1;
    color: #666;
    font-size: 12px;
    background: none;
    border: none;
  }

  .bottom-nav .nav-btn.active {
    color: #f97316; 
  }

  .menu-btn {
    display: block !important;
    background: none;
    border: none;
  
    color: #f97316;
    font-size: 22px;
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    background: #fff;
    position: fixed;
    right: -100%;
    top: 0;
    width: 70%;
    height: 100%;
    box-shadow: -2px 0 8px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
    z-index: 100;
  }
  .mobile-menu.active {
    right: 0;
  }

  .drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
  }
  .drawer-overlay.active {
    display: block;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none !important; 
  }
  .desktop-nav {
    display: none !important; 
  }
  header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
  }
}




.sidebar {
  width: 230px;
  background: #fff;
  border-left: 2px solid var(--orange);
  position: fixed;
  top: 140px;
  right: 0;
  height: calc(100vh - 110px);
  padding: 25px 20px;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.sidebar .user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.sidebar .avatar i {
  color: var(--orange);
  width: 30px;
  height: 30px;
}

.sidebar .user-details strong {
  font-weight: 600;
  color: #333;
}

.sidebar .user-details small {
  color: #777;
  font-size: 13px;
}

.sidebar .menu {
  list-style: none;
  width: 100%;
  padding: 0;
  margin: 0;
}

.sidebar .menu li {
  width: 100%;
}

.sidebar .menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  color: #444;
  text-decoration: none;
  transition: all 0.25s;
}

.sidebar .menu li a:hover {
  background: var(--light-orange);
  color: var(--orange);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  height: 100%;
  background: #fff;
  box-shadow: -3px 0 12px rgba(0, 0, 0, 0.15);
  transition: right 0.35s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  text-align: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.mobile-menu-header strong {
  display: block;
  font-weight: 600;
  color: #333;
}

#closeMenu {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 24px;
  color: var(--orange);
  cursor: pointer;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  color: #444;
  text-decoration: none;
  transition: 0.25s;
}

.mobile-menu a:hover {
  background: var(--light-orange);
  color: var(--orange);
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 768px) {
  .sidebar {
    display: none !important;
  }
  .search-suggestions {
    width: 114%;
  }
}


.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 65%;
  height: 100%;
  background: #fff;
  z-index: 1002;
  box-shadow: -2px 0 12px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}
.mobile-menu.active {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  z-index: 1001;
  transition: opacity 0.3s ease;
}
.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #eee;
}
.mobile-menu-header .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-menu-header i {
  cursor: pointer;
}
.menu-links {
  display: flex;
  flex-direction: column;
  padding: 10px;
}
.menu-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s;
}
.menu-links a:hover {
  background: #fff1e0;
}
.logout {
  color: #e74c3c !important;
}



.close-menu-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--orange);
  cursor: pointer;
}


.btn-open-nobat {
  display: block;
   font-family: 'Vazir', sans-serif;
  width: 100%;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 0;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.25s ease;
}

.btn-open-nobat:hover {
  background: #ff8f1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 123, 0, 0.3);
}



.search-suggestions {
  position: absolute;
  top: 50px;
  right: 0;
  left: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  z-index: 99;
}
.search-suggestions li {
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.search-suggestions li:hover {
  background: #fff3e6;
  color: #ff7b00;
}
.search-suggestions .no-result {
  color: #777;
  text-align: center;
}



/* 🎬 انیمیشن حرفه‌ای برای کل سایت */

/* انیمیشن ورود نرم برای همه المان‌ها */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* افکت کلی برای کارت‌ها */
.card, .load-card, .queue-card {
  animation: fadeInUp 0.5s ease both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover, .load-card:hover, .queue-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255, 123, 0, 0.2);
}

/* افکت برای دکمه‌ها */
button, .btn-pay, .btn-open-nobat, .tab-btn, .login-btn {
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
button::after, .btn-pay::after, .btn-open-nobat::after, .tab-btn::after, .login-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.25);
  transition: left 0.3s ease;
}
button:hover::after, .btn-pay:hover::after, .btn-open-nobat:hover::after, .tab-btn:hover::after, .login-btn:hover::after {
  left: 0;
}

/* هاور نرم رنگ نارنجی برای دکمه‌ها */
 .btn-pay:hover, .btn-open-nobat:hover, .tab-btn:hover, .login-btn:hover {
  background-color: #ff8c1a !important;
  box-shadow: 0 6px 18px rgba(255, 123, 0, 0.3);
  transform: translateY(-2px);
}

/* افکت باز شدن منوی موبایل */
.mobile-menu {
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.active {
  animation: fadeIn 0.3s ease;
}

/* افکت باز شدن Bottom Sheet */
.bottom-sheet {
  animation: fadeInUp 0.4s ease;
}

/* افکت برای فرم‌ها */
input, select, textarea {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 8px rgba(255, 123, 0, 0.3);
}

/* افکت Hover برای لینک‌های منو */
.menu a, .menu-links a {
  position: relative;
  transition: color 0.3s ease;
}
.menu a::before, .menu-links a::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0%;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s ease;
}
.menu a:hover::before, .menu-links a:hover::before {
  width: 100%;
}

/* انیمیشن ظاهر شدن Overlayها */
.drawer-overlay.active, 
.bottom-sheet-overlay.active, 
.register-overlay:not(.hidden) {
  animation: fadeIn 0.3s ease;
}

/* انیمیشن ورود محتوا به صفحات */
.page.active {
  animation: fadeInUp 0.4s ease;
}



/* === 🌙 حالت تاریک / روشن با انیمیشن === */
:root {
  --bg-light: #fafafa;
  --text-light: #333;
  --card-light: #fff;
  --border-light: #eee;

  --bg-dark: #1e1e1e;
  --text-dark: #e9e9e9;
  --card-dark: #2a2a2a;
  --border-dark: #333;
}

/* پیش‌فرض روشن */
body {
  background: var(--bg-light);
  color: var(--text-light);
  transition: background 0.4s ease, color 0.4s ease;
}

/* حالت تاریک */
body.dark {
  background: var(--bg-dark);
  color: var(--text-dark);
}
body.dark header,
body.dark .navbar,
body.dark .sidebar,
body.dark .mobile-menu,
body.dark .card,
body.dark .bottom-sheet,
body.dark .register-card {
  background: var(--card-dark);
  color: var(--text-dark);
  border-color: var(--border-dark) !important;
  box-shadow: none;
}
body.dark input,
body.dark select,
body.dark textarea {
  background: #222;
  color: #eee;
  border: 1px solid #444;
}
body.dark .bottom-nav,
body.dark .navbar {
  background: #2a2a2a;
  border-color: #333;
}
body.dark .nav-btn.active,
body.dark .menu a:hover,
body.dark .menu-links a:hover {
  color: var(--orange);
}

/* دکمه تغییر تم */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--orange);
  font-size: 22px;
  transition: transform 0.3s ease;
}


/* فقط ماه بمونه ولی انیمیشن و رنگش تغییر کنه */
body.dark .theme-toggle i[data-lucide="moon"] {
  color: #ffd479;
  transform: rotate(-20deg) scale(1.1);
  transition: all 0.3s ease;
}
body.dark .sidebar .menu li a{
  color: white;
}

body.dark .search-suggestions{
  background: rgb(73 73 73);
}

body.dark .mobile-menu a{
  color: #ddd;
}
body.dark .mobile-menu-header strong{
  color: #ddd;
}