/* General page styling */
body {
  font-family: Arial, sans-serif;
  background: #f2f2f2;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}


/* Flex container for Board and Participants */
.session-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
}

/* Main container */
.container, .board {
  flex: 3;
}

/* Headings */
h1, h2 {
  margin-bottom: 20px;
}

h3 {
  /*margin-top: 30px;*/
}

/* Form input and buttons */
select, button {
  padding: 10px;
  font-family: 'Poppins';
  margin: 5px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
  width:100%;
}

input{
     padding: 10px;
  font-family: 'Poppins';
  margin: 5px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
  width:93%;
}

button {
  background-color: #007BFF;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: #45a049;
}

/* Grid layout for board columns */
.grid-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.grid-column {
  background: #ffffff;
  padding: 10px;
  border-radius: 10px;
  flex: 1;
  max-height: 600px; /* Max height for column */
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Card container inside each column (makes cards grid inside column) */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 🔥 Always 2 columns */
  gap: 20px;
  margin-top: 10px;
  justify-items: center;
  overflow-y: auto;
   min-height: 150px;
}





/* Sticky Note style for cards */
.card {
  background: #fffacd; /* Light yellow sticky */
  border-radius: 8px;
  padding: 10px;
  width: 150px;
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, opacity 0.2s ease, font-size 0.2s ease;
  position: relative;
}

/* Different side strip color based on type */
.card.like {
  border-left: 8px solid green;
}

.card.learning {
  border-left: 8px solid blue;
}

.card.issue {
  border-left: 8px solid red;
}

/* Text inside the card */
.card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 100%;
}

/* Card hover effect */
/*.card:hover {*/
/*  transform: rotate(1deg) scale(1.03);*/
/*  opacity: 0.95;*/
/*}*/

/* Delete button inside a posted card */
.card button {
  margin-top: 10px;
  padding: 5px 10px;
  font-size: 12px;
  background-color: red;
  color: white;
  border: none;
  border-radius: 5px;
}

/* Private drafts area */
.private-drafts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 50px;
}

/* Draft card specific background */
.private-card {
  /*background: #e0f7fa; */
  font-family: 'Poppins';
}

/* Textarea inside draft card */
.private-card textarea {
  width: 100%;
  height: 60px;
  font-size: 14px;
  padding: 5px;
  resize: none;
  border: none;
  outline: none;
  background: transparent;
}

/* Input area button margin */
.input-area {
  margin-top: 20px;
  margin-bottom: 10px;
}

/* Add Draft Button next to heading */
.draft-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  margin-bottom: 20px;
}

.add-draft-btn {
  padding: 8px 12px;
  font-size: 16px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  gap: 5px;
  width:30%;
}

.export-btn {
  padding: 8px 12px;
  font-size: 16px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  gap: 5px;
  width:100%;
}

.add-draft-btn:hover {
  background-color: #45a049;
}

/* Right side: participants panel */
.participants-area {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 20px;
  height: fit-content;
}

.participants-area h3 {
  margin-bottom: 20px;
  text-align: center;
}

#participants-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#participants-list li {
  background: #e0f7fa;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

/* Responsive adjustments for small screens */
@media (max-width: 768px) {
  .session-container {
    flex-direction: column;
  }

  .grid-container {
    flex-direction: column;
  }

  .cards {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .card {
    width: 120px;
    height: 120px;
  }
}

.delete-icon {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 20px;
  cursor: pointer;
  display: none; /* Hidden by default */
  transition: transform 0.2s ease;
}

.card:hover .delete-icon {
  display: block; /* Show only when hovering the card */
}

.delete-icon:hover {
  transform: scale(1.2);
}

.actions-area {
  margin-top: 30px;
}

.actions-area h3 {
  margin-bottom: 15px;
  text-align: center;
}

.action-form {
  /*display: flex;*/
  gap: 10px;
  margin-bottom: 15px;
}

.action-form input {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  width:95%;
}

.action-form button {
  padding: 8px 12px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#actions-list {
  list-style-type: disc;
  padding-left: 20px;
}

#actions-list li {
  margin-bottom: 8px;
  text-align: left;
}

.cards::-webkit-scrollbar {
  width: 6px;
}

.cards::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.2);
  border-radius: 4px;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #fffacd;
  padding: 30px 20px 20px 20px;
  border-radius: 10px;
  max-width: 500px;
  width: 80%;
  font-size : 30px;
  max-height: 80%;
  overflow-y: auto;
  overflow-x: hidden; /* ðŸ”¥ Prevent horizontal scroll */
  box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
  animation: zoomIn 0.3s ease;
  position: relative;
  text-align: center;
  word-wrap: break-word; /* ðŸ”¥ Force long words to wrap */
  white-space: normal; /* ðŸ”¥ Allow multiple lines */
}

.close-x {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.modal-close-btn {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.modal-close-btn:hover {
  background-color: #45a049;
}

@keyframes zoomIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-content.like {
  border-left: 8px solid green;
}

.modal-content.learning {
  border-left: 8px solid blue;
}

.modal-content.issue {
  border-left: 8px solid red;
}

.current-user {
  background: #d1e7dd; /* Light green background */
  font-weight: bold;
  border: 2px solid #4CAF50;
}

.you-badge {
  background: #4CAF50;
  color: white;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
  margin-left: 6px;
}

.action-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  background: #e0f7fa;
  margin-bottom: 10px;
  font-size: 16px;
  text-align: left;
}

.delete-action {
  display: none; /* 🔥 Hide by default */
  cursor: pointer;
  margin-left: 10px;
}

.action-item:hover .delete-action {
  display: inline; /* 🔥 Show only when hovering li */
}

.delete-action:hover {
  transform: scale(1.3);
  transition: transform 0.2s ease;
}

.participant-tile {
  list-style-type: none;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  color: #333;
}

.footer {
  text-align: center;
  padding: 15px;
  background: #f2f2f2;
  color: #555;
  font-size: 14px;
  margin-top: 40px;
}

.footer a {
  text-decoration: none;
  color: #4CAF50;
}

.footer a:hover {
  text-decoration: underline;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.container, .session-container {
  flex: 1 0 auto;
}

.footer {
  flex-shrink: 0;
}


.bucket-header {
    background: #f1eeee;
    border-radius: 10px;
    padding-left: 10px;
    align-items: center;
    align-content: center;
}

.cancel-btn{
    background: red;
}


.bucket-wrapper {
  position: relative;
  height: 10%;
  
}

.drop-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  font-style: italic;
  color: #999;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border: 2px dashed #ccc;
  border-radius: 10px;
  z-index: 0;
  pointer-events: none; /* Allows drop to pass through */
}

.highlight-drop {
  background-color: #e3f2fd; /* Light blue */
  border: 2px dashed #007BFF;
  transition: background-color 0.3s, border 0.3s;
 
}


.highlight-over{
     background-color: yellow; /* Light blue */
  border: 2px dashed #007BFF;
  transition: background-color 0.3s, border 0.3s;
}

hr {
  border: none;
  height: 1px;
  background: #ddd; /* light gray */
  margin: 5px 0;
  width: 100%;
}

.collapsible-section {
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.collapsible-header {
  cursor: pointer;
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 5px;
}


.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.collapsible-content.active {
  max-height: 500px; /* or bigger if needed */
  overflow: visible;
  transition: max-height 0.5s ease;
}

.collapsible-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f9fa;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}

.collapsible-header h3 {
  margin: 0;
  font-size: 18px;
  flex-grow: 1;
}

.arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 18px;
}

.arrow.rotated {
  transform: rotate(90deg);
}








