/* General Lightbox Styles */
.MMLightBox {
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 16px;
  font-family: Arial, sans-serif;
  height: 700px !important;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: thin;
}

.FormOverViews {
  height: var(--screenheight);
  min-height: var(--screenheight);
  max-height: var(--screenheight);
  margin: 0 8px;
  padding: 10px;
  border-radius: 8px;
}

.MMLightBoxHeader {
  display: flex;
  justify-content: flex-end;
  cursor: pointer;
}

.FormsTabGroup {
  margin-top: 16px;
}

.tabcontent {
  padding: 1rem;
  font-family: 'Arial', sans-serif;
}


.tabcontent {
  padding: 20px;
}

.tabcontent {
  padding: 16px;
  background-color: #f7f7f7;
  border: 1px solid #dddddd;
  border-radius: 4px;
}

.customhtml-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.customhtml-table th,
.customhtml-table td {
  text-align: left;
  padding: 0.8rem;
  border: 1px solid #e0e0e0;
  font-size: 0.9rem;
}

.customhtml-table th {
  background-color: #f5f5f5;
  color: #333333;
  font-weight: bold;
}

.AddFile-Save {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
  width: 140px;
  height: 32px;
  box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12);
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  background-color: rgb(50, 174, 115);
  color: #FFFFFF;
}

.AttachmentTable {
  width: max-content;
  border-collapse: collapse;
}

// .file-upload-container {
//   width: 367px;
// 	height: 240px;
//   border-radius: 6px;
//   border: 1.75px dashed #FF4F7B;
//   background: #FFF0F2;
//   align-items: center;
//   justify-content: center;
//   display: flex;
// 	float: right;
// }

.file-upload-container.dragging {
  border-color: #007bff;
  background-color: #f1faff;
}

.upload-btn {
  color: #1A1A1ADE;
  font-family: Helvetica Neue;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  align-items: center;
  justify-content: center;
  display: flex;
  width: 362px;
  outline: none;
  padding-left: 100px;
}


.file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f1f1;
  padding: 8px;
  border-radius: 4px;
}

.file-name {
  color: #1A1A1ADE;
  font-family: Helvetica Neue;
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
}

.formbuttons {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #FFFFFF;
  margin-right: 20px;
  width: 120px;
  height: 32px;
  box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12);
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.attachmentbutton {
  width: 75px;
  border: 0.5px solid;
  color: var(--action-primary-default);
}

.close-btn {
  background: red;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  text-align: center;
  cursor: pointer;
  font-size: 16px;
  line-height: 24px;
}


.customhtml-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.customhtml-table tr:hover {
  background-color: #f1f1f1;
}

.customhtml-table td {
  color: #666666;
}

.gapdata {
  display: flex;
  padding: 10px 10px !important;
}

.purple {
  color: #b85bdf !important;
}

.green {
  color: green !important;
}

.mat-icon {
  font-size: 24px;
  color: #ff5722;
}

/* Task Details Section */
.task-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.task-header {
  font-size: 20px;
  font-weight: bold;
  color: #333333;
}

.space {
  padding-right: 10px !important;
}

.space1 {
  padding-right: 10px !important;
  padding: 5px !important;
  font-size: 15px !important;
}

.task-number,
.task-profile,
.task-status {
  font-size: 14px;
  color: #666666;
}

.task-description {
  font-size: 16px;
  color: #444444;
  font-weight: 501 !important;


}

.task-descriptionnew {
  font-size: 20px;
  color: #444444;
  font-weight: 502 !important;
  padding-right: 860px !important;
  color: #007ac6;
}

/* Activity Table */
.activity-container {
  margin-top: 16px;
}

.activity-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.activity-table td {
  border: 1px solid #dddddd;
  padding: 8px;
  font-size: 14px;
  color: #333333;
}

.activity-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Tabs Section */
.FormsTabGroup {
  margin-top: 16px;
}

.tabcontent {
  padding: 16px;
  background-color: #f7f7f7;
  border: 1px solid #dddddd;
  border-radius: 4px;
  height: 210px !important;
}

.customhtml-table {
  width: 100%;
  border-collapse: collapse;
}

.customhtml-table th,
.customhtml-table td {
  border: 1px solid #e0e0e0;
  padding: 8px;
  text-align: left;
}

.customhtml-table th {
  background-color: #f5f5f5;
  font-size: 14px;
  color: #444444;
}

.customhtml-table td {
  font-size: 13px;
  color: #333333;
}

/* Highlight the pending status */
.task-status {
  background-color: #ffcc00;
  /* Default background */
  color: #ffffff;
  /* Default text color */
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
}

.task-status[data-status="Completed"] {
  background-color: #28a745;
  /* Green for completed */
  color: #ffffff;
}

.task-status[data-status="Pending"] {
  background-color: #ffc107;
  /* Yellow for pending */
  color: #000000;
  /* Black text for better readability */
}

.task-status[data-status="Rejected"] {
  background-color: #dc3545;
  /* Red for rejected */
  color: #ffffff;
}

