 
 
/* فقط وسط صفحه scale بشه */
#page-wrapper {
  transform: scale(0.75);
  transform-origin: top left;
  width: 133.33%; /* جبران scale */
 
}

/* نقشه همیشه کل فضا بین دو navbar رو پر کنه */
#map {
  height: calc(100vh - 0px); 
 
  width: 100%;
}

 

.fw-medium {
    font-weight: 600 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    left: 5%;
    bottom: 100px;
    z-index: 1500;
}


 /*  textt */
.textt {
  cursor: pointer;
        position: relative;
 width: 90%;
  left: 5%;
  top: 50px;
  
        border: 1px solid #ccc;
padding:10px 20px 10px 10px;
border-radius: 0.25rem;
  box-shadow: 1px 1px #888888;
color:#603434;
    padding: 0% 1% 0% 1%;
       margin-bottom: 1.5rem;text-align: justify; }

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 22px;
    height: 22px;
}

.btn-lg-square {
 
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
  
    justify-content: center;
    font-weight: normal;
}

/*
.navbar .connection-icon {
    position: absolute;
    right: 5px;
    top: 12px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}



#connection-icon.blink {
    animation: blink 1.5s infinite;
    color: limegreen;
}

#connection-icon.offline {
    animation: none;
    color: gray;
}

*/


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {

}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

.f12_fontb {
    font-size: 10px;
  }
.f12_fontbh {
    font-size: 14px;
  }

@media (min-width: 1000px) {
    
    .f12_fontb {
    font-size: 14px;
  }
    .f12_fontbh {
    font-size: 24px;
  }
}
@media (min-width: 992px) {
    

  
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        top: -6px;
        left: 50%;
        background: #FFFFFF;
        transition: .5s;
    }

 
    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}




.nav-glow-bar {
    height: 3px;
    flex: 1;
    background: linear-gradient(
        90deg,
        rgba(0, 150, 200, 0) 0%,
        rgba(0, 150, 200, 0.5) 40%,
        rgba(0, 255, 255, 0.9) 50%,
        rgba(0, 150, 200, 0.5) 60%,
        rgba(0, 150, 200, 0) 100%
    );
    background-size: 200% 100%;
    animation: moveLight 2.5s linear infinite;
    box-shadow: 0 0 8px rgba(0, 180, 255, 0.3);
}

.nav-glow-bar.static {
    background: linear-gradient(to right, #007a99, #00ccea, #007a99);
    background-size: 100% 100%;
    animation: none;
}



@keyframes moveLight {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}






  .photo-attribution {
    position: absolute; bottom: 1px; left: 2px; font-size: 6px; color: #ccc; z-index: 10; margin: 0;
  }

  @media (max-width: 1000px) {
    .photo-attribution {
      font-size: 4px !important;
    }
  }

/*** Header ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

  .header-carousel .owl-carousel-item p.photo-attribution {
    font-size: 5px !important;
  }


    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(6, 3, 21, .5), rgba(6, 3, 21, .5)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Service, Price & Team ***/
.service-item,
.price-item,
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.service-item img,
.team-item img {
    transition: .5s;
}

.service-item:hover img,
.team-item:hover img {
    transform: scale(1.1);
}

.service-item a.btn-slide,
.price-item a.btn-slide,
.team-item div.btn-slide {
    position: relative;
    display: inline-block;
    overflow: hidden;
    font-size: 0;
}

.service-item a.btn-slide i,
.service-item a.btn-slide span,
.price-item a.btn-slide i,
.price-item a.btn-slide span,
.team-item div.btn-slide i,
.team-item div.btn-slide span {
    position: relative;
    height: 40px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 0 35px 35px 0;
    transition: .5s;
    z-index: 2;
}

.team-item div.btn-slide span a i {
    padding: 0 10px;
}

.team-item div.btn-slide span a:hover i {
    background: var(--secondary);
}

.service-item a.btn-slide span,
.price-item a.btn-slide span,
.team-item div.btn-slide span {
    padding-left: 0;
    left: -100%;
    z-index: 1;
}

.service-item:hover a.btn-slide i,
.price-item:hover a.btn-slide i,
.team-item:hover div.btn-slide i {
    border-radius: 0;
}

.service-item:hover a.btn-slide span,
.price-item:hover a.btn-slide span,
.team-item:hover div.btn-slide span {
    left: 0;
}

.service-item a.btn-slide:hover i,
.service-item a.btn-slide:hover span,
.price-item a.btn-slide:hover i,
.price-item a.btn-slide:hover span {
    background: var(--secondary);
}


/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item {
    position: relative;
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    animation: pulse 1s ease-out .5s;
}

.testimonial-carousel .owl-dots {
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: var(--primary);
    border: 5px solid var(--light);
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--light);
    border-color: var(--primary);
}


