/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
/* @import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap');

:root {
  --app-font: "Rubik", system-ui, -apple-system, "Segoe UI",
              Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  font-family: var(--app-font);
}

html, body {
  font-family: "Rubik", system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}


html[lang="ar"],
body:lang(ar) {
  font-family: "Rubik", "Segoe UI", Tahoma, Arial, sans-serif;
}

h1, h2, h3, h4, h5 {
  font-weight: 600;
} */



 /* --- Layout shell --- */
:root {
  --app-sidebar-width: 280px;
  --app-sidebar-collapsed-width: 76px;
  --app-topbar-height: 64px;
  --app-surface: #f4f7fb;
  --app-sidebar-surface: #ffffff;
  --app-sidebar-border: rgba(2, 31, 63, 0.1);
  --app-sidebar-shadow: 10px 0 30px rgba(2, 31, 63, 0.06);
}

html {
  min-height: 100%;
}

body.app-body {
  min-height: 100vh;
  margin: 0;
  color: #0f172a;
  background:
    linear-gradient(180deg, rgba(2, 31, 63, 0.04), rgba(255, 255, 255, 0) 260px),
    var(--app-surface);
  font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.rtl { direction: rtl; text-align: right; }
.ltr { direction: ltr; text-align: left; }

.bg-client-review-subtle {
  background-color: rgba(253, 126, 20, 0.16) !important;
}

.text-client-review {
  color: #fd7e14 !important;
}

.border-client-review {
  border-color: #fd7e14 !important;
}

/* body {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
} */

/* Optional: Ensure headings use the bold weights */
/* h1, h2, h3, h4, h5, h6 {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 700;
} */



/* --- Autocomplete Organization --- */

/* .autocomplete-results {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-top: 5px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
} */

/* .autocomplete-results .list-group-item {
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #1e293b;
  transition: background 0.2s;
} */

.autocomplete-results .list-group-item:hover {
  background-color: #f1f5f9;
  color: #3b82f6;
}

/* Scrollbar styling for a cleaner look */
.autocomplete-results::-webkit-scrollbar {
  width: 6px;
}
.autocomplete-results::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}



/* Pagination Styling */
/* app/assets/stylesheets/pagination.scss */
.digg_pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: default;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  direction: rtl;

  a, span, em {
    padding: 0.4em 0.9em;
    display: block;
    text-decoration: none;
    border-radius: 8px; /* Modern rounded corners */
    font-size: 0.9rem;
    transition: all 0.2s ease-in-out;
  }

  /* Normal Page Links */
  a {
    color: #1e293b; /* Navy */
    background: #f8fafc;
    border: 1px solid #e2e8f0;

    &:hover, &:focus {
      background: #f1f5f9;
      border-color: #cbd5e1;
      color: #3b82f6; /* Accent Blue */
    }
  }

  /* Current Page */
  .current {
    font-style: normal;
    font-weight: 700;
    background: #1e293b; /* Navy */
    color: white;
    border: 1px solid #1e293b;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }

  /* Disabled Prev/Next */
  .disabled {
    color: #cbd5e1;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    cursor: not-allowed;
  }

  /* Gap/Ellipsis */
  .gap {
    color: #94a3b8;
  }

  /* Page Info Box (Optional) */
  .page_info {
    margin-left: 15px;
    font-size: 0.85rem;
    color: #64748b;
  }
}



.app-shell {
  display: flex;
  min-height: 100vh;
  background: transparent;
}

.app-shell--public {
  display: block;
}

.app-shell--with-sidebar {
  min-width: 0;
}

.app-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

.app-main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 24px;
}

/* --- Sidebar --- */
.app-sidebar {
  width: var(--app-sidebar-width);
  flex: 0 0 var(--app-sidebar-width);
  background:
    linear-gradient(180deg, rgba(2, 31, 63, 0.06), rgba(255, 255, 255, 0) 34%),
    var(--app-sidebar-surface);
  border-left: 1px solid var(--app-sidebar-border);
  box-shadow: var(--app-sidebar-shadow);
  transition: flex-basis 0.25s ease, width 0.25s ease, transform 0.25s ease;
}

.app-sidebar__inner {
  height: 100%;
  padding: 18px 14px;
  overflow-y: auto;
}

/* Brand */
.app-sidebar__brand {
  margin-bottom: 12px;
  padding: 8px 8px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.app-sidebar__brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.app-sidebar__logo-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(11, 79, 108, 0.12);
  overflow: hidden;
}

