* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.chat-popup {
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    z-index: 100;
}


/* chat popup */
.chat-header {
    height: 10%;
    display: flex
;
    align-items: center;
    gap: 1em;
    padding: 0 1em;
}
.message-list {
    flex: 1;
    padding: 0 1em;
}
.chat-input {
    height: 4em;
    display: flex
;
    align-items: center;
    gap: .7em;
    padding: 0 1em;
}
.chat-input input {
    width: 100%;
    height: 2em;
    padding: .5em;
    border-radius: .4em;
    border: 1px solid #999;
}

/* chat messages */
.message-item {
    display: flex;
flex-direction: column;
    padding: 1em;
    border-bottom: 1px solid #eee;
}
.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 1em;
}
.message-header img {
    width: 2em;
    height: 2em;
    border-radius: 50%;
    margin-right: .5em;
}
button.reaction-btn {
    background: transparent;
    border: none;
    align-self: end;
    margin-top: .7em;
}


/* tasks creation */
.task-popup {
    display: flex
;
    flex-direction: column;
    z-index: 1200;
    position: fixed;
    bottom: 0;
    height: 70vh;
    padding: 1em;
    background: #fff;
    border-radius: 1em 1em 0 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    width: 100%;
}
.task-popup .task-header {
    justify-content: space-between;
    padding: .4em 0;
    flex-direction: row-reverse;
}

.task-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 1em;
    background: #fff;
    border-radius: .4em;
    
}
.task-form input {
    width: 100%;
    height: 2em;
    padding: .5em;
    border-radius: .4em;
    border: 1px solid #999;
    margin-bottom: .7em;
}
.task-form textarea {
    width: 100%;
    height: 10em;
    padding: .5em;
    border-radius: .4em;
    border: 1px solid #999;
    margin-bottom: .7em;
}

button#save-task-btn {
    width: 100%;
    height: 2em;
    padding: .5em;
    border-radius: .4em;
    border: none;
    background: #007bff;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
}


/* Group creation */
#toggleGroupCreation:checked ~ .groupchat-container {
    height: 100vh;
    overflow: scroll;
    padding: 24px;

}
#toggleGroupCreation {
    display: none;
}
/* Container Styling */
.groupchat-container {
    max-width: 600px;
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    height: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    overflow: hidden;
  }
  
  /* Heading */
  .groupchat-container h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
  }
  
  /* Group List Container */
  .group-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }
  
  /* Each Group Item */
  .group {
    background-color: #f7f9fc;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid #e0e6ed;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
  }
  
  .group:hover {
    background-color: #eaf3ff;
    border-color: #c7dcff;
    transform: translateY(-2px);
  }
  
  /* Create Group Button */
  .create-group-btn {
    display: block;
    width: 100%;
    background-color: #4a90e2;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .create-group-btn:hover {
    background-color: #3b7fd6;
  }
  
  /* Modal Styling */
  #createGroupModal {
    margin-top: 20px;
    padding: 20px;
    background-color: #fdfdfd;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
  }
  
  #createGroupModal input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
  }
  
  #createGroupModal input[type="text"]:focus {
    border-color: #4a90e2;
  }
  
  /* Modal Buttons */
  #createGroupModal button {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    margin-right: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
  }
  
  #submitGroup {
    background-color: #27ae60;
    color: white;
  }
  
  #submitGroup:hover {
    background-color: #219150;
  }
  
  #closeModal {
    background-color: #e74c3c;
    color: white;
  }
  
  #closeModal:hover {
    background-color: #c0392b;
  }

  .close-group-list {
    font-size: 1.3em;
    color: #333;
  }



  .chat-input button {
    background: transparent;
    border: none;
    font-size: 1.1em;
}
button#back-btn {
    background: transparent;
    border: none;
    font-size: 1.2em;
}