/*** Contact ***/
@media (min-width: 992px) {
 .pt-6{padding-top:6rem !important}
 .pt-7{padding-top:15rem !important}
}

/*** Contact ***/
@media (min-width: 992px) {
    .container.contact-page {
        max-width: 100% !important;
    }

    .contact-page .contact-form  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-page .contact-form  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-page .contact-form  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer {
    background: linear-gradient(rgba(6, 3, 21, .5), rgba(6, 3, 21, .5)), url(../img/map.png) center center no-repeat;
    background-size: cover;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 1px 0;
    font-size: 12px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}



#valueRangeInverse,
#valueRange,
  #timeline-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    outline: none;
    margin-top: 5px;
    margin-bottom: 5px;
    transition: background 0.3s;
  }

   #valueRangeInverse::-webkit-slider-thumb,
   #valueRange::-webkit-slider-thumb,
   #timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #2c7bb6;
    border-radius: 0%;
    cursor: pointer;
    border: 1px solid #fff;
    box-shadow: 0 0 2px rgba(0,0,0,0.4);
  }

#valueRange::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
    
    height: 20px;
 
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='26'><polygon points='0,14 22,14 11,26' fill='%232c7bb6'/></svg>") no-repeat center bottom;
  background-size: contain;
 
}



#valueRangeInverse::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
        height: 20px;

 
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='26'><polygon points='11,0 22,12 0,12' fill='%232c7bb6'/></svg>") no-repeat center center;
  background-size: contain;
 
}



#valueRangeInverse {
  direction: rtl;
}   
/***  background: linear-gradient(to right, blue, lime, yellow, red); ***/


.color-bar {
    height: 8px;
    border-radius: 5px;
}

.legend-labels {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
}



  #value-slider-container,
#timeline-container {
    display: flex;
    align-items: center;
    gap: 8px;
  }



 @media (max-width: 600px) {
        .color-bar {
         width: 180px;
        
         }
         
 
}

















/* styles.css */
body {
            font-family: 'Inter', sans-serif;
            background-color: #f8f9fa;
            margin: 0;
            padding: 0;
  transform: scale(0.8);   /* 👈 مثل 80% زوم */
  transform-origin: top left; /* 👈 نقطه شروع */
  width: 120%; /* چون scale کرده‌ای باید جبران بشه */
            
}

  h2, h3, p {
          direction: ltr;
    text-align: left;
  }

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
}

.popup-content h2 {
    margin-bottom: 20px;
}

.popup-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.popup-content input {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.popup-content button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
}

.popup-content button:hover {
    background-color: #0056b3;
}



.bottom-nav {
  position: fixed;
  bottom: 56px; /* بالای navbar پایین */
  left: 0;
  right: 0;
  background-color: #055160f1;
  transition: height 0.4s ease;
  overflow: hidden;
  z-index: 1010;
  height: 12px; /* حالت بسته */
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bottom-nav.open {
  height: 300px; /* حالت باز شده */
}

.handle-area {
  height: 12px;
  cursor: grab;
  display: flex;
  justify-content: center;
  align-items: center;
}

.handle-area::before {
  content: "";
  width: 50px;
  height: 2px;
  background: white;
  border-radius: 3px;
}

.expanded-content {
  padding: 10px;
  color: white;
  text-align: center;
  display: none;
  flex: 1;
  overflow-y: auto;
}

.bottom-nav.open .expanded-content {
  display: block;
}



#mainContent {
  transition: margin-left 0.9s ease;
}
    .sidebar {
      width: 250px;
      height: 120vh;
      background: #006d82cc;
      color: white;
      position: fixed;
      left: -250px; /* مخفی */
      top: 0;
      transition: left 0.3s ease;
      box-sizing: border-box;
      padding-top: 60px;
      z-index: 1010;
    }

    .sidebar.active {
      left: 0; /* نمایش */
    }

    .sidebar a {
      display: block;
      padding: 20px 20px;
      color: white;
      text-decoration: none;
    }
 

