body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.file-upload-btn {
    background: #3498db;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s;
    font-weight: bold;
}

.file-upload-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.file-upload-btn input {
    display: none;
}

button {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
}

button:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.file-info {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
    font-family: monospace;
}

.preview-section {
    margin-top: 25px;
}

.preview-box {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

pre {
    white-space: pre-wrap;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    line-height: 1.4;
    border: 1px solid #eee;
}

#total-display {
    background: #e8f4f8;
    padding: 10px 20px;
    border-radius: 6px;
    float: right;
    margin: -10px 0 15px 0;
    border: 1px solid #3498db;
    font-weight: bold;
    font-size: 1.1em;
    text-align: right;
    clear: both;
}

@media (max-width: 768px) {
    .controls {
        flex-direction: column;
    }
    #total-display {
        float: none;
        text-align: center;
        margin: 0 auto 15px auto;
        display: block;
        width: fit-content;
    }
}