.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal iframe {
  width: 100%;
  height: 95vh;         /* or 100% if you want full height */
  border: none;
  display: block;
}

.modal-content.video-mode {
  width: 100%;
  max-width: 1200px;
}

.modal video {
  width: 100%;
  height: auto;
  max-height: 80vh;
}

.task-section {
  margin-bottom: 2rem;
}

.task-section h3 {
  margin-bottom: 1rem;
  font-weight: 500;
  color: #000000;
}

.task-card {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 14px;
  line-height: 1.4;
  color: #000000de;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.task-card p {
  margin: 0;
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  cursor: pointer;
  background-color: #ffffff;
}

.task-header h2 {
  margin: 0;
  font-weight: 500;
}

.toggle-icon {
  font-size: 0.75rem;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
  color: #444;
}

.task-body {
  display: none;
  padding: 0 1rem 1rem 1rem;
}

.task-card.expanded .task-body {
  display: block;
}

.task-card.expanded .toggle-icon {
  transform: rotate(180deg);
}

.task-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-button {
  background-color: #222;
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.tab-button:hover {
  background-color: #444;
}

.tab-button.active {
  background-color: #eaaa02;
  color: black;
  font-weight: bold;
}

.task-header:hover {
  background-color: #e2e2e2;
  border-radius: 6px;
  transition:background-color 0.2s ease
}

.task-search {
  width: 100%;
  max-width: 400px;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  background-color: #f5f5f5;
  color: #000;
  margin-right:auto
}

.task-files {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-file-button {
  display: inline-block;
  padding: 6px 12px;
  background-color: #eaaa02;
  color: #000;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
}

.task-file-button:hover {
  background-color: #f2c94c;
}

.task-attachments {
  margin-top: 10px;
}

.attachment-button {
  background-color: #444;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 10px;
}

.attachment-button:hover {
  background-color: #666;
}
