/* Ultimate Word Counter Styles */
#uwc-word-counter-root {
    width: 100%;
    margin: 20px 0;
}

.uwc-container {
    min-height: 100vh;
    background: linear-gradient(to bottom right, #eff6ff, #e0e7ff, #faf5ff);
    padding: 2rem;
}

.uwc-max-width {
    max-width: 1280px;
    margin: 0 auto;
}

.uwc-header {
    text-align: center;
    margin-bottom: 2rem;
}

.uwc-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.uwc-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
}

.uwc-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .uwc-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.uwc-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.uwc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.uwc-stat-box {
    padding: 1rem;
    border-radius: 0.75rem;
    color: white;
}

.uwc-stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.uwc-stat-value {
    font-size: 1.875rem;
    font-weight: bold;
    margin-top: 0.25rem;
}

.uwc-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.uwc-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    color: white;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.uwc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.uwc-btn-blue { background: #3b82f6; }
.uwc-btn-blue:hover { background: #2563eb; }
.uwc-btn-green { background: #10b981; }
.uwc-btn-green:hover { background: #059669; }
.uwc-btn-red { background: #ef4444; }
.uwc-btn-red:hover { background: #dc2626; }
.uwc-btn-gray { background: #6b7280; }
.uwc-btn-gray:hover { background: #4b5563; }

.uwc-textarea {
    width: 100%;
    height: 400px;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    color: #374151;
    resize: vertical;
    font-family: inherit;
}

.uwc-textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.uwc-info-text {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.uwc-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.uwc-section-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.uwc-metric {
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.uwc-metric-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.uwc-metric-value {
    font-size: 1.125rem;
    font-weight: bold;
    margin-top: 0.25rem;
}

.uwc-keyword-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #fff7ed;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.uwc-keyword-word {
    font-weight: 500;
    color: #374151;
}

.uwc-keyword-stats {
    text-align: right;
}

.uwc-keyword-count {
    font-size: 0.875rem;
    font-weight: bold;
    color: #ea580c;
}

.uwc-keyword-density {
    font-size: 0.75rem;
    color: #6b7280;
}

.uwc-empty-state {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}