@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap');
*{
    box-sizing: border-box;
}
html,
body {
  font-family: "Cairo", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings:"slnt" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
    margin: 0;
    padding: 0;
}

/* .btn {
    line-height: 1 !important;
} */
.inpu:focus, .input:focus-within{
    outline: none;
}
input:focus,
select:focus {
    outline: none;
}
select:focus-within {
    outline: none;
}

input::placeholder {
    padding-top: 10px;
}
.ql-editor{
 font-family: "Tajawal", sans-serif;
 scroll-behavior: smooth;
}
.ql-picker-options{
    font-size: 8px !important;
}
.ql-snow .ql-picker-options .ql-picker-item{
    padding-top: 3px !important;
    padding-bottom: 3px !important;
}
.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{
    right: -15px !important;
}
/* Header Main */
.content-wrapper{
    position: relative;
}
.content-wrapper header{
border: 1px solid var(--gray-4);
height: 148px;
}
.links-bottom-area{
    position: absolute;
    top: 94px;
    right: 30px;
    width: calc(100% - 50px);
}
/* End */
/* animation for list items */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.slideIn-animation {
    animation: slideIn 0.3s ease forwards;
}
.list-item-ddl {
    position: relative;
}

.dropdown:focus-within .list-item-ddl,
.dropdown:focus-within .user-menu-item {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
    animation-delay: calc(var(--item-index) * 0.05s);
}

.badge-indicator {
    position: absolute;
    top: 2px;
    left: 4px;
    background: var(--orange-1);
    padding-top: 4px;
    color: var(--cb);
    border-radius: 9999px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 500;
}
.sidebar {
    transition: width 0.3s ease;
}
/* End */

.tooltip::before {
    font-size: 10px;
    padding: 8px;
    width: 120px;
}

@media (max-width: 1024px) {
    #sidebar {
        position: fixed;
        right: -268px;
        top: 0;
        z-index: 1000;
        height: 100dvh;
        transition: right 0.3s ease;
    }
    #sidebar.active {
        right: 0;
    }
    .sidebar-toggle{
        display: none !important;
    }
}

/* Helper Tabs Dynamic */

.tabs.tabs-order-info{
    justify-content: center;
    column-gap: 10px;
}
.tabs.tabs-order-info input.tab-collapse{
    flex: 1 1 auto;
    height: 36px;
    padding-top: 4px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 12px;
}
.tabs.tabs-order-info input.tab-collapse:checked {
  background-color: var(--color-primary);
  color: var(--cw);
  border-color:  var(--color-primary);
}


/* google maps */
 .map-container {
      width: 100%;
      height: 400px;
      position: relative;
      border-radius: 0.5rem;
      overflow: hidden;
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }
    
    .map-canvas {
      width: 100%;
      height: 100%;
    }
    
    .map-controls {
      position: absolute;
      bottom: 5rem;
      right: 12px;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      z-index: 10;
    }
    
    .map-control-btn {
      width: 40px;
      height: 40px;
      background: white;
      border: 1px solid #d1d5db;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
      transition: all 0.2s;
    }
    
    .map-control-btn:hover:not(:disabled) {
      background: #f3f4f6;
      transform: scale(1.05);
    }
    
    .map-control-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }
    
    .map-control-btn svg {
      width: 1.2rem;
      height: 1.2rem;
    }
    
    .loading-spinner {
      border: 3px solid #f3f4f6;
      border-top: 3px solid #3b82f6;
      border-radius: 50%;
      width: 1.5rem;
      height: 1.5rem;
      animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
/* end */