.word-counter-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.word-counter-title {
    color: white;
    text-align: center;
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.word-counter-input-container {
    margin-bottom: 20px;
}

.word-counter-textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    resize: vertical;
    font-size: 16px;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.word-counter-textarea:focus {
    outline: none;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.word-counter-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.word-counter-stat {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.word-counter-stat i {
    font-size: 24px;
    color: white;
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    color: white;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.word-counter-info {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.word-counter-info small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.word-counter-info i {
    margin-right: 5px;
}

/* Responsive design */
@media (max-width: 768px) {
    .word-counter-container {
        margin: 15px;
        padding: 20px;
    }
    
    .word-counter-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .word-counter-stat {
        padding: 12px;
    }
    
    .stat-value {
        font-size: 18px;
    }
}

/* Animation for value changes */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.stat-value {
    transition: all 0.3s ease;
}

.stat-value.changed {
    animation: pulse 0.5s ease;
}