/* Table cell text wrapping and popup styles */
.table-cell-truncated,
.auto-truncated {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    position: relative;
}

.table-cell-truncated:hover,
.auto-truncated:hover {
    background-color: #f8f9fa;
}

.table-cell-truncated.has-overflow::after,
.auto-truncated.has-overflow::after {
    content: "Click to view full text";
    position: absolute;
    top: 100%;
    left: 0;
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.table-cell-truncated.has-overflow:hover::after,
.auto-truncated.has-overflow:hover::after {
    opacity: 1;
}

/* Popup Modal Styles */
.text-popup-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.text-popup-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.text-popup-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
}

.text-popup-close:hover,
.text-popup-close:focus {
    color: #000;
    text-decoration: none;
}

.text-popup-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    padding-right: 30px;
}

.text-popup-body {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* Animation for popup */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.text-popup-content {
    animation: fadeIn 0.3s ease-out;
}

/* Responsive design */
@media (max-width: 768px) {
    .text-popup-content {
        width: 95%;
        margin: 10% auto;
        max-height: 70vh;
    }
    
    .table-cell-truncated {
        max-width: 150px;
    }
} 