.word-counter-container {
    max-width: 800px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.word-counter-input-container {
    margin-bottom: 20px;
}

.word-counter-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.word-counter-textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.word-counter-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.word-counter-stat {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.word-counter-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.word-counter-stat i {
    font-size: 24px;
    color: #007cba;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    display: block;
    font-weight: 600;
    color: #2c3338;
    margin-bottom: 5px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #007cba;
}

/* Responsive design */
@media (max-width: 768px) {
    .word-counter-results {
        grid-template-columns: 1fr;
    }
    
    .word-counter-stat {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 20px;
    }
}

/* Animation for value changes */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.stat-value {
    transition: color 0.3s ease;
}

.stat-value.changing {
    animation: pulse 0.3s ease;
    color: #00a32a;
}