/*!
 * Bootstrap v3.3.6 (http://getbootstrap.com)
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 */
/* ==================== GLOBAL STYLES ==================== */
body {
  font-family: 'Heebo';
  background-color: #f8f9fa;
  color: #333;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Heebo';
}

* {
  direction: rtl;
}


.page-layout {
  display: flex;
  overflow: hidden;
}

.dashboard-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-right: auto;
  margin-left: auto;
  width: 75vw;
  min-height: 100vh;
  /* background: #f8f9fa; */
  padding: 20px;
  overflow-y: auto;
}

/* .containerPage {
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.containerPage::-webkit-scrollbar {
  display: none;
} */

/* ==================== SIDEBAR MENU ==================== */
.sidebar-menu {
  /* position: fixed; */
  z-index: 1055;
  width: 250px;
  height: 100vh;
  background: #F5F5F2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  direction: rtl;
  text-align: right;
  transition: width 0.3s ease, padding 0.3s ease;
  overflow: hidden;
}

/* Mobile close button - hidden by default */
.mobile-close-btn {
  display: none;
  position: absolute;
  top: 20px;
  left: 20px;
  background: transparent;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 1080;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.mobile-close-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.sidebar-menu.collapsed {
  width: 66px;
  padding: 1.25rem 0;
}

.sidebar-toggle {
  align-self: end;
  cursor: pointer;
  transition: transform 0.3s ease, align-self 0.3s ease;
  flex-shrink: 0;
}

.sidebar-menu.collapsed .sidebar-toggle {
  transform: rotate(180deg);
  align-self: center;
  /* margin-top: 25px; */
}

.user-section {
  text-align: center;
  position: relative;
  transition: opacity 0.2s ease, height 0.3s ease, margin 0.3s ease;
  overflow: hidden;
}

.sidebar-menu.collapsed .user-section {
  opacity: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}

/* .user-avatar {
  position: relative;
  display: inline-block;
}

.user-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
} */

/* .notification-badge {
  position: absolute;
  top: 0;
  right: -5px;
  color: #fff;
  font-size: 12px;
  border-radius: 50%;
} */

.top-sideBar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.user-info h4 {
  margin: 10px 0 5px;
  font-size: 18px;
  font-weight: 500;
}

.user-info p {
  color: #333333;
  font-size: 14px;
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow: hidden;
  transition: opacity 0.2s ease, height 0.3s ease, margin 0.3s ease;
}

.sidebar-menu.collapsed .menu-links {
  opacity: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}

.menu-link {
  background: none;
  border: none;
  text-align: right;
  cursor: pointer;
  padding: 8px;
  color: #333333;
  font-family: 'Heebo';
  font-weight: 500;
  font-size: 16px;
  white-space: nowrap;
}

.menu-link .menu-text {
  transition: opacity 0.2s ease;
}

.menu-link:hover,
.menu-link.active {
  background: #ECECE5;
  width: 200px;
  height: 40px;
  border-radius: 10px;
}

.logout {
  font-family: 'Heebo';
  font-weight: 400;
  font-size: 14px;
  text-align: right;
  color: #333333;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.logout-container {
  border-bottom: 1px solid #D2D2C680;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10px;
  transition: justify-content 0.3s ease;
}

.sidebar-menu.collapsed .logout-container {
  justify-content: center;
}

.logos {
  text-align: center;
}

.logos img {
  height: 116px;
  width: 116px;
  object-fit: contain;
  transition: height 0.3s ease, width 0.3s ease;
  /* margin: -2rem 0; */
}

.sidebar-menu.collapsed .logos img {
  height: 56px;
  width: 56px;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
  /*margin-right: 250px;*/
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  height: 100vh;
}

.page-header {
  margin-bottom: 24px;
  border-bottom: none;
}

.page-title {
  font-size: 2.5rem;
  font-weight: bolder;
  color: #333;
  margin: 0 0 8px 0;
  text-align: right;
  letter-spacing: 0.5px;
}

.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
  padding: 0px;
}

.page-subtitle {
  font-size: 0.95rem;
  margin: 0;
  text-align: right;
}

/* ==================== HOME HEADER & SEARCH ==================== */
.home-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.search-toggle-btn {
  background: #FFFFFF;
  border-radius: 45px;
  min-width: 343px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 16px;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0px 0px 16px 0px #00000040;
}

.search-toggle-btn:hover {
  border-color: #999999;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.search-placeholder {
  font-family: 'Heebo', sans-serif;
  font-size: 14px;
  color: #999999;
  user-select: none;
}

