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

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

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

.mode-toggle {
    display: flex;
    justify-content: center;
}

.mode-toggle .btn-group {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.mode-toggle .btn-outline-primary {
    border: none;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
}

.mode-toggle .btn-check:checked + .btn-outline-primary {
    background: var(--accent-primary);
    color: white;
}

.pangram-textarea {
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
}

.pangram-textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.results-area {
    max-width: 900px;
    margin: 0 auto;
}

.results-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem 1.4rem;
}

.check-result {
    text-align: center;
    padding: 2rem 1rem;
}

.check-result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.check-result-icon.yes {
    color: #10b981;
}

.check-result-icon.no {
    color: #ef4444;
}

.check-result-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-primary);
}

.letters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 0.5rem;
    margin: 1.5rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.letter-box {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    border: 2px solid;
    transition: all 0.2s;
}

.letter-box.present {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.letter-box.missing {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

.generate-result {
    padding: 1.5rem;
}

.generate-pangram {
    font-size: 1.2rem;
    line-height: 1.8;
    padding: 1.5rem;
    background: #f0f9ff;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.generate-stats {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-badge {
    padding: 0.5rem 1rem;
    background: white;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.stat-badge strong {
    color: var(--accent-primary);
    margin-right: 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);
}

@media (max-width: 767.98px) {
    .pangram-card {
        padding: 1.75rem 1.25rem;
    }
    .mode-toggle .btn-outline-primary {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    .letters-grid {
        grid-template-columns: repeat(auto-fill, minmax(35px, 1fr));
        gap: 0.4rem;
    }
    .letter-box {
        font-size: 0.9rem;
    }
}