@media (min-width: 1000px) {
  
#mainContent.active {
  margin-left: 250px; /* وقتی منو باز شد */
}
}
.sidebar {
    transition: left  0.9s ease;
}





.tree-item {
  display: flex;
  flex-direction: column;
}

.tree-toggle {
  background: none;
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: left;
  cursor: pointer;
  font-size: 15px;
}

.tree-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.tree-children {
  display: none;
  flex-direction: column;
  padding-left: 20px;
}

.tree-children a {
  padding: 5px 20px;
  font-size: 14px;
}

.tree-item.active > .tree-children {
  display: flex;
}


@media (min-width: 1000px) {
    

       #navbarCollapse {
            height: 75px;
         
        }

}

     .zx_1 {z-index: 1;} .zx_2 {z-index: 2;} .zx_3 {z-index: 3;}.zx_4 { z-index: 4;}.zx_5 { z-index: 5;}.zx_6 { z-index: 6;}.zx_7 { z-index: 7;}.zx_8 { z-index: 8;}.zx_9 { z-index: 9;}
     .zx_10 {z-index: 10;} .zx_20 {z-index: 20;} .zx_30 {z-index: 30;}.zx_40 { z-index: 40;}.zx_50 { z-index: 50;}.zx_60 { z-index: 60;}.zx_70 { z-index: 70;}.zx_80 { z-index: 80;}.zx_90 { z-index: 90;}
     .zx_100 {z-index: 100;}.zx_200 {z-index: 200;}.zx_300 {z-index: 300;}.zx_400 {z-index: 400;}.zx_500 {z-index: 500;}.zx_600 {z-index: 600;}.zx_700 {z-index: 700;}.zx_800 {z-index: 800;}.zx_900 {z-index: 900;}
     .zx_1000 {z-index: 1000;}.zx_1500 {z-index: 1500;}.zx_2000 {z-index: 2000;}.zx_2500 {z-index: 2500;}.zx_3000 {z-index: 3000;}.zx_3500 {z-index: 3500;}.zx_4000 {z-index: 4000;}.zx_4500 {z-index: 4500;}
     .zx_5000 {z-index: 5000;}.zx_5500 {z-index: 5500;}.zx_6000 {z-index: 6000;}.zx_6500 {z-index: 6500;}.zx_7000 {z-index: 7000;}.zx_7500 {z-index: 7500;}.zx_8000 {z-index: 8000;}.zx_8500 {z-index: 8500;}.zx_9000 {z-index: 9000;}
     .zx_10000 {z-index: 10000;}.zx_15000 {z-index: 15000;}.zx_20000 {z-index: 20000;}.zx_25000 {z-index: 25000;}.zx_30000 {z-index: 30000;}.zx_35000 {z-index: 35000;}.zx_40000 {z-index: 40000;}.zx_45000 {z-index: 45000;}
     .zx_50000 {z-index: 50000;}.zx_55000 {z-index: 55000;}.zx_60000 {z-index: 60000;}.zx_65000 {z-index: 65000;}.zx_70000 {z-index: 70000;}.zx_75000 {z-index: 75000;}.zx_80000 {z-index: 80000;}.zx_85000 {z-index: 85000;}.zx_90000 {z-index: 90000;}
     .zx_100000 {z-index: 100000;}.zx_150000 {z-index: 150000;}.zx_200000 {z-index: 200000;}.zx_250000 {z-index: 250000;}.zx_300000 {z-index: 300000;}.zx_350000 {z-index: 350000;}.zx_400000 {z-index: 400000;}.zx_450000 {z-index: 450000;}
     .zx_1000000 {z-index: 1000000;}.zx_150000 {z-index: 150000;}.zx_200000 {z-index: 200000;}.zx_250000 {z-index: 250000;}.zx_300000 {z-index: 300000;}.zx_350000 {z-index: 350000;}.zx_400000 {z-index: 400000;}.zx_450000 {z-index: 450000;}
  




     
        #country-select, #city-select, #polygon-select {
            margin: 2px;
            padding: 2px;
            font-size: 10px;
            float: right;
        }
        .details-menu {
            display: none;
            background-color: #fff;
            border: 1px solid #ccc;
            padding: 10px;
            position: absolute;
            z-index: 1000;
        }
        .details-menu input {
            margin: 5px 0;
            width: 100%;
        }
        .details-menu button {
            margin-top: 10px;
        }
        #coordinates {
            margin: 10px;
            font-size: 10px;
            font-family: monospace;
        }
        .language-selector {
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 10px;
            cursor: pointer;
        }
  
  

