.solver-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.solver-card {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
}

.solver-card:hover {
    box-shadow: var(--shadow-md);
}

.squaredle-board-wrapper {
    background: #f9fafb;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border: 1px dashed rgba(148, 163, 184, 0.7);
}

.squaredle-board {
    display: grid;
    gap: 6px;
    justify-content: center;
}

.board-cell {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: white;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
    cursor: pointer;
    box-shadow: 0 2px 3px rgba(15, 23, 42, 0.08);
    transition: all 0.12s ease;
}

.board-cell.empty {
    background: #f3f4f6;
    color: #9ca3af;
}

.board-cell.selected {
    outline: 2px solid var(--accent-primary);
    outline-offset: 1px;
    box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.25);
}

.board-cell.highlight {
    background: #a5b4fc;
    color: white;
}

.board-cell.highlight-start {
    background: #6366f1;
}

.board-cell.highlight-end {
    background: #22c55e;
}

/* Results */
.results-area {
    max-width: 1000px;
    margin: 0 auto;
}

.results-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

.results-header .results-count {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.results-list {
    border: 0;
    border-radius: 16px;
    background: rgba(255,255,255,0.85);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.4rem;
}

.word-chip {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-pill);
    background: white;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: all 0.15s ease;
}

.word-chip:hover {
    border-color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
}

.word-chip .word-text {
    font-weight: 600;
    letter-spacing: 0.04em;
}

.word-chip .word-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.word-chip .badge-length {
    background: #eef2ff;
    color: #4f46e5;
    border-radius: 999px;
    padding: 0.1rem 0.55rem;
    font-size: 0.75rem;
}

/* Emphasis by length */
.word-chip.word-short {
    opacity: 0.9;
}

.word-chip.word-medium {
    border-color: #c4b5fd;
}

.word-chip.word-long {
    border-color: #6366f1;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
}

.word-chip-wrapper {
    padding: 0.75rem 1rem !important;
    border-left: 3px solid var(--accent-primary);
}

.word-chip-wrapper .word-chip {
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.pattern-btn {
    flex-shrink: 0;
    margin-left: 0.5rem;
}

/* Toast Styles */
.toast-success {
    border-left: 4px solid #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-warning {
    border-left: 4px solid #f59e0b;
}

.toast-info {
    border-left: 4px solid var(--accent-primary);
}

/* Pattern Table Styles */
.pattern-table td {
    position: relative;
    font-size: 1.1rem;
    min-width: 50px;
    min-height: 50px;
}

.pattern-table .table-success {
    background-color: rgba(25, 135, 84, 0.15) !important;
    border: 2px solid #198754 !important;
}

.pattern-table code {
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

@media (max-width: 575.98px) {
    .solver-card {
        padding: 1.75rem 1.25rem;
    }

    .board-cell {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
    
    .pattern-table td {
        min-width: 40px;
        min-height: 40px;
        font-size: 0.9rem;
    }
}


