body{
    background-color:#efd553;
    margin:0;
    
}

.header{
    display:flex;
    min-height:100vh;
    width:100%;
}

.left{
    flex:0.6;
    background-image:url(Assets/Images/waterfall.webp);
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    border:solid 1px;
}

.middle{
    flex:3;
    background-color:#E6F0EC;
    border-radius:5px;
    font-family:'Inter',sans-serif;
    font-size:18px;
    overflow-y:auto;
}

.right{
    flex:1;
    background-color:#9FB69A;
    border-radius:2px;
    display:flex;
    flex-direction:column;
    align-items:stretch;
}

.trilayer{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:40px;
}

.layer1{
    display:flex;
    background-color:#efd553;
    width:100%;
    justify-content:center;
    align-items:center;
    border:solid 1px;
    color:#045804;
    flex-direction:row;
    gap:30px;
    padding:5px;
    min-height:17vh;
}

.layer2{
    display:flex;
    justify-content:center;
    align-items:center;
    color:#045804;
    flex-direction:column;
}

.layer3{
    display:flex;
    justify-content:center;
    align-items:center;
    color:#045804;
    flex-direction:column;
}

.layer4{
    display:flex;
    flex-direction:column;
    width:100%;
    background-image:url(Assets/Images/page.webp);
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    min-height:24vh;
    opacity:0.8;
}

.circle{
    border-radius:900px;
    border:2px solid black;
}

.logo{
    height:150px;
    width:150px;
    border-radius:150px;
    border:2px solid black;
}

.footer{
    background-color:rgb(91,0,0);
    color:#E6F0EC;
}

.paragraph{
    padding-left:40px;
    padding-right:40px;
    font-size:large;
}

.dead{
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:10px;
}

.group{
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:10px;
}

.nav{
    background-color:rgb(91,0,0);
}

.signin{
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    width:100%;
    max-width:300px;
    padding:30px;
    border-radius:8px;
    align-items:stretch;
}

.signin input[type="text"],
.signin input[type="password"],
.signin input[type="email"],
.signin input[type="tel"],
.signin input[type="submit"]{
    display:block;
    width:100%;
    box-sizing:border-box;
    padding:5px;
    margin-top:5px;
    border-radius:6px;
    font-size:1rem;
}

.submitbtn{
    background-color:rgb(91,0,0);
    color:#E6F0EC;
    height:50px;
    width:100%;
    display:block;
    font-size:large!important;
}

.top{
    display:flex;
    flex-direction:column;
}

.sr-only{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}

.verify{
    display:flex;
    flex-direction:column;
    gap:10px;
    width:100%;
    padding:0;
    height:auto;
}

.verify input[type="text"],
.verify input[type="password"],
.verify input[type="email"],
.verify input[type="tel"],
.verify input[type="submit"]{
    width:100%;
    box-sizing:border-box;
    padding:5px;
    margin-top:5px;
    border-radius:6px;
    font-size:1rem;
}

.verify input{
    width:100%;
    display:block;
}

.hamburger{
    font-size: x-large;
    color: #efd553;
}
.navbar-toggler-icon {
  filter: invert(83%) sepia(84%) saturate(600%) hue-rotate(0deg);
}

.profile-info {
  display: flex;
  align-items: center;  
  padding-right: 20px;   
  background-color: rgb(91,0,0);        
}