.leaflet-control-layers {
    top: 30px;
    background-color: rgba(255, 255, 255, 0.8) !important;

 
}

/* کانتینر اصلی کنترل زوم */
.leaflet-control-zoom {
    top: 30px;
    background: none !important;
    box-shadow: none !important;
}

/* خود دکمه‌های زوم */
.leaflet-control-zoom a {
    background-color: rgba(255, 255, 255, 0.8) !important;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: none !important;
}

.zoom-level {
position: absolute; bottom: 75px; left: 10px; background: rgba(255,255,255,0.7); padding: 1px 8px; border-radius: 4px; font-size: 8px; font-family: Arial; z-index: 450;
}

@media (min-width: 1000px) {
    

.zoom-level {
bottom: 25px;
}

}


        
        		/* تنظیمات جدید برای پاپ‌آپ */
            .leaflet-popup-content-wrapper {
                width: 300px; 
                height: 150px; 
                max-width: 100%; 
                max-height: 100%;
            }

            /* اگر می‌خواهید پاپ‌آپ از نظر محتوای داخلی محدودیتی نداشته باشد */
            .leaflet-popup-content {
                overflow: auto;
            }
            .leaflet-control-attribution {
                     display: none !important;
            }
         
         
            
            .polygon-label {
                background-color: white;  /* پس‌زمینه سفید برای خوانایی بیشتر */
                padding: 5px;
                border: 1px solid black;
                font-size: 10px; /* اندازه مناسب فونت */
                color: black; /* رنگ متن */
                z-index: 1100;
            }

.shift-label {
    background-color: rgba(75, 192, 192, 0.2);
    color: green;
     
    border: 0px solid gray;
    font-size: 8px; /* اندازه مناسب فونت */
   border-radius: 4px;
    padding: 2px 5px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
}


       .leaflet-control-save {
            background-color: #007bff;
            color: white;
            padding: 2px 5px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 9px;
            font-family: Nazanin;
        }
        .leaflet-control-save:hover {
            background-color: #0056b3;
        }




 #dropdown-container {
     position:fixed;
    direction: rtl;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 1px;
    
    border-radius: 6px;
    margin-bottom: 0px;
    font-family: 'B Nazanin';
    font-size: 14px;
    top: 83px;
        right: 5px; /* 👈 اضافه‌شده: بچسبد به سمت راست */
    left: auto !important; /* اطمینان از نادیده گرفتن تنظیمات قبلی */
    z-index: 499;

    
 }
#dropdown-container select {
    padding: 1px;
    min-width: 50px;
}

 
 @media (max-width: 600px) {
    #dropdown-container select {
       gap: 1px;
       width: 10%; /* کل عرض موبایل */
        font-size: 8px; /* متن بزرگتر برای لمس راحت */
    }
}



.planttype-label {
  font-size: 14px;
  font-weight: bold;
  color: darkgreen;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid green;
  z-index: 1000;
}







/*       D  R*/

    .draw-toggle-container {
    
    position: absolute; top: 185px; left: 12px; z-index: 999;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* 👈 سایه */

}


  .draw-panel {
    display: none;
    background: white;
    padding: 0px;
    border-radius: 1px;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    margin-top: 5px;
 }

  .draw-panel.active {
    display: block;
  }

  .draw-toggle-button {
    background-color: #fff;
    padding: 6px 6px 2px 8px;
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    cursor: pointer;
    font-size: 13px;
    text-align: center;
  }

.draw-panel button {
  display: block;
  font-size: 17px;
    padding: 8px 2px 0px 6px;
    margin: 0px 0px 0px 2px;
  cursor: pointer;
  border-radius: 5px;
  background: none;
  border: none;
  color: black;
  transition: transform 0.2s ease;
}



