:root {
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --secondary-color: #28a745;
    --secondary-hover: #218838;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-color: #333;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 600px;
    text-align: center;
}

header h1 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

header p {
    margin-bottom: 2rem;
    color: #666;
}

.upload-section {
    border: 2px dashed #ccc;
    border-radius: var(--border-radius);
    padding: 3rem 1rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.upload-section:hover, .upload-section.dragover {
    border-color: var(--primary-color);
    background-color: #f0f7ff;
}

.upload-content p {
    margin-top: 1rem;
    font-size: 1.1rem;
}

.browse-btn {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: underline;
}

.file-info {
    margin-bottom: 1.5rem;
    background: #e9ecef;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: right;
}

#file-list {
    list-style: none;
    margin: 1rem 0;
}

#file-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
}

.total-info {
    font-weight: bold;
    margin-top: 1rem;
    border-top: 2px solid #ccc;
    padding-top: 0.5rem;
}

.result-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    text-align: right;
    border: 1px solid #eee;
}

.result-item h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.summary-info {
    background: #d4edda;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
    font-weight: bold;
    color: #155724;
}

.file-info.hidden {
    display: none;
}

.settings-section {
    margin-bottom: 1.5rem;
    text-align: left;
}

.setting-item label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.setting-item input[type="range"] {
    width: 100%;
    cursor: pointer;
}

.hint {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.primary-btn:hover:not(:disabled) {
    background-color: var(--primary-hover);
}

.primary-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.status {
    margin-top: 1rem;
    font-weight: bold;
}

.result-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.result-section.hidden {
    display: none;
}

.secondary-btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.secondary-btn:hover {
    background-color: var(--secondary-hover);
}

footer {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #888;
}
