body {
    font-family: Arial, sans-serif;
    max-width: 1040px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.loading {
    text-align: center;
    color: #666;
    font-style: italic;
}

.file-list {
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
    background-color: #fafafa;
}

.file-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.file-item:last-child {
    border-bottom: none;
}

.file-item:hover {
    background-color: #f0f0f0;
}

.file-checkbox {
    margin-right: 10px;
}

.file-name {
    font-family: monospace;
    color: #333;
}

.controls {
    text-align: center;
    margin: 20px 0;
}

.btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin: 0 10px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0056b3;
}

.btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.progress {
    margin: 20px 0;
    display: none;
}

.progress-container {
    margin-bottom: 20px;
}

.progress-container:last-of-type {
    margin-bottom: 0;
}

.progress-label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #495057;
    font-size: 14px;
}

.progress-bar {
    width: 100%;
    height: 24px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: bold;
}

.progress-fill.current-file {
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
}

.progress-fill.overall {
    background: linear-gradient(90deg, #28a745 0%, #1e7e34 100%);
}

.progress-text {
    text-align: center;
    margin-top: 8px;
    color: #666;
    font-size: 13px;
}

.error {
    color: #dc3545;
    text-align: center;
    margin: 10px 0;
    padding: 10px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
}

.info-box {
    background-color: #e7f3ff;
    border-left: 4px solid #007bff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.info-box h2 {
    margin-top: 0;
    color: #007bff;
    font-size: 20px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.info-box h2:hover {
    opacity: 0.8;
}

.info-box h2::after {
    content: '▼';
    font-size: 14px;
    transition: transform 0.3s ease;
}

.info-box h2.collapsed::after {
    transform: rotate(-90deg);
}

.info-box-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.info-box-content.collapsed {
    max-height: 0;
}

.info-box ul {
    margin: 10px 0;
    padding-left: 20px;
}

.info-box li {
    margin: 3px 0;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.not-implemented {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    font-size: 14px;
    color: #856404;
}

.debug-console-wrapper {
    margin-top: 30px;
}

.debug-console-header {
    background-color: #2d2d2d;
    color: #61dafb;
    font-weight: bold;
    padding: 12px 15px;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.debug-console-header:hover {
    background-color: #3d3d3d;
}

.debug-console-header::after {
    content: '▼';
    font-size: 12px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.debug-console-header.collapsed::after {
    transform: rotate(-90deg);
}

.debug-console {
    background-color: #1e1e1e;
    border-radius: 0 0 5px 5px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    max-height: 300px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 15px;
}

.debug-console.collapsed {
    max-height: 0;
    padding: 0 15px;
}

.debug-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.debug-content {
    overflow-y: auto;
    max-height: 270px;
}

.debug-log {
    color: #d4d4d4;
    margin: 2px 0;
    line-height: 1.4;
}

.debug-log.error {
    color: #f48771;
    background-color: rgba(244, 135, 113, 0.1);
    padding: 2px 5px;
    border-radius: 3px;
}

.debug-log.warn {
    color: #dcdcaa;
}

.debug-log.info {
    color: #4fc1ff;
}

.debug-clear {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
}

.debug-clear:hover {
    background-color: #444;
}

.download-options {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
}

.download-options h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #495057;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.download-options h3:hover {
    opacity: 0.8;
}

.download-options h3::after {
    content: '▼';
    font-size: 14px;
    transition: transform 0.3s ease;
}

.download-options h3.collapsed::after {
    transform: rotate(-90deg);
}

.download-options-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.download-options-content.collapsed {
    max-height: 0;
}

.option-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    margin: 8px 0;
}

.option-label input[type="checkbox"],
.option-label input[type="radio"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.option-label span {
    font-weight: 500;
}

.option-description {
    margin: 8px 0 12px 26px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.method-info {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
}

.method-info.info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.method-info.warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.method-info.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.blob-warning {
    margin-top: 15px;
    padding: 12px;
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 5px;
    color: #856404;
    font-weight: bold;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}
