﻿/* side nav */

.checkbox-container {
  display: block;
  float: left;
  width: 50px;
  height:50px;
  position: relative;
  background: #182825;
}

.checkbox-trigger {
  opacity: 0;
  position: absolute;
  width: 50px;
  height: 50px;
  left: 0px;
  cursor: pointer;
  z-index: 5;
}

.hamburger-menu, .hamburger-menu::before, .hamburger-menu::after {
    display: block;
    position: absolute;
    background: white;
    width: 40px;
    height: 4px;
    margin: 1.3em 3em;
    transition: background 0.3s;
}

.hamburger-menu::before, .hamburger-menu::after {
    content: '';
    position: absolute;
    margin: -0.7em 0 0;
    transition: width 0.7s ease 0.3s, transform 0.7s ease 0.3s;
}

.hamburger-menu::after {
   margin-top: 0.7em;
}

.hamburger-menu {
  position: relative;
  display: block;
  margin: 0;
  margin-top: 1.45em;
  margin-right: 0.35em;
  margin-left: 0.35em;
  margin-bottom: 1.45em;
  transition: width 0.3s ease;
}

.checkbox-trigger:checked {
  left: 202px;
}

.checkbox-trigger:checked + .menu-content .hamburger-menu {
  width: 2em;

  transition: width 0.7s ease 0.7s;
}

.checkbox-trigger:checked + .menu-content .hamburger-menu::before {
  width: 1.2em;
  transform: rotate(-35deg);
  margin-top: -0.4em;
}

.checkbox-trigger:checked + .menu-content .hamburger-menu::after {
  width: 1.2em;
  transform: rotate(35deg);
  margin-top: 0.4em;
}

.checkbox-trigger:checked + .menu-content ul {
  width: 200px;
  height: auto;
  transition: width 0.7s ease 0.3s, height 0.3s ease;
}

.menu-content {
  display: flex;
  background: #343a40;
  color: white;
  float: left;
}

.menu-content ul {
  display: block;
  padding-left: 0;
  padding-top: 1em;
  padding-bottom: 1em;
  margin: 0;
  width: 0px;
  height: 0px;
  overflow: hidden;
  transition: height 0.3s ease 0.7s, width 0.7s ease;
  z-index:50;
}

.menu-content ul li {
  list-style: none;
  padding-top: 1em;
  padding-bottom: 1em;
  padding-left: 40px;
  cursor: pointer;
  transition: color 0.5s, background 0.5s;

}

.menu-content ul li:hover {
  color: #948514;
  background: #f0efef;
}

/* rtl languages */

.checkbox-container-ar {
  display: block;
  float: right;
  width: 50px;
  height:50px;
  position: relative;
  background: #182825;
}

.checkbox-trigger-ar {
  opacity: 0;
  position: absolute;
  width: 50px;
  height: 50px;
  right: 30px;
  cursor: pointer;
  z-index: 5;
}

.checkbox-trigger-ar:checked {
  right: 202px;
}

.checkbox-trigger-ar:checked + .menu-content-ar .hamburger-menu {
  width: 2em;

  transition: width 0.7s ease 0.7s;
}

.checkbox-trigger-ar:checked + .menu-content-ar .hamburger-menu::before {
  width: 1.2em;
  transform: rotate(35deg);
  margin-top: -0.4em;
}

.checkbox-trigger-ar:checked + .menu-content-ar .hamburger-menu::after {
  width: 1.2em;
  transform: rotate(-35deg);
  margin-top: 0.4em;
}

.checkbox-trigger-ar:checked + .menu-content-ar ul {
  width: 200px;
  height: auto;
  transition: width 0.7s ease 0.3s, height 0.3s ease;
}

.menu-content-ar {
  display: flex;
  background: #343a40;
  color: white;
  float: right;
}

.menu-content-ar ul {
  display: block;
  padding-right: 0;
  padding-top: 1em;
  padding-bottom: 1em;
  margin: 0;
  width: 0px;
  height: 0px;
  overflow: hidden;
  transition: height 0.3s ease 0.7s, width 0.7s ease;
  z-index:50;
}

.menu-content-ar ul li {
  list-style: none;
  padding-top: 1em;
  padding-bottom: 1em;
  padding-right: 50px;
  cursor: pointer;
  transition: color 0.5s, background 0.5s;

}

