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

.sudoku-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

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

.sudoku-grid-wrapper {
    display: flex;
    justify-content: center;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: var(--radius-md);
}

.sudoku-svg {
    max-width: 540px;
    width: 100%;
    height: auto;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sudoku-cell-bg {
    fill: white;
    stroke: #d1d5db;
    stroke-width: 1;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sudoku-cell-bg:hover {
    fill: #f3f4f6;
}

.sudoku-cell-bg.highlight {
    fill: #dbeafe;
}

.sudoku-cell-bg.given {
    fill: #f3f4f6;
}

.sudoku-cell-bg.error {
    fill: #fee2e2;
}

.sudoku-cell-bg.focused {
    fill: #eef2ff;
    stroke: var(--accent-primary);
    stroke-width: 2;
}

.sudoku-cell-input {
    width: 50px;
    height: 50px;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--text-main);
    cursor: pointer;
    padding: 0;
    outline: none;
}

.sudoku-cell-input.given {
    color: #111827;
    font-weight: 700;
}

.sudoku-cell-input.solved {
    color: #10b981;
}

.sudoku-cell-input.error {
    color: #dc2626;
}

.sudoku-cell-text {
    font-size: 28px;
    font-weight: 600;
    text-anchor: middle;
    dominant-baseline: central;
    fill: var(--text-main);
    pointer-events: none;
    user-select: none;
}

.sudoku-cell-text.given {
    fill: #111827;
    font-weight: 700;
}

.sudoku-cell-text.solved {
    fill: #10b981;
}

.sudoku-cell-text.error {
    fill: #dc2626;
}

/* Grid lines */
.sudoku-line-thin {
    stroke: #d1d5db;
    stroke-width: 1;
}

.sudoku-line-thick {
    stroke: #1f2937;
    stroke-width: 3;
}

.solution-section {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-message {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
}

.status-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.status-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.status-message.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #3b82f6;
}

/* 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);
}

@media (max-width: 767.98px) {
    .sudoku-card {
        padding: 1.75rem 1.25rem;
    }
    
    .sudoku-grid-wrapper {
        padding: 1rem;
    }
    
    .sudoku-grid {
        max-width: 100%;
    }
    
    .sudoku-cell {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .sudoku-card {
        padding: 1.5rem 1rem;
    }
    
    .sudoku-grid-wrapper {
        padding: 0.75rem;
    }
    
    .sudoku-cell {
        font-size: 1rem;
    }
}

