:root {
    --bg-color: #f0f2f5;
    --container-bg: #ffffff;
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --accent-color: #28a745; /* Green for tools */
    --text-color: #333;
    --border-radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
}

.container {
    background: var(--container-bg);
    width: 100%;
    max-width: 850px;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

header { text-align: center; margin-bottom: 25px; }
header h1 { color: var(--text-color); margin-bottom: 5px; font-size: 1.8rem; }
header p { color: #666; font-size: 0.95rem; }

/* New Section Labels */
.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
    font-weight: 700;
    margin: 15px 0 5px;
    letter-spacing: 1px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

button {
    padding: 8px 14px;
    border: 1px solid #e1e4e8;
    background: #f8f9fa;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.85rem;
    font-weight: 500;
    color: #444;
}

button:hover {
    background: #e2e6ea;
    border-color: #dbe0e5;
    transform: translateY(-1px);
}

/* Highlight specific tool buttons */
.tool-btn { border-left: 3px solid var(--accent-color); }

textarea {
    width: 100%;
    height: 250px;
    padding: 15px;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    font-size: 16px;
    resize: vertical;
    outline: none;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
    background: #fafafa;
}

textarea:focus { border-color: var(--primary-color); background: #fff; }

.stats-bar {
    margin: 10px 0 20px;
    padding: 10px;
    background: #e9ecef;
    border-radius: 6px;
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: #555;
}

.actions { display: flex; gap: 10px; }

.primary-btn { background: var(--primary-color); color: white; border: none; font-size: 0.9rem; padding: 10px 20px; }
.primary-btn:hover { background: #0056b3; }

.secondary-btn { background: var(--secondary-color); color: white; border: none; font-size: 0.9rem; padding: 10px 20px; }
.secondary-btn:hover { background: #545b62; }

.danger-btn { background: #dc3545; color: white; border: none; padding: 10px 20px; margin-left: auto; }
.danger-btn:hover { background: #bd2130; }

button:active { transform: scale(0.98); }