.menu-content-ar ul li:hover {
  color: #948514;
  background: #f0efef;
}

/* COMPACT CAPTCHA YELLOW */

.capbox {
	background: #F7971E;
	background: linear-gradient(to right, #F7971E, #FFD200);
	border: #D36700 0px solid;
	border-width: 2px 2px 2px 20px;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	display: inline-block;
	padding: 5px 8px 5px 8px;
	border-radius: 4px 4px 4px 4px;
	}

.capbox-inner {
	font: bold 12px arial, sans-serif;
	color: #000000;
	background:rgba(255,255,255,0.30); /* SEMI TRANSPARENT BACKGROUND */
	margin: 0px auto 0px auto;
	padding: 3px 10px 5px 10px;
	border-radius: 4px;
	display: inline-block;
	vertical-align: middle;
	}

#CaptchaDiv {
	color: #000000;
	font: normal 25px Impact, Charcoal, arial, sans-serif;
	font-style: italic;
	text-align: center;
	vertical-align: middle;
	background-color: #FFFFFF;
	user-select: none;
	display: inline-block;
	padding: 3px 14px 3px 8px;
	margin-right: 4px;
	border-radius: 4px;
	}

#CaptchaInput {
	border: #66CE4F 2px solid;
	margin: 3px 0px 1px 0px;
	width: 105px;
	}

#Captcha_Div {
	color: #000000;
	font: normal 25px Impact, Charcoal, arial, sans-serif;
	font-style: italic;
	text-align: center;
	vertical-align: middle;
	background-color: #FFFFFF;
	user-select: none;
	display: inline-block;
	padding: 3px 14px 3px 8px;
	margin-right: 4px;
	border-radius: 4px;
	}

#drawer_Captcha_Div {
	color: #000000;
	font: normal 25px Impact, Charcoal, arial, sans-serif;
	font-style: italic;
	text-align: center;
	vertical-align: middle;
	background-color: #FFFFFF;
	user-select: none;
	display: inline-block;
	padding: 3px 14px 3px 8px;
	margin-right: 4px;
	border-radius: 4px;
	}

#Captcha_Input {
	border: #66CE4F 2px solid;
	margin: 3px 0px 1px 0px;
	width: 105px;
	}


#vieworder_costs_container {
    border: #66CE4F 0px solid;
	margin: 3px 0px 1px 0px;
	width: 400px;
    float: right;
    display: block;

}

#vieworder_costs {
    border: #66CE4F 0px solid;
	margin: 3px 0px 1px 0px;
	width: 100%;
    float: right;
    display: flex;
    text-align: left;
}
#vieworder_costs_div1{
    border: #996600 0px solid;
	margin: 3px 0px 1px 0px;
	width: 60%;

}
#vieworder_costs_div2{
    border: #FFCC33 0px solid;
	margin: 3px 0px 1px 0px;
	width: 40%;
    text-align: center;

}

.label {
    width:100%;
}

.agree-term{
    display:inline-block;
    width:auto;
}

#terms_of_service_modal{

   }

#terms_of_service_modal .modal-dialog  {
    width: 40%;
    height: auto;
    padding: 25px;

}


/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: #fff;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #1977cc;
  border-top-color: #d1e6f9;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  -webkit-animation: animate-preloader 1s linear infinite;
  animation: animate-preloader 1s linear infinite;
}
#preloader2 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: #ffffff82;
}

#preloader2:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #1977cc;
  border-top-color: #d1e6f9;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  -webkit-animation: animate-preloader 1s linear infinite;
  animation: animate-preloader 1s linear infinite;
}
@-webkit-keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}



/* add new ads  image style */

.new-ad-img-wrap {
    position: relative;
    display: inline-block;
    border: 0px red solid;
    font-size: 0;

}
.new-ad-img-wrap img {
    width: 200px;
    height: 100px;
    border-radius: 5px;

}

.new-ad-img-wrap .close {
    position: absolute;
    top: 2px;
    right: 2px;
    z-index: 100;
    background-color: #FFF;
    padding: 7px 5px 7px 5px;
    color: #CC0000;
    font-weight: bold;
    cursor: pointer;
    opacity: .2;
    text-align: center;
    font-size: 22px;
    line-height: 10px;
    border-radius: 50%;
}
.new-ad-img-wrap:hover .close {
    opacity: 1;
}