.search-panel {
  background: #F6F6F2;
  border-radius: 12px;
  border: none;
  box-shadow: -7px 10px 12px 0px #00000012;
  padding: 20px;
  /* margin-bottom: 20px; */
  /* animation: slideDown 0.3s ease; */

}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-panel-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.search-input {
  width: 100%;
  padding: 8px 40px 8px 15px;
  border: none;
  border-radius: 30px;
  font-size: 0.9rem;
  direction: rtl;
  box-sizing: border-box;
  background: white;
  margin: 0px 0px 0px;
  height: 32px;
}




.search-input:focus {
  border-color: #1560A0;
}

.search-input::placeholder {
  color: #999999;
}

.search-close-btn {
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.search-close-btn:hover {
  background: #F5F5F5;
}

.search-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid #E0E0E0;
  padding-bottom: 8px;
}

.search-tab {
  background: transparent;
  border: none;
  padding: 8px 16px;
  font-family: 'Heebo', sans-serif;
  font-size: 14px;
  color: #666666;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.search-tab:hover {
  color: #1560A0;
}

.search-tab.active {
  color: #1560A0;
  border-bottom-color: #1560A0;
  font-weight: 500;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: #F5F5F5;
}

.search-result-item svg {
  flex-shrink: 0;
}

.result-info {
  flex: 1;
  text-align: right;
}

.result-name {
  font-family: 'Heebo', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #333333;
  margin-bottom: 4px;
}

.result-location {
  font-family: 'Heebo', sans-serif;
  font-size: 14px;
  color: #666666;
}

.result-distance {
  font-family: 'Heebo', sans-serif;
  font-size: 14px;
  color: #999999;
  flex-shrink: 0;
}

.fullcalendar-container {
  background: white;
  border-radius: 20px;
  border: 0.68px solid #D5D5D5;
}

