.word-counter-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.word-counter-container {
    font-family: 'Inter', sans-serif;
    color: #111827;
    line-height: 1.6;
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.word-counter-container .main-content {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.word-counter-container .input-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    flex: 1;
}

.word-counter-container #text-input {
    width: 100%;
    min-height: 300px;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 20px;
    resize: vertical;
    transition: border-color 0.3s;
}

.word-counter-container #text-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.word-counter-container .buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.word-counter-container button {
    padding: 12px 20px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.word-counter-container button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.word-counter-container button:active {
    transform: translateY(0);
}

.word-counter-container #clear-btn {
    background: #ef4444;
}

.word-counter-container #clear-btn:hover {
    background: #dc2626;
}

.word-counter-container #copy-btn {
    background: #10b981;
}

.word-counter-container #copy-btn:hover {
    background: #059669;
}

.word-counter-container #download-btn {
    background: #8b5cf6;
}

.word-counter-container #download-btn:hover {
    background: #7c3aed;
}

.word-counter-container .stats-section {
    flex: 0 0 320px;
}

.word-counter-container .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.word-counter-container .stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
}

.word-counter-container .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.word-counter-container .stat-label {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.word-counter-container .stat-value {
    color: #111827;
    font-size: 1.7rem;
    font-weight: 700;
}

.word-counter-container .keyword-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.word-counter-container .keyword-section h2 {
    color: #1d4ed8;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.word-counter-container .keyword-tables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.word-counter-container .keyword-table {
    width: 100%;
    border-collapse: collapse;
}

.word-counter-container .keyword-table th {
    text-align: left;
    padding: 12px;
    background-color: #f3f4f6;
    color: #374151;
    font-weight: 600;
}

.word-counter-container .keyword-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.word-counter-container .keyword-table tr:last-child td {
    border-bottom: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .word-counter-container .main-content {
        flex-direction: column;
    }
    
    .word-counter-container .stats-section {
        flex: 1;
        width: 100%;
    }
    
    .word-counter-container .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .word-counter-container .buttons {
        flex-direction: column;
    }
    
    .word-counter-container button {
        width: 100%;
    }
    
    .word-counter-container .keyword-tables {
        grid-template-columns: 1fr;
    }
}