
:root {
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #f9fafb;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --radius: 0.5rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: white;
    padding: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
}

header {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    color: rgb(91, 91, 231);
    margin-bottom: 0.5rem;
}

.description {
    color: gray;
    margin-bottom: 1rem;
}

.controls {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0px 0px 5px gray;
    margin-bottom: 1.5rem;
}

.controls h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: rgb(49, 44, 44);
}

.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    transition: all 0.2s;
    cursor: pointer;
}

.radio-option:hover {
    background-color: #f3f4f6;
}

.radio-option input {
    accent-color: var(--primary);
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.editor-container {
    background: white;
    border-radius: var(--radius);
    box-shadow: 0px 0px 1px 1px rgb(71, 73, 75);
    height: calc(90vh - 400px);
    display: flex;
    flex-direction: column;
}

textarea {
    flex-grow: 1;
    padding: 1.5rem;
    border: none;
    border-radius: var(--radius);
    resize: none;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    outline: none;
}

textarea::placeholder {
    color: gray;
    opacity: 0.5;
}

.stats {
    background: white;
    border-radius: var(--radius);
    padding: 1rem;
    height: calc(100vh - 450px);
    box-shadow: 1px 1px 3px 3px gray;
}

.stats h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-value {
    font-weight: 600;
    color: var(--primary);
}

.stat-value {
    transition: all 0.3s ease;
}

.stat-value.changed {
    animation: pulse 0.5s ease;
    color: var(--primary-hover);
}

textarea:focus {
    box-shadow: 0 0 0 2px gray;
}
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .editor-container {
        height: 50vh;
    }
}
/* Animation for stats */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}