.calendar-section {
  width: 43%;
  background: #ECECE580;
  border-radius: 20px;
  padding: 25px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.section-header h3 {
  font-family: 'Heebo';
  font-size: medium;
  font-weight: 900;
  color: #333333;
  margin: 0;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  padding: 5px;
}

.current-month {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.new-event-btn {
  background: #3B82F6;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
}

/* FullCalendar Overrides */
.fc .fc-button {
  opacity: 1;
  background: none;
  color: #333333;
  border: none;
}

.fc .fc-button-primary:hover {
  background: none;
  border: none;
  color: #333333;
}

.fc .fc-button-primary:focus,
.fc-button:focus {
  box-shadow: none;
  background: none !important;
  border: none !important;
  color: #333333 !important;
}

.fc-toolbar-title {
  font-family: 'Heebo';
  font-weight: 500;
  font-size: 18px !important;
}

.fc .fc-toolbar.fc-header-toolbar {
  align-items: center !important;
  margin: 0.5rem 0.75rem !important;
}

.fc-col-header-cell-cushion {
  font-family: 'Heebo';
}

td:has(.fc-scroller-harness) {
  border: none !important;
}

.fc-scrollgrid {
  border-left: none !important;
}

.fc .fc-h-event {
  margin: 0 auto !important;
  width: 90%;
  border: none !important;
  border-radius: 0 !important;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc .fc-daygrid-event.fc-event-start {
  margin-left: 0 !important;
}

.fc .fc-daygrid-event.fc-event-end {
  margin-right: 0 !important;
}

.fc-daygrid-day:last-child .fc-daygrid-event.fc-event-end {
  margin-right: 0 !important;
}

.fc-daygrid-day:first-child .fc-daygrid-event.fc-event-start {
  margin-left: 0 !important;
}

.fc .fc-h-event.fc-event-start {
  border-top-right-radius: 30px !important;
  border-bottom-right-radius: 30px !important;
  margin-right: 2px;
}

.fc .fc-h-event.fc-event-end {
  border-top-left-radius: 30px !important;
  border-bottom-left-radius: 30px !important;
  margin-left: 2px;
}

.fc .fc-h-event.fc-event-start.fc-event-end {
  border-radius: 30px !important;
}

.fc-h-event .fc-event-title {
  text-overflow: ellipsis;
}

.fc .fc-daygrid-event-harness-abs {
  text-align: center;
}

.fc .fc-daygrid-event-harness {
  padding-bottom: 4px !important;
  display: flex;
  justify-content: center;
}

.fc-event {
  max-width: 100% !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-day-past {
  /* background-color: #F6F6F6 !important; */
}

.fc-col-header-cell {
  border-bottom: none !important;
}

.fc-theme-standard th,
.fc-theme-standard td {
  border-right: none !important;
}

.fc .fc-daygrid-day.fc-day-today {
  background: none !important;
}

.fc .fc-daygrid-day .fc-daygrid-day-number {
  display: block;
  text-align: center;
  margin: 4px auto 0 auto;
  font-weight: normal;
  width: fit-content;
}

.fc .fc-daygrid-day .fc-daygrid-day-number:hover {
  text-decoration: none;
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1560A0;
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  margin: 8px auto;
  padding-top: 6.5px;
}

/* Calendar Grid */
.calendar-grid {
  width: 100%;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  margin-bottom: 10px;
}

.weekday {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  padding: 10px 5px;
}

.calendar-days {
  display: grid;
  gap: 1px;
}

.calendar-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}

.calendar-day {
  min-height: 60px;
  background: #f8f9fa;
  border-radius: 4px;
  padding: 5px;
  position: relative;
  font-size: 12px;
}

.calendar-day.today {
  background: #E0F2FE;
  border: 2px solid #0EA5E9;
}

.calendar-day.other-month {
  opacity: 0.3;
}

.day-number {
  font-weight: 500;
  color: #333;
  display: block;
  margin-bottom: 3px;
}

/* Calendar Events */
.event-dot {
  background: #16A085;
  color: white;
  font-size: 8px;
  padding: 2px 4px;
  border-radius: 3px;
  margin-bottom: 2px;
  line-height: 1.2;
}

.event-dot.green {
  background: #16A085;
}

.event-dot.orange {
  background: #F59E0B;
}

.event-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.calendar-event-weekly.fc-h-event {
  background-color: #006455 !important;
}

.calendar-event-special.fc-h-event {
  background-color: #EBA220 !important;
}

.calendar-event-training.fc-h-event {
  background-color: #F7E3B2 !important;
}

.fc-h-event .fc-event-main {
  color: #ffffff !important;
  border-radius: 30px;
  height: 1rem;
  font-size: 11px;
  width: 85% !important;
  max-width: 100% !important;
  white-space: nowrap;
}

.calendar-event-training .fc-event-main {
  color: #333333 !important;
}

.calendar-event-weekly,
.calendar-event-special,
.calendar-event-training {
  border: none !important;
}

/* Calendar Legend */
.calendar-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  font-size: 14px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot.green {
  background: #16A085;
}

.legend-dot.orange {
  background: #F59E0B;
}

.legend-dot-weekly {
  background-color: #006455;
}

.legend-dot-user-group {
  background-color: #EBA220;
}

/* Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #D7D7D4;
  transition: 0.4s;
  border-radius: 12px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: #1560A0;
}

input:checked+.slider:before {
  transform: translateX(16px);
}

.my-activities {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.my-activities span {
  font-size: 14px;
}

.tableParticipants {
  border: 0px solid;
  border-radius: 16px;
  background-color: #ecece586;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* max-width: 1600px; */
  width: 100%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  padding: 24px 18px;
  table-layout: auto;
  /* overflow: hidden; */
  overflow-x: auto;
  overflow-y: auto;
  /* scrollbar-width: none; */
}

.tableParticipants table {
  width: 100%;
}

.tableParticipants.desktop-table thead.titlesTable {
  position: sticky;
  top: 0;
  z-index: 5;
  background-color: #e4e4dd;
}

.tableParticipants tbody tr td:first-child {
  border-radius: 10px;
}

.tableParticipants th,
.tableParticipants td {
  padding: 8px;
  text-align: right;
  white-space: nowrap;
  font-size: 16px;
}

.titlesTable {
  background-color: #e4e4dd9d;
  width: 100%;
  border-bottom: none !important;
}

.titlesTable tr:first-child,
.titlesTable th {
  border-bottom: none !important;
}

.titlesTable th:first-child {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  border-bottom: none !important;
}

.titlesTable th:last-child {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

.tbody,
td,
tfoot,
th,
thead,
tr {
  border-bottom: 2px solid #e4e4dd9d;
  /* border-radius: 5px; */
}


/* ==== search input ======= */

.filter-select,
.filter-date,
.filter-search {
  padding: 9px 16px;
  border: 1px solid var(--Border, #D9D9D9);
  border-radius: 45px;
  font-size: 16px;
  font-family: 'Heebo', sans-serif;
  background: white;
  color: #333;
  transition: all 0.2s;
  width: 100%;
  border-radius: 25px;
  height: 44px;
}

.input-with-icon {
  position: relative;
  /* width: 100%; */
}

.input-with-icon .filter-search {
  padding-right: 35px;
}

.search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  /* שלא יתפוס קליק */
}

/*  */
.tableParticipants {
  padding: 0;
  border-radius: 5px;
  scrollbar-width: thin;
  direction: ltr;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.tableParticipants table,
.tableParticipants .presence-table-header {
  direction: rtl;
}

.tableParticipants.desktop-table {
  max-height: 70vh;
  overflow-y: auto;
}

/* עיצוב סרגל גלילה (Webkit - Chrome, Edge, Safari) */
/* סרגל הגלילה עצמו */
.tableParticipants::-webkit-scrollbar {
  width: 8px;
  background-color: transparent;
}

/* המסלול של הגלילה (אופציונלי, כאן נשאר שקוף) */
.tableParticipants::-webkit-scrollbar-track {
  background: transparent;
}

/* "האגודל" (הפס שזז) - עם שקיפות */
.tableParticipants::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.tableParticipants::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.4);
}


/* filter by date */
.filter-date {
    display: flex;
    gap: 2px;
    justify-content: flex-end;
    padding-right: 10px;
    cursor: pointer;
    /* margin-left: 25px */
}

.date-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    /* width: 130px; */
}

.filter-date::-webkit-calendar-picker-indicator {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: auto;
    height: auto;
    color: transparent;
    background: transparent;
    cursor: pointer;
}

.placeholder-icon {
    position: absolute;
    right: 15px; 
    display: flex;
    align-items: center;
    pointer-events: none;
}

.filter-date::placeholder {
    padding-right: 25px; 
    color: #999;
}

.filter-clear-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: auto;
    left: 15px;
    border: none;
    background: white;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    padding: 0;
    line-height: 1;
}


