* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 20px;
    background-color: #f0f2f5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.input-container {
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    height: 300px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-size: 16px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.stat-item {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.label {
    color: #666;
    font-size: 14px;
}

#char-count,
#char-count-no-space,
#word-count,
#line-count {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #2196F3;
    margin-top: 5px;
}

.button-group {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.button-group button {
    padding: 8px 16px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button-group button:hover {
    background-color: #1976D2;
}

#file-input {
    flex: 1;
}

#chinese-count,
#paragraph-count {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #2196F3;
    margin-top: 5px;
}

#letter-count,
#number-count {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #2196F3;
    margin-top: 5px;
} 