/* خاص بالقوائم المنسدلة عند اضافة اعلان او تحرير اعلان */


#brand_id, #model_id, #variation_id, #color_id{
  direction: ltr;
  text-align: left;
}

#brand_id option, #model_id option, #variation_id option, #color_id option {
  direction: ltr;
  text-align: left;
}

/* Responsive Header Styles */
@media (max-width: 992px) {
    .navbar > .container-fluid {
        width: 100% !important;
    }

    .navbar-brand {
        width: 180px !important;
        margin-right: auto;
    }

    .eWtySv {
        display: none !important;
    }

    .cml-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }
  /*
    .beta-notice {
        top: 50px;
        left: 50%;
        transform: translateX(-50%) rotate(0deg);
        font-size: 12px;
        padding: 3px 8px;
    }

    html[dir="rtl"] .beta-notice {
        right: auto;
        left: 50%;
        transform: translateX(-50%) rotate(0deg);
    }

    .send-us-note-container {
        margin-top: 10px !important;
        width: 100%;
    }
}  */
/* Ribbon Style Beta Notice */


/* Pulsing animation for attention */
@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(76, 175, 80, 0.6); }
    50% { box-shadow: 0 4px 20px rgba(76, 175, 80, 0.9); }
    100% { box-shadow: 0 4px 15px rgba(76, 175, 80, 0.6); }
}

/* For larger screens */
@media (min-width: 768px) {
    .beta-notice {
        top: 100px;
        left: 120px;
        transform: none;
        padding: 8px 15px;
        border-radius: 5px;
        animation: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    }

    html[dir="rtl"] .beta-notice {
        right: 115px;
        left: auto;
    }
}

/* Adjust navbar spacing for mobile */
@media (max-width: 767px) {
    .navbar {
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    .navbar-expand-lg .navbar-collapse {
        margin-top: 10px;
        padding: 10px;
        background: #f8f9fa;
        border-radius: 5px;
    }

    .col-md-4.navbar-nav {
        width: 100%;
        margin-top: 10px;
    }

    .navbar-nav .btn-success {
        margin-left: 10px !important;
        margin-right: 10px !important;
    }

    .cml-icons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .cml-icons li {
        margin: 5px;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        width: 120px !important;
        height: auto !important;
    }

    .col-md-1:last-child {
        display: none; /* Hide QR and flags on very small screens */
    }

    .dropdown-menu {
        position: absolute !important;
        z-index: 1050 !important;
    }
}

/* Improved mobile navigation */
.mobile-nav-toggle {
    display: none;
}

@media (max-width: 992px) {
    .mobile-nav-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1000;
    }

    .navbar-collapse {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        padding: 20px;
        transition: left 0.3s ease;
        z-index: 1050;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        overflow-y: auto;
    }

    .navbar-collapse.show {
        left: 0;
    }

    .navbar-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
    }

    .navbar-backdrop.show {
        display: block;
    }
}

/* Better touch targets for mobile */
.nav-link, .dropdown-item, .btn {
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* Improve form accessibility on mobile */
input, textarea, select {
    font-size: 16px !important; /* Prevents iOS zoom */
}

/* Better dropdowns for mobile */
.dropdown-menu {
    max-height: 70vh;
    overflow-y: auto;
}

/* Responsive modal */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 10px;
        width: auto !important;
    }
}

/* Fix RTL issues on mobile */
html[dir="rtl"] .mobile-nav-toggle {
    left: 15px;
    right: auto;
}

html[dir="rtl"] .navbar-collapse {
    right: -100%;
    left: auto;
}

html[dir="rtl"] .navbar-collapse.show {
    right: 0;
    left: auto;
}


/* Prevent body scroll when mobile nav is open */
body.no-scroll {
    overflow: hidden;
}

/* Mobile categories menu */
.mobile-categories {
    margin: 15px 0;
}

.mobile-categories .list-group-item {
    border: none;
    border-bottom: 1px solid #eee;
    padding: 12px 15px;
}

.mobile-categories .list-group-item:last-child {
    border-bottom: none;
}

/* Better spacing for mobile */
@media (max-width: 768px) {
    .gap-3 {
        gap: 1rem !important;
    }

    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Accessibility improvements */
@media (hover: hover) {
    .nav-link:hover, .dropdown-item:hover {
        background-color: rgba(0,0,0,0.05);
    }
}




