.cursor-pointer {
  cursor: pointer;
}

body {
  font-family: 'CoconFont';
}

/* Prevent annoying scroll when dropdowns are open */
body.dropdown-open {
  overflow-anchor: none;
}

.page-item {
  cursor: pointer;
}

.header-title,
.nav-tabs .nav-overflow {
  white-space: nowrap;
}


.black-menu {
  color: #00000080;
  padding: 7px;
  font-size: 20px;
  border-radius: 50%;
}

.black-menu:hover {
  cursor: pointer;
  color: #000;
  transition: background-color 0.5s ease;
  background-color: rgba(0, 0, 0, 0.2);
}

ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.dropdown-menu {
  padding: 8px;
  border-radius: 0.5rem;
  border: none;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1050 !important;
  max-width: 100%;
  word-wrap: break-word;
}

.dropdown-item {
  border-radius: 6px;
  margin-top: 2px;
  margin-bottom: 2px;
}

.dropdown-item:focus,
.dropdown-item:hover {
  background-color: rgba(62, 164, 228, 0.2);
  border-radius: 6px;
}

@font-face {
  font-family: 'CoconFont';
  src: url('../fonts/cocon_next_arabic_light.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

.main-layout {
  height: 100vh;
  /* أو 100dvh للأجهزة الحديثة */
  display: flex;
  overflow: hidden;
}

.sidebar {
  height: 100%;
  flex-shrink: 0;
}

.main-content-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.main-content {
  flex-grow: 1;
  overflow-y: auto;
  overflow:hidden;
}

.main-content {
  width: 100%;
  margin-left: 250px;
  transition: margin-left 0.3s ease, width 0.3s ease;
}

/* لما تتسكر */
body:not(.collapsed) .main-content {
  margin-left: 250px;
  width: calc(100% - 250px);
}

body.collapsed .main-content {
  margin-left: 80px;
  width: calc(100% - 80px);
}

body.sidebar-transition .equal-height-col,
body.sidebar-transition .equal-height-card {
  transition: all 0.4s ease-in-out;
}


@media (max-width: 768px) {
  nav.sidebar {
    height: 100vh;
    transition: all 0.3s ease;
  }

  body.collapsed nav.sidebar {
    position: relative;
    transform: none !important;
    z-index: auto;
    height: 100%;
  }


  body:not(.collapsed) nav.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    z-index: 1050;
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    overflow: scroll;
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1040;
  }
}

@media (max-width: 768px) {
  .main-layout {
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
  }

  nav.sidebar {
    height: 100vh !important;
    /* ثبات كامل */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    overflow-y: auto;
    /* لو زاد طوله */
    background-color: #fff;
  }

  .main-content-wrapper {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .main-content {
    padding-bottom: 27px !important;
  }

}

.main-content {
  padding-bottom: 32px !important;
}


/* Smooth transitions for form steps */
.card {
  scroll-behavior: smooth;
}

/* Better form field spacing to prevent jumpiness */
.form-control, .form-select, .searchable-select {
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Prevent layout shift when validation messages appear */
.invalid-feedback {
  min-height: 1.25rem;
  margin-top: 0.25rem;
  display: block;
}

.main-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.6);
  color: #999595;
  padding: 12px 20px;
  font-size: 14px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px);
  z-index: 999;
  transition: all 0.3s ease;
}

body:not(.collapsed) .main-footer {
  margin-left: 250px;
  width: calc(100% - 250px);
}

body.collapsed .main-footer {
  margin-left: 80px;
  width: calc(100% - 60px);
}

@media (max-width: 768px) {
  .main-footer {
    width: 100% !important;
    font-size: 12px;
    padding: 10px;
  }
}

/* app.component.css */
.main-wrapper {
  position: relative;
  overflow-x: hidden;
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


.custom-switch-pink .form-check-input:checked {
  background-color: #e72f85;
  border-color: #e72f85;
}

/* Ensure dropdown selects always appear above Google Maps and other content */
.searchable-select .dropdown-menu.show,
.location-select-container .dropdown-menu.show {
  z-index: 10000 !important;
  position: absolute !important;
}

/* Additional mobile support for dropdowns */
@media (max-width: 768px) {
  .searchable-select .dropdown-menu.show,
  .location-select-container .dropdown-menu.show {
    z-index: 10001 !important;
  }
}

.section-label {
  background-color: #e3edfd; 
  font-size: 0.875rem;
  line-height: 1.2;
  border-radius: 999px; 
  padding: 1rem 2rem; 
  display: inline-block;
  text-align: center;
  box-shadow: none;
  border: none;
}