.navbar-brand {
  color: white !important;
  font-weight: bold;
  text-decoration: none !important;
}
.dashboard{
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

 .dashboard ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

 .dashboard li{
  margin: 10px 0;
}

 .dashboard a{
  display: block;                  
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: rgb(91,0,0);
  background-color: #E6F0EC;
  border: 1px solid rgba(0,0,0,0.15);
  font-weight: 600;
}

 .dashboard a:hover,
.dashboard a:focus{
  background-color: #efd553;
  outline: none;
}

 .right .dashboard{
  flex: 1;
}
 
.profile-info{
  width: 100%;
  box-sizing: border-box;
  padding: 14px 20px;
  border-radius: 6px;
  color: #E6F0EC;
}

 
.page-title{
  margin: 20px 0 10px;
  padding: 0 20px;
  color: rgb(91,0,0);
  font-family: 'Inter', sans-serif;
}

.table-wrap{
  width: 100%;
  padding: 0 20px 20px;
  box-sizing: border-box;
  overflow-x: auto;
}

.tasks-table{
  width: 100%;
  border-collapse: collapse;
  background: #E6F0EC;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 10px;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  table-layout: auto;
}


.tasks-table th,
.tasks-table td{
  padding:10px 12px;
  border-bottom:1px solid rgba(0,0,0,0.12);
  vertical-align:top;
  font-size:0.95rem;
  color:rgb(91,0,0);
  white-space:normal;
  word-break:break-word;
}

.tasks-table thead th{
  background: rgb(91,0,0);
  color: #E6F0EC;
  font-weight: 700;
}

.tasks-table tbody tr:nth-child(even){
  background: rgba(255,255,255,0.35);
}

.tasks-table tbody tr:hover{
  background: #efd553;
}


.tasks-table td:nth-child(9) form,
.tasks-table td:nth-child(10) form{
  margin: 0;
}

.tasks-table td:nth-child(9) button,
.tasks-table td:nth-child(10) button{
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

.tasks-table td:nth-child(9) button{
  background: rgb(91,0,0);
  color: #E6F0EC;
}

.tasks-table td:nth-child(10) button{
  background: #9FB69A;
  color: rgb(91,0,0);
}

.tasks-table button:hover,
.tasks-table button:focus{
  outline: none;
  filter: brightness(0.95);
}
.table-wrapper{
  overflow-x:auto;
  width:100%;
}

.pagination{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 0 20px 30px;
}

.pagination a,
.pagination strong{
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.15);
  font-family: 'Inter', sans-serif;
}

.pagination a{
  background: #E6F0EC;
  color: rgb(91,0,0);
  font-weight: 700;
}

.pagination a:hover,
.pagination a:focus{
  background: #efd553;
  outline: none;
}

.pagination strong{
  background: rgb(91,0,0);
  color: #E6F0EC;
}

.btn{
    font-size: small;
}
.tasks-table th,
.tasks-table td{
  font-size: small;
}

.tasks-table td[class^="priority-"]{
  font-weight:700;
  text-align:center;
  border-radius:6px;
}

.priority-high{
  color:#dc3545 !important;
  font-weight:600;
}

.priority-medium{
  color:#ffc107 !important;
  font-weight:600;
}

.priority-low{
  color:#198754 !important;
  font-weight:600;
}

.addform{
  max-width: 400px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.addform{
  max-width: 400px;
  margin: 40px auto;
}
 
.action-btn.danger, .btn{
  background:rgb(91,0,0) !important;    
  color:white !important;
display:inline-block;
  padding:10px 16px;
  border:none;
  border-radius:10px;
  cursor:pointer;
  font-weight:600;
  white-space:nowrap;
}

 .task-checkboxes {
    max-height: 200px;
    overflow-y: auto;
    background: #f4f4f4;
    padding: 10px;
    border-radius: 8px;
}

.task-option {
    display: block;
    margin-bottom: 6px;
}

nav{
    font-size: medium;
}
 
@media (max-width: 768px) {

  .header {
    flex-direction: column;
    min-height: auto;
  }

  .left,
  .middle,
  .right {
    flex: none;
    width: 100%;
  }

  .left {
    height: 200px; /* prevents it taking full screen */
  }

  .trilayer {
    gap: 20px;
    padding: 10px;
  }

  .layer1 {
    flex-direction: column;
    gap: 10px;
  }

  .dead,
  .group {
    flex-direction: column;
    align-items: flex-start;
  }

  .signin,
  .verify,
  .addform {
    max-width: 100%;
    padding: 15px;
  }

  .tasks-table {
    font-size: 0.75rem;
  }

  .tasks-table td,
  .tasks-table th {
    padding: 6px;
  }

  .profile-info {
    flex-direction: column;
    align-items: flex-start;
  }


} 

@media (max-width: 768px){

  body{
    overflow-x:hidden;
  }

  .header{
    flex-direction:column;
    min-height:auto;
  }

  .left,
  .middle,
  .right{
    width:100%;
    flex:none;
  }

  .left{
    order:1;
    height:180px;
    min-height:180px;
  }

  .signin{
    order:2;
    width:100%;
    max-width:100%;
    padding:15px;
  }

  .right{
    order:3;
    width:100%;
    min-height:auto;
  }

  .middle{
    order:4;
    width:100%;
    overflow-x:hidden;
  }

  .trilayer{
    gap:20px;
    padding:10px;
  }

  .layer1{
    flex-direction:column;
    gap:12px;
    text-align:center;
    padding:15px;
  }

  .dead,
  .group{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
  }

  .logo{
    width:100px;
    height:100px;
  }

  .paragraph{
    padding-left:15px;
    padding-right:15px;
    font-size:0.95rem;
    line-height:1.5;
  }

  .profile-info{
    flex-direction:column;
    align-items:flex-start;
    gap:5px;
    padding:12px;
  }

  .dashboard{
    padding:10px;
  }

  .dashboard a{
    padding:14px;
    font-size:0.95rem;
  }

  .table-wrap{
    overflow-x:auto;
    padding:10px;
    -webkit-overflow-scrolling:touch;
  }

  .tasks-table{
    min-width:900px;
    font-size:0.8rem;
  }

  .tasks-table th,
  .tasks-table td{
    padding:8px;
    font-size:0.78rem;
    white-space:nowrap;
  }

  .tasks-table td:nth-child(3){
    white-space:normal;
    min-width:200px;
  }

  .tasks-table button{
    padding:6px 10px;
    font-size:0.75rem;
  }

  .pagination{
    padding:10px;
    gap:6px;
  }

  .pagination a,
  .pagination strong{
    padding:6px 10px;
    font-size:0.8rem;
  }

  .signin,
  .verify,
  .addform{
    max-width:100%;
    padding:15px;
  }

  .signin input,
  .verify input,
  .addform input,
  .addform textarea,
  .addform select{
    font-size:16px;
  }

  .submitbtn,
  .btn,
  .action-btn.danger{
    width:100%;
    font-size:1rem !important;
    padding:12px;
  }

  .login-toggle{
    width:100%;
    background-color:rgb(91,0,0);
    color:#E6F0EC;
    border:none;
    padding:15px;
    font-size:large;
    font-weight:bold;
  }

  .login-toggle:hover{
    opacity:0.9;
  }

}