* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    line-height: 1.6;
}
h1 { text-align: center; color: #333; }
.form-group { margin-bottom: 15px; }
label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}
input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}
input:focus, select:focus {
    outline: none;
    border-color: #4CAF50;
}
button {
    background: #4CAF50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    margin-top: 10px;
}
button:hover { background: #45a049; }
button:disabled { background: #a5d6a7; cursor: wait; }
.hidden { display: none; }
.preview {
    margin-top: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 6px;
}
.preview h3 { margin-top: 0; color: #333; }
.preview ul { list-style: none; padding: 0; }
.preview li {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}
.preview li:last-child { border-bottom: none; }
.error {
    color: #d32f2f;
    background: #ffebee;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
}
.success {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}
.download-btn { margin-top: 15px; }
#loading {
    text-align: center;
    padding: 20px;
    color: #666;
}
.required::after { content: " *"; color: #d32f2f; }
#date_to { margin-top: 5px; }
footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 12px;
    color: #666;
    text-align: center;
    line-height: 1.5;
}
footer code {
    background: #f5f5f5;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: Consolas, monospace;
    font-size: 11px;
}
