/* Editor Section */
.editor-section {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.editor-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.clear-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0.5rem;
}

.clear-btn:hover {
    color: var(--text-primary);
}

#text-input {
    width: 100%;
    min-height: 250px;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.25rem;
    font-size: 1.1rem;
    font-family: inherit;
    color: var(--text-primary);
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#text-input:focus {
    border-color: var(--primary-color);
    box-shadow: var(--primary-glow);
}

#text-input::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

/* Custom Scrollbar for Textarea */
#text-input::-webkit-scrollbar {
    width: 10px;
}

#text-input::-webkit-scrollbar-track {
    background: transparent;
}

#text-input::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

#text-input::-webkit-scrollbar-thumb:hover {
    background: var(--primary-transparent);
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-card {
    padding: 1.5rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s, border-color 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: var(--title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 600px) {
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-value {
        font-size: 2rem;
    }
}