.draw-panel button:hover {
  transform: scale(1.3);
  color: #007bff;
}


.draw-divider {
  height: 1px;
  width: 100%;
  background: #ccc;
  display: block;
}



.arrow-icon div {
  font-size: 100px;
  color: green;
  text-shadow: 0 0 3px white;
}

.press-zoom-img {
  transition: transform 0.25s ease;
  cursor: pointer;
}

 
  .mask-btn {
    font-size: 11px;
    width: 30px;
  background-color: rgba(255, 255, 255, 0.3); /* شفاف */
    color: white;
    border: 0px solid #999;
    border-radius: 4px;
    padding: 1px 4px;
    cursor: pointer;
  }

  .mask-btn.active {
  background-color: rgba(0, 128, 255, 0.3); /* حالت فعال با رنگ متمایز ولی شفاف */
    color: white;

  } 
 
 
.bridge-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
    border: 1px solid #ccc;
}

.bridge-circle i {
    font-size: 16px;
    color: #cc0000;
    opacity: 0.9;
}



   #splash {
      position: fixed;
      top: 0; left: 0;
      width: 100vw; height: 100vh;
      background: transparent;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
    }


    #main-content {
      display: none;
      padding: 20px;
      text-align: center;

        
    }




#indextotal p {
  text-align: center;
}

#indextotal h2 {
  text-align: center;
}




    /* 📦 Toast Message */
    .install-toast {
      position: fixed;
      top: 50px;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      background: #e0f7fa;
      color: #00796b;
      border: 1px solid #4db6ac;
      padding: 15px 20px;
      border-radius: 10px;
      font-size: 16px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
      animation: fadeInUp 1.6s ease;
      z-index: 10000;
      max-width: 80vw;
      text-align: center;
      position: relative;
     overflow: hidden; /* 👈 ضروری برای نگه داشتن افکت درون toast */
 }

    .close-toast {
      position: absolute;
      top: 5px;
      right: 10px;
      background: none;
      border: none;
      font-size: 16px;
      color: #00796b;
      cursor: pointer;
    }

    @keyframes fadeInUp {
      from { opacity: 0; transform: translate(-50%, 20px); }
      to { opacity: 1; transform: translate(-50%, 0); }
    }
    
    
    .toast-glow-line {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 4px;
      background: linear-gradient(to right, transparent, #00e5ff, transparent);
      animation: glow-move-internal 2s linear infinite;
      opacity: 0.7;
    }
    
    @keyframes glow-move-internal {
      0% {
        transform: translateX(-100%);
        opacity: 0;
      }
      30% {
        opacity: 1;
      }
      100% {
        transform: translateX(100%);
        opacity: 0;
      }
    }
    


.inline-h {
  display: inline;
  margin: 0;
  padding: 0;
}

.mini-text {
  font-size: 16px;
  vertical-align: middle;
  font-weight:bold;
    
}


.modal {
   top: 120px;
   backdrop-filter: blur(3px);
}


#form-toast {
      font-size: 10px;

  position: fixed;
  top: 0; /* بالای صفحه */
  left: 50%;
  transform: translate(-50%, 100%); /* از پایین خارج از صفحه شروع بشه */
  opacity: 0;
  z-index: 100;
  width: 100%;
  max-width: 600px;
  background: #fff;
  padding: 20px;
     border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  max-height: 90vh;
  overflow-y: auto;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
  padding-bottom: 50px;
}

#form-toast.show {
  transform: translate(-50%, 0); /* کاملاً به بالا میاد */
  opacity: 1;
}






.card-header h2 {
     font-size: 1.2rem;
}


















/* استایل پیام‌های خطا زیر فیلدها */
.error-message {
    font-size: 12px !important;          /* اندازه فونت - می‌تونید تغییر بدید */
    color: #dc3545 !important;           /* رنگ قرمز برای خطا */
    margin-top: 5px !important;
    margin-bottom: 0 !important;
    padding: 2px 5px !important;
    display: none;                       /* پیش‌فرض مخفی */
    font-weight: 500 !important;         /* ضخامت فونت */
    line-height: 1.3 !important;
    border-radius: 3px !important;
    background-color: rgba(220, 53, 69, 0.1) !important;  /* پس‌زمینه شفاف قرمز */
    border-left: 3px solid #dc3545 !important;            /* خط کنار چپ */
}

