.tool-content {
    max-width: 800px;
    margin: 0 auto;
}

.tab-group {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    background-color: #f8f9fa;
    border-radius: 7px;
    padding: 4px;
    gap: 2px;
    margin: 0 auto 1.2em;
}

.tab-group a.active {
    background-color: rgb(93 79 248 / 85%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(93, 79, 248, 0.2);
}

.tab-group a {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-align: center;
    padding: 6px 16px;
    cursor: pointer;
    border-radius: 7px;
    transition: all 0.2s;
    user-select: none;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.tool-content .item-file {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.tool-content .operate-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.1em;
}

.btn {
    outline: none;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 12px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
}

.btn-purple {
    color: #fff;
    background-color: rgb(93 79 248 / 95%);
    border-color: rgb(93 79 248 / 95%);
}

.btn-purple:hover {
    background-color: rgb(93 79 248 / 100%);
    border-color: rgb(93 79 248 / 100%);
}

.file-upload {
    border: solid 1px #ddd;
    background-color: #f8f9fa;
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    min-height: 250px;
    line-height: 30px;
    padding: 0 12px;
    border-radius: 7px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    outline: none;
    font-size: 15px;
    color: #6c6c6c;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px 0;
    position: relative;
    cursor: pointer;
}

.file-upload.dragover {
    border-color: #5a4df8;
    background-color: #f0edff;
    color: #5a4df8;
}

.file-upload .upload-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px 0;
    width: 100%;
}

.file-upload .upload-prompt > div > p {
    text-align: center;
    margin-bottom: 0;
}

.file-upload .converting {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.file-upload .converting .loader {
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.file-upload .converted {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.file-upload .converted .success {
    width: 45px;
    height: 45px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .tool-content {
        padding: .8em !important;
    }

    .file-upload {
        min-height: 200px;
    }

    .file-upload .upload-prompt {
        height: 200px;
    }
}
