#transcript-grid {
  transition: transform 0.2s ease;
  transform-origin: top left;
}


.text-truncate-multiline {
  display: -webkit-box;
  -webkit-line-clamp: 4; /* show up to 4 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card {
  cursor: pointer; /* optional: make entire card clickable */
}


/* ✅ Scrollable Transcript Popup */
.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.popup-content {
    background: white;
    margin: 10% auto;
    padding: 20px;
    width: 50%;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 5px;
    position: relative;
}

/* ✅ Scrollable transcript content */
.scrollable-content {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ccc;
}

/* ✅ Close Button */
.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

/* ✅ AI Buttons */
.ai-buttons {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.ai-button {
    padding: 6px 10px;
    background-color: #0073e6;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 12px;
}

.ai-button:hover {
    background-color: #005bb5;
}


.transcript-tile {
    position: relative;
    background: white;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    height: 400px;
    width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
}



/* ✅ Title: Show in full width, allow wrapping */
.tile-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 5px 0;
    line-height: 1.2;
    width: 100%;
    white-space: normal;  /* Allow wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ✅ Word cloud container */
.wordcloud-overlay {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;

	height: 80%;
    overflow: hidden;
}

/* ✅ Optionally scale the entire SVG but center it */
.wordcloud-overlay > div {
    transform: scale(0.7); /* Adjust to your preferred zoom */
    transform-origin: center center;
    opacity: 1;
}
