/*
 * 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 --- */
.rtl { direction: rtl; text-align: right; }
.ltr { direction: ltr; text-align: left; }

/* 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: #f6f7fb; /* subtle app background */
}

.app-main {
  flex: 1;
  padding: 24px;
}

/* --- Sidebar --- */
.app-sidebar {
  width: 280px;
  background: #ffffff;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}

.app-sidebar__inner {
  padding: 20px 14px;
}

/* Brand */
.app-sidebar__brand {
  padding: 6px 10px 14px;
}

.app-sidebar__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.app-sidebar__logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.14);
  color: #4f46e5;
  font-weight: 700;
  font-size: 14px;
}

.app-sidebar__brand-text {
  color: #0f172a;
  font-weight: 650;
}

/* 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;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;

  color: rgba(15, 23, 42, 0.75);
  font-weight: 520;
}

.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(15, 23, 42, 0.04);
  color: #0f172a;
}

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

/* Active pill like screenshot */
.app-sidebar__link.is-active {
  background: rgba(99, 102, 241, 0.10);
  color: #111827;
}

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

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



/* 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 {
  height: 56px;
  background-color: #fff;
  border-bottom: 1px solid #e5e7eb;
}

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

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



/* 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 */