.app-sidebar__logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.app-sidebar__brand-image {
  display: block;
  height: 46px;
  width: auto;
  object-fit: contain;
}

.app-sidebar__brand-image--collapsed {
  display: none;
}

.app-sidebar__brand-copy {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}

.app-sidebar__brand-text {
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.app-sidebar__brand-subtitle {
  color: rgba(15, 23, 42, 0.52);
  font-size: 0.74rem;
  font-weight: 600;
  margin-top: 4px;
  white-space: nowrap;
}

/* Section labels */
.app-sidebar__section-label {
  margin: 14px 10px 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(15, 23, 42, 0.45);
  text-transform: uppercase;
  list-style: none;
}

/* Links */
.app-sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(15, 23, 42, 0.75);
  font-weight: 600;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.app-sidebar__link i {
  font-size: 16px;
  width: 18px;
  text-align: center;
  color: rgba(15, 23, 42, 0.55);
}

.app-sidebar__link:hover {
  background: rgba(11, 79, 108, 0.07);
  color: #0f172a;
}

.app-sidebar__link:hover i {
  color: rgba(15, 23, 42, 0.75);
}

/* Active pill like screenshot */
.app-sidebar__link.is-active {
  background: #0b4f6c;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(11, 79, 108, 0.18);
}

.app-sidebar__link.is-active i {
  color: #ffffff;
}

/* Optional: make the nav breathe a bit */
.app-sidebar__nav .nav-item {
  list-style: none;
}

.sidebar-collapsed .app-sidebar {
  width: var(--app-sidebar-collapsed-width);
  flex-basis: var(--app-sidebar-collapsed-width);
}

.sidebar-collapsed .nav-text,
.sidebar-collapsed .app-sidebar__brand-copy {
  display: none;
}

.sidebar-collapsed .app-sidebar__brand {
  padding-inline: 0;
}

.sidebar-collapsed .app-sidebar__brand-link,
.sidebar-collapsed .app-sidebar__link {
  justify-content: center;
}

.sidebar-collapsed .app-sidebar__brand-image--expanded {
  display: none;
}

.sidebar-collapsed .app-sidebar__brand-image--collapsed {
  display: block;
  height: 38px;
}

.sidebar-collapsed .app-sidebar__logo-mark {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}



/* Organizations Map Styling (START) */
/* Map lefend styling */
.map-legend {
  background: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  font-size: 13px;
  line-height: 1.6;
  direction: rtl;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
}

.leaflet-div-icon.org-marker {
  background: transparent;
  border: none;
}

.org-marker-icon {
  font-size: 26px;
  line-height: 26px;
  transform: translate(-50%, -100%);
  text-shadow: 0 2px 4px rgba(0,0,0,.4);
}
/* Organizations Map Styling (END) */



/* Top Bar Styling (START) */
.app-topbar {
  min-height: var(--app-topbar-height);
  background-color: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--app-sidebar-border);
  box-shadow: 0 1px 0 rgba(2, 31, 63, 0.03);
  backdrop-filter: blur(12px);
}

.app-topbar .dropdown-menu {
  min-width: 200px;
}

.app-topbar img {
  object-fit: cover;
}
/* Top Bar Styling (END) */

.app-sidebar-backdrop {
  display: none;
}

@media (max-width: 991.98px) {
  body.app-body--authenticated {
    background: var(--app-surface);
  }

  .app-shell--with-sidebar {
    display: block;
  }

  .app-sidebar {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 1040;
    width: min(var(--app-sidebar-width), 86vw);
    max-width: 320px;
    height: 100vh;
    transform: translateX(100%);
  }

  .sidebar-collapsed .app-sidebar {
    width: min(var(--app-sidebar-width), 86vw);
    flex-basis: var(--app-sidebar-width);
  }

  .sidebar-mobile-open .app-sidebar {
    transform: translateX(0);
  }

  .sidebar-mobile-open .app-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1030;
    border: 0;
    background: rgba(2, 31, 63, 0.36);
  }

  .app-main {
    padding: 16px;
  }
}



/* Consulting Tickets */
.timeline {
  list-style: none;
  padding: 0;
  position: relative;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: #ced4da;
  border-radius: 50%;
  margin-top: 6px;
}

.timeline-item.active .timeline-dot {
  background: #0d6efd;
}

.timeline-item.muted {
  opacity: 0.5;
}
/* End of Consulting Tickets */
