
:root {
  --main-accent: #255aab;
  --accent-darker: #255aab;
  --accent-gradient: #255aab; 
}

.logout{
  
    text-align: right;
    margin-top: -30px;
    padding-right: 11px;
    text-decoration: underline;
    cursor: pointer;
    color: blue;
}

/* Body and background */
html, body {
  min-height: 100vh;
  /* background: linear-gradient(135deg, #255aab 0%, #fde9fc 100%); */
  font-family: 'Segoe UI', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #333;
  animation: fadeinbg 2s ease-in-out;
}
@keyframes fadeinbg {
  from {background-position: left;}
  to {background-position: right;}
}

  /* FIXED TABLE HEADER */
/* ✅ FIXED TABLE HEADER */
.table-responsive {
  max-height: 350px;        /* scroll area height */
  overflow-y: auto;
  overflow-x: auto;
  /* position: relative; */
}

.card.no-rel{
  position: static !important; /* removes relative */
}
/* make table full width inside scroll container */
.table {
  width: 100%;
  margin-bottom: 0;
}

/* sticky header styling */
.tableHeader{
 position: sticky;
  top: 0;
  z-index: 5;
}
.table thead th {
 
  background-color: #255aab !important; /* match your header color */
  color: #fff !important;
}

/* fix header cell alignment */
.table thead th,
.table tbody td {
  white-space: nowrap;
  vertical-align: middle !important;
  color: #4a004a;
  text-align: center;
  border-top: 1px solid #f3ccef;
}


/* HEADER */
.logo-bar {
  background: #fff;
  margin-bottom: 1.2rem;
  /* box-shadow: 0 2px 12px #255aab; */
  text-align: center;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #fff;
  padding: 0.82rem 0;
  /* border-radius: 0 0 16px 16px; */
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  user-select: none;
  background-color:var(--main-accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-bar img {
  height: 38px;
  vertical-align: middle;
  margin-bottom: 4px;
  filter: drop-shadow(0 0 1px var(--main-accent));
}

/* CARD */
.auth-card {
  max-width: 410px;
  margin: auto;
  background: linear-gradient(135deg, #fff 80%, #fce9fb 100%);
  border-radius: 18px;
  box-shadow: 0 8px 32px #f6f2f6;
  padding: 2.3rem 1.5rem 1.5rem;
  animation: fadein .7s ease forwards;
  color: #3a003a;
}
@keyframes fadein {
  from {opacity: 0; transform: translateY(30px);}
  to {opacity: 1; transform: none;}
}
.section-fade {
  animation: fadein .7s ease forwards;
}

/* TAB BUTTONS */
.tab-btns > button {
  width: 50%;
  border-radius: 35px;
  font-weight: 600;
  /* box-shadow: 0 1px 6px #f9dafbf2; */
  transition: all 0.2s ease;
  letter-spacing: 0.4px;
  border: none;
}
.tab-btns > .btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  /* box-shadow: 0 0 10px #f8c3f9cc; */
}
.tab-btns > .btn-outline-primary {
  border: 2px solid var(--main-accent);
  color: var(--main-accent);
  background: transparent;
}
.tab-btns > .btn-outline-primary:hover,
.tab-btns > .btn-outline-primary:focus {
  background: var(--main-accent);
  color: white;
  /* box-shadow: 0 0 10px #f163f180; */
}

/* FORM CONTROLS & FOCUS */

.form-control {
  font-size: 1rem;
  border: 1.8px solid #255aab;
  border-radius: 10px;
  transition: all 0.25s ease-in-out;
  box-shadow: inset 0 1px 5px #f6f2f6;
}
.form-control:focus {
  border-color: var(--main-accent) !important;
  box-shadow: 0 0 6px 0.18rem #f6f2f6;
  background: #f3f7fb;
  outline: none;
  color: #3a003a;
}

/* BUTTONS */
.btn {
  font-weight: 600;
  letter-spacing: 0.2px;
  /* box-shadow: 0 2px 7px #f8c5f8ad; */
  border-radius: 30px;
  /* transition: background-color 0.3s ease, box-shadow 0.3s ease; */
  user-select: none;
}
.btn-primary,
.btn-success {
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  /* box-shadow: 0 4px 18px #f163f1a8; */
}
.btn-primary:hover,
.btn-success:hover,
.btn-warning:hover {
  background: var(--main-accent);
  filter: brightness(0.95);
  /* box-shadow: 0 6px 24px #d05ad09e; */
}
.btn-primary:focus,
.btn-success:focus,
.btn-warning:focus {
  /* box-shadow: 0 0 15px 0.3rem #f163f1cc; */
  outline: none;
}

/* SECTIONS */
#tasks-section, #information-section {
  max-width: 95%;
  margin: 2.5rem auto 0;
  border-radius: 16px;
  background: #fff;
  /* box-shadow: 0 6px 36px #f163f140; */
  animation: fadein .9s ease forwards;
}

/* TABLE */
/* .table {
  border-radius: 12px;
  overflow: hidden;
  background: #f3f7fb;
  border: 1.2px solid #f3f7fb;
}
.table thead th {
    white-space: nowrap;
  }
.table thead th, .table-light th {
  background: #255aab; 
  color:#fff;
  border-bottom: 2px solid #f3f7fb;
  font-weight: 700;
} */
/* .table-striped>tbody>tr:nth-of-type(odd)>* {
  background: #fde5fc;
} */
/* .table td, .table th {
  vertical-align: middle !important;
  color: #4a004a;
  text-align: center;
  border-top: 1px solid #f3ccef;
} */
.table-success {
  background: var(--main-accent) !important;
  color: #fff !important;
  font-weight: 600;
}
.table-danger {
  background: #b025ae !important;
  color: #fff !important;
  font-weight: 600;
}

/* REVIEW BUTTON ANIMATION */
.review-btn {
  background: var(--main-accent) !important;
  color: #fff;
  animation: glow 0.8s alternate infinite;
  font-weight: 600;
  border-radius: 20px;
  border: none;
  /* box-shadow: 0 2px 8px #f163f16a; */
}
@keyframes glow {
  to {
    /* box-shadow: 0 0 14px #f163f177; */
  }
}

/* TABLE ACTIVE ROW */
.table-active {
  background-color: #fcd9fc !important;
}

/* MODAL */
.modal-content {
  border-radius: 14px;
  box-shadow: 0 8px 30px #f163f140;
  border: 1.5px solid #637bf1;
  background: #edf1fc;
}
#reviewModal .modal-header {
  background: #255aab ;
  color: #fff;
  font-weight: 600;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}
