body {
    background-color: #f8f9fa;
    color: #212529;
    font-family: Arial, sans-serif;
  }
  .card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .card:hover {
    transform: scale(1.02);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
  }
  .card.completed {
    background-color: #e9ecef;
    text-decoration: line-through;
    color: #6c757d;
  }
  .btn-primary {
    background-color: #0d6efd;
    border: none;
  }
  .btn-primary:hover {
    background-color: #0b5ed7;
  }
  .task-category {
    font-size: 0.9rem;
    font-weight: bold;
    color: #0d6efd;
  }
  .nav-tabs .nav-link {
    color: #0d6efd;
  }
  .nav-tabs .nav-link.active {
    background-color: #e9ecef;
    border-color: #dee2e6 #dee2e6 #f8f9fa;
  }
  .modal-content {
    border-radius: 10px;
  }
  .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 5px rgba(13, 110, 253, 0.5);
  }
  .subtask-list {
    margin-right: 20px;
  }
  .subtask-progress {
    height: 5px;
  }
  .status-badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
  }
  .status-new { background-color: #cff4fc; color: #055160; }
  .status-in-progress { background-color: #fff3cd; color: #664d03; }
  .status-in-review { background-color: #e2e3e5; color: #41464b; }
  .search-bar {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
  }
  .recurring-task {
    border-right: 4px solid #17a2b8;
    transition: transform 0.2s;
}

.recurring-task:hover {
    transform: translateX(-5px);
}

.stats-card {
    transition: all 0.3s;
    border: 1px solid #dee2e6;
}

.stats-card:hover {
    background-color: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.stats-card h3 {
    color: #0d6efd;
    font-weight: 600;
}

.approval-settings {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

#analytics .card {
    height: 100%;
    transition: all 0.3s;
}

#analytics .card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#analytics canvas {
    width: 100% !important;
}

.recurring-details {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
}

.recurring-details p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.nav-tabs .nav-link {
    padding: 0.75rem 1.25rem;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    background: #fff;
    border-bottom: 3px solid #0d6efd;
}

.list-group-item-action:hover {
    background-color: #f8f9fa;
    transform: translateX(-5px);
    transition: all 0.2s;
}

.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* מניעת גלילה אופקית */
}

.container {
  max-width: 100%; /* וידוא שהאלמנט לא גורם לגלילה מיותרת */
}

.tab-pane:not(.active) {
  display: none !important; /* הסתרה מוחלטת של תוכן לא פעיל */
}
.stats-card, .recurring-task {
  max-height: 300px; /* גובה מקסימלי */
  overflow: hidden; /* מניעת גלילה פנימית */
}
#analytics canvas {
  width: 100% !important;
  height: 300px !important; /* גובה מותאם */
}
#analytics canvas {
  width: 100% !important;
  height: 300px !important;
}
#teamWorkloadChart, #taskPerformanceChart {
  height: 200px !important;
  width: 100% !important;
}
.task-title {
  text-decoration: none;
  color: #000;
}

.task-title h5 {
  color: #000;
}

.task-title:hover {
  color: #000;
  text-decoration: none;
}
.subtask-row {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.toggle-subtask-icon {
  cursor: pointer;
  margin-right: 5px;
  transition: transform 0.3s;
}
.toggle-subtask-icon.open {
  transform: rotate(90deg);
}
.files-cell {
  max-width: 200px;
  padding: 8px;
}

.file-item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-link {
  color: #007bff;
  text-decoration: none;
  font-size: 0.9em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  background-color: #f8f9fa;
  transition: all 0.2s ease;
}

.file-link:hover {
  background-color: #e9ecef;
  text-decoration: none;
  transform: translateY(-1px);
}

.text-muted {
  color: #6c757d;
  font-size: 0.9em;
}
.notes-popup-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 15px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  z-index: 1000;
  min-width: 300px;
}

.notes-popup ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.notes-popup ul li {
  padding: 5px;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
}

.notes-popup button {
  margin-top: 10px;
  display: block;
  width: 100%;
  background: #007bff;
  color: white;
  border: none;
  padding: 5px;
  cursor: pointer;
  text-align: center;
  border-radius: 4px;
}
/* רקע אפור שמכסה את כל המסך */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* תוכן הפופ-אפ */
.popup-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 300px;
    max-width: 500px;
    position: relative;
}

/* כפתור סגירה */
.close-popup {
    margin-top: 15px;
    background: red;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 5px;
}

.close-popup:hover {
    background: darkred;
}
/* רקע אפור שמכסה את כל המסך */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* תוכן הפופ-אפ */
.popup-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  min-width: 300px;
  max-width: 500px;
  position: relative;
}

/* כפתור סגירה */
.close-popup {
  margin-top: 15px;
  background: red;
  color: white;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 5px;
}

.close-popup:hover {
  background: darkred;
}
.completed-task-card {
  background-color: #e0e0e0;
  background-image: repeating-linear-gradient(
    45deg,
    #d0d0d0,
    #d0d0d0 10px,
    #e0e0e0 10px,
    #e0e0e0 20px
  );
}