/* پیام‌های مخصوص هر فیلد */
#usernameMessage {
    font-size: 11px !important;         /* اندازه کوچک‌تر برای نام کاربری */
    color: #e74c3c !important;          /* قرمز کمی متفاوت */
}

#emailMessage {
    font-size: 12px !important;
    color: #c0392b !important;          /* قرمز تیره‌تر برای ایمیل */
    font-style: italic !important;      /* ایتالیک برای تأکید */
}

#mobileMessage {
    font-size: 11px !important;
    color: #d63031 !important;          /* قرمز برای موبایل */
}

/* پیام‌های موفقیت (اختیاری) */
.success-message {
    font-size: 12px !important;
    color: #28a745 !important;          /* سبز برای موفقیت */
    margin-top: 5px !important;
    padding: 2px 5px !important;
    background-color: rgba(40, 167, 69, 0.1) !important;
    border-left: 3px solid #28a745 !important;
    border-radius: 3px !important;
}

/* استایل قوت کلمه عبور */
.password-strength {
    margin-top: 5px !important;
    padding: 8px 12px !important;      /* پدینگ بیشتر */
    border-radius: 5px !important;
    font-size: 11px !important;        /* اندازه کوچک‌تر */
    font-weight: 600 !important;       /* فونت ضخیم‌تر */
    text-align: center !important;     /* متن وسط‌چین */
    transition: all 0.3s ease !important;
}

.password-strength.very-weak { 
    background: #ffebee !important; 
    color: #c62828 !important;
    border: 1px solid #ffcdd2 !important;
}

.password-strength.weak { 
    background: #fff3e0 !important; 
    color: #ef6c00 !important;
    border: 1px solid #ffcc02 !important;
}

.password-strength.medium { 
    background: #fff8e1 !important; 
    color: #f57f17 !important;
    border: 1px solid #ffeb3b !important;
}

.password-strength.strong { 
    background: #e8f5e8 !important; 
    color: #2e7d32 !important;
    border: 1px solid #a5d6a7 !important;
}

.password-strength.very-strong { 
    background: #e0f2f1 !important; 
    color: #00695c !important;
    border: 1px solid #80cbc4 !important;
}

/* پیام‌های تایید ایمیل */
#verificationMessage .alert {
    font-size: 13px !important;        /* اندازه متوسط */
    padding: 8px 12px !important;      /* پدینگ کمتر */
    margin-bottom: 10px !important;
}

#verificationMessage .alert-success {
    color: #0f5132 !important;
    background-color: #d1e7dd !important;
    border-color: #badbcc !important;
}

#verificationMessage .alert-danger {
    color: #842029 !important;
    background-color: #f8d7da !important;
    border-color: #f5c2c7 !important;
}

/* Timer استایل */
#timer {
    font-size: 12px !important;
    color: #6c757d !important;
    font-weight: 500 !important;
}

#timer .alert {
    font-size: 11px !important;
    padding: 6px 10px !important;
}

/* اگر می‌خواهید پیام‌ها انیمیشن داشته باشند */
.error-message.show {
    animation: slideInError 0.3s ease-in-out !important;
}

@keyframes slideInError {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* برای فونت‌های فارسی (اختیاری) */
.error-message,
.password-strength,
#verificationMessage {
    font-family: 'Vazir', 'Tahoma', Arial, sans-serif !important;
}

/* پیام‌های کاربردی اضافی */
.info-message {
    font-size: 11px !important;
    color: #0c5460 !important;
    background-color: rgba(13, 202, 240, 0.1) !important;
    border-left: 3px solid #0dcaf0 !important;
    padding: 5px 8px !important;
    border-radius: 3px !important;
    margin-top: 5px !important;
}

.warning-message {
    font-size: 12px !important;
    color: #664d03 !important;
    background-color: rgba(255, 193, 7, 0.1) !important;
    border-left: 3px solid #ffc107 !important;
    padding: 5px 8px !important;
    border-radius: 3px !important;
    margin-top: 5px !important;
}

/* استایل‌های responsive برای موبایل */
@media (max-width: 768px) {
    .error-message {
        font-size: 11px !important;
        padding: 3px 6px !important;
    }
    
    .password-strength {
        font-size: 10px !important;
        padding: 6px 8px !important;
    }
    
    #verificationMessage .alert {
        font-size: 12px !important;
        padding: 6px 10px !important;
    }
}