/* Table responsive design */
@media (max-width: 768px) {

  .activity-table,
  .customhtml-table {
    font-size: 12px;
  }

  .task-details {
    flex-direction: column;
    align-items: flex-start;
  }




  /* Lightbox Container */
  .lightBoxContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  // .lightBoxContainer-content {
  //   background-color: #fff;
  //   width: 70%;
  //   max-width: 900px;
  //   border-radius: 12px;
  //   padding: 20px;
  //   box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  //   position: relative;
  //   overflow: hidden;
  // }

  /* Header Section */
  .Lightboxhead {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
  }

  .crossicon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5em;
    color: #6e3ab6;
    cursor: pointer;
  }

  /* Drag and Drop File Upload Section */
  // .file-upload-container {
  //   border: 3px dashed #6e3ab6;
  //   padding: 20px;
  //   border-radius: 12px;
  //   text-align: center;
  //   background-color: #f9f9ff;
  //   transition: background-color 0.3s, border-color 0.3s;
  //   margin-bottom: 20px;
  // }

  .file-upload-container.dragging {
    background-color: #e8e8ff;
    border-color: #834dd0;
  }

  .editbutton {
    color: #FFFFFF;
    background-color: var(--action-primary-default);
    ;
  }

  .upload-btn {
    background-color: #6e3ab6;
    color: white;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    transition: background-color 0.3s;
  }

  .upload-btn mat-icon {
    margin-right: 8px;
  }

  .upload-btn:hover {
    background-color: #834dd0;
  }

  .file-name {
    display: block;
    margin-top: 15px;
    font-size: 1em;
    color: #555;
  }

  .remove-file {
    margin-top: 10px;
    background-color: #ed2531;
    color: white;
    padding: 8px 12px;
    font-size: 0.9em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
  }

  .remove-file:hover {
    background-color: #d11925;
  }

  /* Table Styles */
  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 1em;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
  }

  thead tr {
    background: linear-gradient(90deg, #834DD0 0%, #CD309E 51%, #6E3AB6 100%);
    color: white;
    text-align: left;
  }

  th,
  td {
    padding: 12px 15px;
    border: 1px solid #ccc;
    text-align: center;
  }

  tbody tr:nth-child(even) {
    background-color: #f8f8f8;
  }

  tbody tr:hover {
    background-color: #eee;
  }

  mat-icon {
    cursor: pointer;
    transition: transform 0.3s;
  }

  mat-icon:hover {
    transform: scale(1.1);
  }




  /* Upload Box */
  .upload-box {
    border: 2px solid #6e3ab6;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9ff;
    width: fit-content;
    margin: 20px auto;
    transition: background-color 0.3s, border-color 0.3s;
  }

  .upload-box:hover {
    background-color: #e8e8ff;
    border-color: #834dd0;
  }

  /* Upload Button */
  .upload-btn {
    background-color: #6e3ab6;
    color: white;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
  }

  .upload-btn:hover {
    background-color: #834dd0;
  }

  /* Upload Icon */
  .upload-icon {
    margin-right: 8px;
    color: green;
    font-size: 1.5em;
  }




  .tabcontent {
    padding: 20px;
  }

  .add-comments-btn {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
  }

  .add-comments-btn:hover {
    background-color: #45a049;
  }

  .comments-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
  }

  .comments-table th,
  .comments-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
  }

  .update-doc-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 10px;
    background-color: #f5f5f5;
    /* Light background for the container */
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .update-doc-btn {
    background-color: #6e3ab6;
    /* Purple color */
    color: white;
    font-weight: bold;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
  }

  .update-doc-btn:hover {
    background-color: #5b2d92;
    /* Darker purple on hover */
    transform: scale(1.05);
    /* Slight scale effect on hover */
  }

  .update-doc-btn:active {
    background-color: #4a2174;
    /* Even darker on click */
  }

  .tabcontent {
    padding: 1rem;
    font-family: 'Arial', sans-serif;
  }

  .add-comments-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background-color: #6200ea;
    color: #ffffff;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  .add-comments-btn:hover {
    background-color: #4e00ba;
  }

  .comment-box-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    z-index: 1000;
    width: 90%;
    max-width: 400px;
  }

  .comment-box-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #333333;
    text-align: center;
  }

  .comment-box-content textarea {
    width: 100%;
    border: 1px solid #cccccc;
    border-radius: 8px;
    padding: 0.8rem;
    font-size: 1rem;
    resize: none;
    margin-bottom: 1rem;
    font-family: 'Arial', sans-serif;
    transition: border-color 0.3s;
  }

  .comment-box-content textarea:focus {
    outline: none;
    border-color: #6200ea;
    box-shadow: 0 0 5px rgba(98, 0, 234, 0.5);
  }

  .comment-box-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
  }

  .comment-box-actions button {
    flex: 1;
    padding: 0.6rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  .comment-box-actions button[color="primary"] {
    background-color: #6200ea;
    color: #ffffff;
  }

  .comment-box-actions button[color="primary"]:hover {
    background-color: #4e00ba;
  }

  .comment-box-actions button[color="warn"] {
    background-color: #f44336;
    color: #ffffff;
  }

  .comment-box-actions button[color="warn"]:hover {
    background-color: #d32f2f;
  }

  .customhtml-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
  }

  .customhtml-table th,
  .customhtml-table td {
    text-align: left;
    padding: 0.8rem;
    border: 1px solid #e0e0e0;
    font-size: 0.9rem;
  }

  .customhtml-table th {
    background-color: #f5f5f5;
    color: #333333;
    font-weight: bold;
  }

  .customhtml-table tr:nth-child(even) {
    background-color: #f9f9f9;
  }

  .customhtml-table tr:hover {
    background-color: #f1f1f1;
  }

  .customhtml-table td {
    color: #666666;
  }

}