/* Main Container */
.word-counter-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
}

.word-counter-container h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.word-counter-container h2 i {
    margin-right: 10px;
    color: #3498db;
}

/* Form Styles */
.word-counter-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 15px;
}

.form-group label i {
    margin-right: 10px;
    color: #3498db;
    width: 20px;
    text-align: center;
}

.text-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s;
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.text-input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Results Styles */
.word-counter-results {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.result-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background-color: #f8fafc;
    border-radius: 6px;
    text-align: center;
}

.result-icon {
    font-size: 24px;
    color: #3498db;
    margin-bottom: 10px;
}

.result-label {
    font-weight: 600;
    color: #34495e;
    margin-bottom: 5px;
    font-size: 14px;
}

.result-value {
    font-weight: 700;
    color: #2ecc71;
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .word-counter-container {
        padding: 15px;
    }
    
    .word-counter-form,
    .word-counter-results {
        padding: 15px;
    }
    
    .word-counter-results {
        grid-template-columns: 1fr;
    }
}