#reviewModal .modal-body {
  padding-top: 0.6rem;
  padding-bottom: 0.75rem;
}
#reviewModal .modal-footer .btn {
  min-width: 44%;
}

/* TEXTAREA REVIEW */
.textarea-review {
  resize: vertical;
  width: 100%;
  min-height: 88px;
  border-radius: 10px;
  border: 1.6px solid #637bf1;
  background-color: #f3f7fb;
  font-size: 1rem;
  box-shadow: inset 0 1px 5px #f9e8f9;
  transition: border-color 0.3s ease;
}
.textarea-review:focus {
  border-color: var(--main-accent);
  /* box-shadow: 0 0 8px 0.16rem #f163f177; */
  outline: none;
}

/* ALERTS / FEEDBACK MESSAGES */
.error-message, .success-message {
  font-size: 0.98rem;
  min-height: 22px;
  font-weight: 600;
  color: var(--main-accent);
  user-select: none;
}

/* LINKS AND TEXT */
a, .text-primary {
  color: var(--main-accent) !important;
  transition: color 0.2s ease-in-out;
}
a:hover, a:focus {
  color: var(--accent-darker) !important;
  text-decoration: underline;
  outline: none;
}

/* RESPONSIVE */
@media (max-width: 500px) {
  .auth-card {
    padding: 1.1rem 0.35rem 0.7rem;
  }
  .logo-bar {
    font-size: 1.25rem;
    padding: 0.55rem 0;
  }
  #tasks-section, #information-section {
    margin-top: 1rem;
    padding: 1rem;
  }
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* .table td:nth-child(2),
  .table th:nth-child(2) {
    max-width: 60px;
    width: 55px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  } */
  .table td:nth-child(1),
  .table th:nth-child(1) {
    /* max-width: 50px; */
    /* width: 40px; */
    /* overflow: hidden; */
    white-space: nowrap;
    /* text-overflow: ellipsis; */
  }
   /* .table td:nth-child(4) {
    max-width: 110px;
    width: 100px;
    overflow: hidden;
    white-space: wrap;
  
  } */

  .table td {
    font-size: 1rem;
    /* padding: 0.4rem 0.35rem; */
    white-space: nowrap;
    word-break: break-all;
  }

  .table thead th {
    font-size: 0.8rem;
    padding: 0.55rem;
  }
 
  .table td{
    /* max-width: 140px; */
    
    white-space: normal; /* allow wrapping for long descriptions */
    word-wrap: break-word;
  }

  #tasks-section {
    padding: 0.6rem;
    margin: 1.2rem 0.4rem;
  }
  body, html {
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden;
  }

  .container,
  .auth-card,
  .card,
  #tasks-section,
  #information-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
  }

  .card-body {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

 .multi-select-dropdown {
      /* position: relative; */
      display: inline-block;
      width: 210px;
    }
    .dropdown-btn {
      width: 100%;
      padding: 8px;
      border: 1px solid #ccc;
      background: #fff;
      cursor: pointer;
      text-align: left;
    }
    .dropdown-list {
      display: none;
      position: absolute;
      background: #fff;
      min-width: 210px;
      border: 1px solid #ccc;
      box-shadow: 0 2px 5px rgba(0,0,0,0.08);
      z-index: 1;
    }
    .dropdown-list label {
      display: block;
      padding: 6px 10px;
      cursor: pointer;
    }
    .dropdown-list input {
      margin-right: 8px;
    }
    .multi-select-dropdown.open .dropdown-list {
      display: block;
    }