/* ==================== MOBILE NAVBAR ==================== */
.mobile-navbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #F6F6F2;
  box-shadow: 0px 4px 10px 0px #0000000D;
  z-index: 1060;
  height: 69px;
}

.mobile-navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  height: 100%;
  direction: rtl;
}

.mobile-menu-toggle {
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-navbar-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.mobile-navbar-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Show mobile navbar only on mobile screens */
@media (max-width: 1199px) {
  .mobile-navbar {
    display: block;
  }
  
  /* Add padding to body to account for fixed navbar */
  body {
    padding-top: 60px;
  }
  
  /* Hide desktop header on mobile */
  .navbar-expand-xl {
    display: none !important;
  }
  
  /* Mobile sidebar styling - fullscreen overlay */
  .sidebar-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    z-index: 1070;
    padding: 60px 1.5rem 1.5rem;
  }
  
  /* Show close button on mobile */
  .sidebar-menu .mobile-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Hide desktop sidebar toggle on mobile */
  .sidebar-menu .sidebar-toggle {
    display: none;
  }
  
  /* Adjust page layout when sidebar is hidden on mobile */
  .page-layout {
    flex-direction: column;
  }
  
  .dashboard-container {
    width: 100%;
    margin: 0;
  }
  
  /* Overlay backdrop for mobile sidebar */
  .sidebar-menu.mobile-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }

  .menu-link {
    text-align: center;
  }

  .menu-link:hover, .menu-link.active {
    width: 100%;
  }
}


/* ==================== SIDEBAR MENU - FIX ==================== */
.sidebar-menu {
  position: fixed; /* שחרר מהערה - זה חייב להיות fixed */
  top: 0;
  right: 0; /* בגלל RTL */
  z-index: 1080; /* גבוה יותר מה-Navbar המובנה */
  width: 250px;
  height: 100vh;
  background: #F5F5F2;
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease;
}

/* כשהתפריט מכווץ בדסקטופ */
.sidebar-menu.collapsed {
  width: 66px;
}

/* הוספת Margin לתוכן הראשי כדי שלא יוסתר על ידי התפריט */
body:not(.sidebar-collapsed) .main-content {
  margin-right: 250px;
}

body.sidebar-collapsed .main-content {
  margin-right: 66px;
}

@media (max-width: 1199px) {
  .sidebar-menu {
    width: 100% !important; /* תופס את כל המסך במובייל */
    margin-right: 0 !important;
  }
  
  body .main-content {
    margin-right: 0 !important;
    padding-top: 70px; /* מקום ל-Mobile Navbar */
  }
}