/* Word Search Styles */

.word-search-container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.word-list {
    background-color: #f8f8f8;
    padding: 10px;
    border: 1px solid #ccc;
}

.word-list h4 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #d32f2f;
}

.word-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.word-list li {
    font-size: 16px;
    margin-bottom: 5px;
    cursor: pointer;
}

.word-grid {
    width: 75%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.word-grid table {
    border-collapse: collapse;
    width: 100%;
    max-width: 600px;
}

.word-grid td {
    width: 40px;
    height: 40px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border: 1px solid #ccc;
    background-color: #fff;
}

.word-grid td:hover {
    background-color: #d32f2f;
    color: #fff;
    cursor: pointer;
}

.ws-selected {
    background-color: #ffeb3b !important;
    color: #000 !important;
}

.ws-word-selected {
    font-weight: bold;
    color: #d32f2f;
    cursor: pointer;
}

.ws-drag {
    background-color: #90caf9 !important;
    color: #000 !important;
}

.ws-found {
    position: relative;
}

/* Lines overlay */
.ws-grid-wrapper {
    position: relative;
}

.ws-grid-wrapper table.ws-grid {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.ws-grid-wrapper svg.ws-lines {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2;
}

.ws-oval {
    stroke: red;
    stroke-width: 4px;
    fill: none;
    filter: drop-shadow(0 0 3px rgba(0,0,0,0.25));
}

.ws-oval-selected {
    stroke: #1976d2;
    stroke-width: 4px;
    fill: none;
    stroke-dasharray: 8 4;
    opacity: 0.7;
}

.ws-word-found {
    text-decoration: line-through;
    color: #66bb6a;
}

.ws-grid {
    user-select: none;
}
