/* Word Counter Tool Styles */
.wct-container {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', sans-serif;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

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

/* Text Area Styles */
.wct-text-input-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
}

.wct-text-input-container:focus-within {
    box-shadow: var(--shadow-hover);
}

.wct-text-input {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.wct-text-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.wct-input-actions {
    display: flex;
    gap: 12px;
}

@media (max-width: 768px) {
    .wct-input-actions {
        flex-direction: column;
    }
}

.wct-button {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wct-button:hover {
    background-color: var(--primary-dark);
}

.wct-button-secondary {
    background-color: #e5e7eb;
    color: var(--text-primary);
}

.wct-button-secondary:hover {
    background-color: #d1d5db;
}

/* Stats Grid */
.wct-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.wct-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wct-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.wct-stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.wct-stat-value {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
}

/* Keyword Density Styles */
.wct-keyword-density {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.wct-keyword-density h2 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.wct-keyword-tables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.wct-keyword-table-container h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.wct-keyword-table {
    width: 100%;
    border-collapse: collapse;
}

.wct-keyword-table th, 
.wct-keyword-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.wct-keyword-table th {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.wct-keyword-table td {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.wct-keyword-table tr:last-child td {
    border-bottom: none;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .wct-stat-value {
        font-size: 1.75rem;
    }
    
    .wct-keyword-tables {
        grid-template-columns: 1fr;
    }
}