:root {
    --bg-color: #ffffff;
    --text-color: #202020;
    --muted-color: #555;
    --accent-color: #000;
    --border-color: #eaeaea;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: top;
    min-height: 100vh;
}

/* Header */
.tool-header {
    width: 100%;
    padding: 40px 20px 20px 20px;
    display: flex;
    justify-content: center;
}

.tool-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

/* Main Content */
main {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.counter-card {
    width: 100%;
    /* Removed card styling for minimalism */
}

/* Input Area */
.input-area {
    width: 100%;
    margin-bottom: 40px;
}

textarea {
    width: 100%;
    height: 300px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    color: var(--text-color);
    font-family: var(--font-mono);
    font-size: 16px;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    line-height: 1.6;
}

textarea:focus {
    border-color: #ccc;
}

textarea::placeholder {
    color: #999;
}

/* Stats Grid */
.stats-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.stat-value {
    font-size: 36px;
    font-weight: 300;
    color: var(--text-color);
    font-family: var(--font-main);
}

/* Footer - minimal */
.status-bar {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    font-size: 12px;
    color: #eee;
}

.footer-copyright {
    color: #888;
}

/* Hide scrollbar */
textarea::-webkit-scrollbar {
    display: none;
}

@media (max-width: 600px) {
    .stats-grid {
        flex-direction: row;
        gap: 30px;
    }

    .stat-value {
        font-size: 24px;
    }
}