/* Sentence Breakdown Layout */

.sentence-row-container {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.sentence-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 3rem;
}

.audio-btn-round {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-medium, #0d6efd);
    cursor: pointer;
    transition: all 0.2s ease;
}

.audio-btn-round:hover {
    background-color: var(--theme-medium, #0d6efd);
    color: #fff;
    border-color: var(--theme-medium, #0d6efd);
}

.sentence-number {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: bold;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

/* Word Grid - Horizontal Flow */
.word-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-start;
}

.word-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
    min-width: 2rem;
}

.word-column:hover {
    background-color: #f8f9fa;
}

/* Specific Rows */
.word-row-target {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    cursor: pointer;
    color: #212529;
    /* Add min-height to ensure alignment if font sizes vary */
    line-height: 1.2;
}

.word-row-target:hover {
    color: var(--theme-medium, #0d6efd);
}

.word-row-definition {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
    line-height: 1.1;
    max-width: 120px; /* Prevent extremely long definitions from stretching layout too much */
}

/* Quick Add Button (already in inline style but moving here for consistency) */
.quick-add-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    cursor: pointer;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 10;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    color: #198754;
    font-size: 14px;
}

.word-column:hover .quick-add-btn {
    opacity: 1;
}

.quick-add-btn:hover {
    background-color: #198754;
    color: white;
    transform: scale(1.1);
}

/* Last item border fix */
.last-no-border:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}













