* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #fff;
    color: #000;
    line-height: 1.6;
}

.card {
    border: 1px solid #ddd;
    padding: 24px;
    margin-bottom: 24px;
    background: #fff;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.section-header p {
    font-size: 13px;
    color: #666;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: #333;
}

.form-group input,
.form-group select {
    border: 1px solid #ccc;
    padding: 10px 12px;
    font-size: 14px;
    height: 40px;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #999;
}

.form-group.actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
    margin-bottom: 8px;
}

.form-group.actions .btn {
    flex: 0 0 auto;
    min-width: 120px;
}

.file-drop {
    border: 2px dashed #d1d5db;
    padding: 56px 20px;
    text-align: center;
    background: #f9fafb;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    outline: none;
}

.file-drop:hover,
.file-drop:focus-visible,
.file-drop.dragging {
    border-color: #000;
    background: #f3f4f6;
}

.drop-message {
    pointer-events: none;
}

.drop-title {
    font-size: 16px;
    font-weight: 600;
}

.drop-desc {
    margin-top: 6px;
    font-size: 13px;
    color: #666;
}

.file-info {
    border: 1px solid #eee;
    padding: 16px;
    min-height: 72px;
    background: #fff;
    text-align: left;
    display: none;
    position: relative;
}

.file-drop.has-file .drop-message {
    display: none;
}

.file-drop.has-file .file-info {
    display: block;
}

#copyResultBtn {
    min-width: 140px;
}

.file-remove {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
    transform: translateY(-50%);
}

.file-remove:hover {
    color: #000;
}

.file-name {
    font-weight: 600;
    word-break: break-all;
}

.file-size {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.progress-track {
    width: 100%;
    height: 12px;
    background: #f3f4f6;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #000;
    transition: width 0.2s ease;
}

.progress-label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.result-panel {
    border: 1px solid #eee;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 0;
}

.result-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 6px;
}

.result-value {
    font-size: 18px;
    font-weight: 500;
    word-break: break-all;
}

.result-meta {
    margin-top: 6px;
    font-size: 13px;
    color: #666;
}

.result-actions {
    margin-top: 16px;
}

.result-actions .btn {
    width: 100%;
}
