.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.counter-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-top: 20px;
}

.input-area {
    position: relative;
    margin-bottom: 20px;
}

#text-input {
    width: 100%;
    height: 200px;
    padding: 15px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
}

#text-input:focus {
    outline: none;
    border-color: #007bff;
}

#clear-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#clear-btn:hover {
    background-color: #e2e6ea;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-group {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.stat-group h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #666;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-item span:last-child {
    font-family: monospace;
    color: #007bff;
    font-weight: bold;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .counter-container {
        padding: 15px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-group {
        padding: 15px;
    }
} 