.text-center {

    padding: 20px 5px 50px 5px !important;

}


.login-link {

    padding: 20px 5px 50px 5px !important;

}




          .main-container {
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 20px rgba(0,0,0,0.1);
            margin: 20px 0 80px;
            overflow: hidden;
        }
        .table-header {
         /*   background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
          */
            color: white;
            padding: 20px;
            border-radius: 12px 12px 0 0;
        }
        .search-filters {
            background: #f8f9fa;
            padding: 20px;
            border-bottom: 1px solid #dee2e6;
        }
        .table-responsive {
            max-height: 600px;
            overflow-y: auto;
        }
        .table th {
            background-color: #a7afb6;
            color: white;
            font-weight: 600;
            border: none;
            position: sticky;
            top: 0;
            z-index: 10;
        }
        .table td {
            vertical-align: middle;
            border-color: #e9ecef;
        }
        .status-active {
            color: #28a745;
        }
        .status-inactive {
            color: #dc3545;
        }
        .btn-action {
            padding: 1px 2px;
            margin: 2px;
            border-radius: 6px;
        }
        
        .btn-actions {
            padding: 5px 8px;
            margin: 2px;
            border-radius: 6px;
        }
        .user-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: linear-gradient(45deg, #e9ecef, #e9ecef);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 14px;
        }
        .badge-new {
            background: linear-gradient(45deg, #ff6b6b, #ee5a24);
            color: white;
        }
        .search-box {
            position: relative;
        }
        .search-box input {
            padding-right: 40px;
        }
        .search-box .bi-search {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: #6c757d;
        }
        .filter-select {
            background: white;
            border: 2px solid #e9ecef;
            border-radius: 8px;
        }
        .filter-select:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
        }
        .mobile-card {
            display: none;
        }
        
        
            .status-toggle {
                width: 25px;
                height: 25px;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                margin-right: 10px;
            }     
        
        
             .btn-plus {
                display: none;
            }
    
        @media (max-width: 992px) {
            .table-responsive table {
                display: none;
            }
            .mobile-card {
                display: block;
            }
            .user-card {
                background: white;
                border-radius: 12px;
                margin-bottom: 15px;
                padding: 15px;
                box-shadow: 0 2px 8px rgba(0,0,0,0.1);
                border-left: 1px solid #a7afb6;
            }
            .user-card.inactive {
                border-left-color: #dc3545;
                opacity: 0.8;
            }
            .user-header {
                display: flex;
                align-items: center;
                margin-bottom: 10px;
            }
              .user-info {
                flex: 1;
            }
            .user-name {
                font-weight: bold;
                font-size: 0.7rem;
                margin-bottom: 2px;
            }
            .user-username {
                color: #6c757d;
                font-size: 0.9rem;
            }
            .user-details {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 8px;
                margin: 10px 0;
            }
            .detail-item {
                font-size: 0.85rem;
            }
            
            .pad-mobile {
             margin-left: 50px;   
            }    
    
            .user-actions-mobile {
                display: flex;
                gap: 8px;
                margin-top: 15px;
                flex-wrap: wrap;
            }
            .btn-mobile {
                flex: 1;
                min-width: 70px;
                padding: 8px 12px;
                font-size: 0.8rem;
                border-radius: 6px;
            }
   
            .search-filters {
                padding: 15px;
            }
            .search-filters .row {
                margin: 0;
            }
            .search-filters .col-md-4,
            .search-filters .col-md-3,
            .search-filters .col-md-2 {
                padding: 0 5px;
                margin-bottom: 10px;
            }
            
            
             .user-details {
                grid-template-columns: 1fr;
            }

     

            
            /* Mobile filter layout */
            .mobile-filters {
                display: flex;
                gap: 8px;
                margin-top: 10px;
            }
            .mobile-filters select {
                flex: 1;
                font-size: 0.85rem;
                padding: 8px 6px;
                border-radius: 6px;
                border: 1px solid #dee2e6;
            }
            .mobile-filters select:focus {
                border-color: #667eea;
                box-shadow: 0 0 0 0.1rem rgba(102, 126, 234, 0.25);
            }         
            
        }







